summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-18 21:04:09 -0300
committerGravatar ameerj2021-07-22 21:51:32 -0400
commit8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6 (patch)
treeede1d0e1d3c828b50f4af190f64adf73a30a62e7 /src/shader_recompiler/backend/glasm/emit_glasm.cpp
parentglasm: Implement textureGather instructions (diff)
downloadyuzu-8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6.tar.gz
yuzu-8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6.tar.xz
yuzu-8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6.zip
glasm: Support textures used in more than one stage
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index a893fa3fb..edf6f5e13 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -312,8 +312,8 @@ std::string_view StageHeader(Stage stage) {
312} 312}
313} // Anonymous namespace 313} // Anonymous namespace
314 314
315std::string EmitGLASM(const Profile&, IR::Program& program, Bindings&) { 315std::string EmitGLASM(const Profile&, IR::Program& program, Bindings& bindings) {
316 EmitContext ctx{program}; 316 EmitContext ctx{program, bindings};
317 Precolor(ctx, program); 317 Precolor(ctx, program);
318 EmitCode(ctx, program); 318 EmitCode(ctx, program);
319 std::string header{StageHeader(program.stage)}; 319 std::string header{StageHeader(program.stage)};