summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-20 21:48:09 -0300
committerGravatar ameerj2021-07-22 21:51:32 -0400
commita5d978e91ec66d21764bb74047881cb614425935 (patch)
tree2ef07b18ca9bf5ccd6c9bb0297932cd8c96d6f93 /src/shader_recompiler/backend/glasm
parentglasm: Add missing semicolon on tesscoord reading (diff)
downloadyuzu-a5d978e91ec66d21764bb74047881cb614425935.tar.gz
yuzu-a5d978e91ec66d21764bb74047881cb614425935.tar.xz
yuzu-a5d978e91ec66d21764bb74047881cb614425935.zip
glasm: Fix tessellation input attributes
Diffstat (limited to 'src/shader_recompiler/backend/glasm')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
index cdba4fa89..7a084508d 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
@@ -21,9 +21,12 @@ void GetCbuf(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU
21} 21}
22 22
23std::string VertexIndex(EmitContext& ctx, ScalarU32 vertex) { 23std::string VertexIndex(EmitContext& ctx, ScalarU32 vertex) {
24 if (ctx.stage == Stage::Geometry) { 24 switch (ctx.stage) {
25 case Stage::TessellationControl:
26 case Stage::TessellationEval:
27 case Stage::Geometry:
25 return fmt::format("[{}]", vertex); 28 return fmt::format("[{}]", vertex);
26 } else { 29 default:
27 return ""; 30 return "";
28 } 31 }
29} 32}