glsl: Use std::string_view for Emit function args.

This commit is contained in:
ameerj 2021-05-21 19:55:58 -04:00
parent 115c162b9a
commit fb75d122a2
6 changed files with 838 additions and 760 deletions

View file

@ -12,12 +12,12 @@
namespace Shader::Backend::GLSL {
[[nodiscard]] std::string EmitGLSL(const Profile& profile, IR::Program& program,
Bindings& binding);
[[nodiscard]] std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info,
IR::Program& program, Bindings& bindings);
[[nodiscard]] inline std::string EmitGLSL(const Profile& profile, IR::Program& program) {
Bindings binding;
return EmitGLSL(profile, program, binding);
return EmitGLSL(profile, {}, program, binding);
}
} // namespace Shader::Backend::GLSL