diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_select.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp index 7aa6096e6..49fba9073 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | |||
| @@ -28,12 +28,12 @@ void EmitSelectU16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::stri | |||
| 28 | 28 | ||
| 29 | void EmitSelectU32(EmitContext& ctx, IR::Inst& inst, std::string_view cond, | 29 | void EmitSelectU32(EmitContext& ctx, IR::Inst& inst, std::string_view cond, |
| 30 | std::string_view true_value, std::string_view false_value) { | 30 | std::string_view true_value, std::string_view false_value) { |
| 31 | ctx.AddU32("{}={}?uint({}):uint({});", inst, cond, true_value, false_value); | 31 | ctx.AddU32("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | void EmitSelectU64(EmitContext& ctx, IR::Inst& inst, std::string_view cond, | 34 | void EmitSelectU64(EmitContext& ctx, IR::Inst& inst, std::string_view cond, |
| 35 | std::string_view true_value, std::string_view false_value) { | 35 | std::string_view true_value, std::string_view false_value) { |
| 36 | ctx.AddU64("{}={}?uint64_t({}):uint64_t({});", inst, cond, true_value, false_value); | 36 | ctx.AddU64("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, | 39 | void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, |