summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-05-21 21:37:13 -0400
committerGravatar ameerj2021-07-22 21:51:36 -0400
commitef7bd53f189a9bd11e4eebdcc142f60c2be8a504 (patch)
treeb2c1b5f285bfbaa22b060f5615b8cb3fb094d416 /src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
parentglsl: Implement BF* (diff)
downloadyuzu-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.cpp13
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
31void EmitSelectU32([[maybe_unused]] EmitContext& ctx, IR::Inst& inst, 31void 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
50void EmitSelectF32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, 48void 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
56void EmitSelectF64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond, 53void EmitSelectF64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,