diff options
| author | 2021-05-22 01:52:03 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | 5e9095ef2203e7cddcaba84fa3b01cc0d940b634 (patch) | |
| tree | 3ecb46dfb2a04ed269ccb07eb85cfa7c8e44a99d /src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | |
| parent | glsl: Fixup build issues (diff) | |
| download | yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.gz yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.xz yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.zip | |
glsl: Add many FP32/64 instructions
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_select.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp index a6bf18fb1..a049e3dc9 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | |||
| @@ -33,10 +33,9 @@ void EmitSelectU32(EmitContext& ctx, IR::Inst& inst, std::string_view cond, | |||
| 33 | ctx.AddU32("{}={}?{}:{};", inst, cond, true_value, false_value); | 33 | ctx.AddU32("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | void EmitSelectU64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, | 36 | void EmitSelectU64(EmitContext& ctx, IR::Inst& inst, std::string_view cond, |
| 37 | [[maybe_unused]] std::string_view true_value, | 37 | std::string_view true_value, std::string_view false_value) { |
| 38 | [[maybe_unused]] std::string_view false_value) { | 38 | ctx.AddU64("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 39 | throw NotImplementedException("GLSL Instruction"); | ||
| 40 | } | 39 | } |
| 41 | 40 | ||
| 42 | void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, | 41 | void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, |
| @@ -50,10 +49,9 @@ void EmitSelectF32(EmitContext& ctx, IR::Inst& inst, std::string_view cond, | |||
| 50 | ctx.AddF32("{}={}?{}:{};", inst, cond, true_value, false_value); | 49 | ctx.AddF32("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 51 | } | 50 | } |
| 52 | 51 | ||
| 53 | void EmitSelectF64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, | 52 | void EmitSelectF64(EmitContext& ctx, IR::Inst& inst, std::string_view cond, |
| 54 | [[maybe_unused]] std::string_view true_value, | 53 | std::string_view true_value, std::string_view false_value) { |
| 55 | [[maybe_unused]] std::string_view false_value) { | 54 | ctx.AddF64("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 56 | throw NotImplementedException("GLSL Instruction"); | ||
| 57 | } | 55 | } |
| 58 | 56 | ||
| 59 | } // namespace Shader::Backend::GLSL | 57 | } // namespace Shader::Backend::GLSL |