glasm: Use storage buffers instead of global memory when possible

This commit is contained in:
ReinUsesLisp
2021-05-26 18:32:59 -03:00
committed by ameerj
parent f58f79c85d
commit adb591a757
17 changed files with 503 additions and 437 deletions

View File

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