summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-21 02:48:09 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:32 +0200
commita5d978e91ec66d21764bb74047881cb614425935 (patch)
tree2ef07b18ca9bf5ccd6c9bb0297932cd8c96d6f93
parentglasm: Add missing semicolon on tesscoord reading (diff)
downloadyuzu-a5d978e91ec66d21764bb74047881cb614425935.tar
yuzu-a5d978e91ec66d21764bb74047881cb614425935.tar.gz
yuzu-a5d978e91ec66d21764bb74047881cb614425935.tar.bz2
yuzu-a5d978e91ec66d21764bb74047881cb614425935.tar.lz
yuzu-a5d978e91ec66d21764bb74047881cb614425935.tar.xz
yuzu-a5d978e91ec66d21764bb74047881cb614425935.tar.zst
yuzu-a5d978e91ec66d21764bb74047881cb614425935.zip
Diffstat (limited to '')
-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
}
std::string VertexIndex(EmitContext& ctx, ScalarU32 vertex) {
- if (ctx.stage == Stage::Geometry) {
+ switch (ctx.stage) {
+ case Stage::TessellationControl:
+ case Stage::TessellationEval:
+ case Stage::Geometry:
return fmt::format("[{}]", vertex);
- } else {
+ default:
return "";
}
}