diff options
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 7 |
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 | ||
| 23 | std::string VertexIndex(EmitContext& ctx, ScalarU32 vertex) { | 23 | std::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 | } |