diff options
| author | 2021-05-21 21:37:13 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | ef7bd53f189a9bd11e4eebdcc142f60c2be8a504 (patch) | |
| tree | b2c1b5f285bfbaa22b060f5615b8cb3fb094d416 /src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | |
| parent | glsl: Implement BF* (diff) | |
| download | yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar.gz yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar.xz yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.zip | |
glsl: Implement more Integer ops
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_select.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | 13 |
1 files changed, 5 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 4455b0f9f..a6bf18fb1 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | |||
| @@ -28,10 +28,8 @@ void EmitSelectU16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::stri | |||
| 28 | throw NotImplementedException("GLSL Instruction"); | 28 | throw NotImplementedException("GLSL Instruction"); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | void EmitSelectU32([[maybe_unused]] EmitContext& ctx, IR::Inst& inst, | 31 | void EmitSelectU32(EmitContext& ctx, IR::Inst& inst, std::string_view cond, |
| 32 | [[maybe_unused]] std::string_view cond, | 32 | std::string_view true_value, std::string_view false_value) { |
| 33 | [[maybe_unused]] std::string_view true_value, | ||
| 34 | [[maybe_unused]] std::string_view false_value) { | ||
| 35 | ctx.AddU32("{}={}?{}:{};", inst, cond, true_value, false_value); | 33 | ctx.AddU32("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 36 | } | 34 | } |
| 37 | 35 | ||
| @@ -47,10 +45,9 @@ void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::stri | |||
| 47 | throw NotImplementedException("GLSL Instruction"); | 45 | throw NotImplementedException("GLSL Instruction"); |
| 48 | } | 46 | } |
| 49 | 47 | ||
| 50 | void EmitSelectF32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, | 48 | void EmitSelectF32(EmitContext& ctx, IR::Inst& inst, std::string_view cond, |
| 51 | [[maybe_unused]] std::string_view true_value, | 49 | std::string_view true_value, std::string_view false_value) { |
| 52 | [[maybe_unused]] std::string_view false_value) { | 50 | ctx.AddF32("{}={}?{}:{};", inst, cond, true_value, false_value); |
| 53 | throw NotImplementedException("GLSL Instruction"); | ||
| 54 | } | 51 | } |
| 55 | 52 | ||
| 56 | void EmitSelectF64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, | 53 | void EmitSelectF64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, |