summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-22 03:37:13 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commitef7bd53f189a9bd11e4eebdcc142f60c2be8a504 (patch)
treeb2c1b5f285bfbaa22b060f5615b8cb3fb094d416 /src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
parentglsl: Implement BF* (diff)
downloadyuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar
yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar.gz
yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar.bz2
yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar.lz
yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar.xz
yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.tar.zst
yuzu-ef7bd53f189a9bd11e4eebdcc142f60c2be8a504.zip
Diffstat (limited to '')
-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
throw NotImplementedException("GLSL Instruction");
}
-void EmitSelectU32([[maybe_unused]] EmitContext& ctx, IR::Inst& inst,
- [[maybe_unused]] std::string_view cond,
- [[maybe_unused]] std::string_view true_value,
- [[maybe_unused]] std::string_view false_value) {
+void EmitSelectU32(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
+ std::string_view true_value, std::string_view false_value) {
ctx.AddU32("{}={}?{}:{};", inst, cond, true_value, false_value);
}
@@ -47,10 +45,9 @@ void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::stri
throw NotImplementedException("GLSL Instruction");
}
-void EmitSelectF32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
- [[maybe_unused]] std::string_view true_value,
- [[maybe_unused]] std::string_view false_value) {
- throw NotImplementedException("GLSL Instruction");
+void EmitSelectF32(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
+ std::string_view true_value, std::string_view false_value) {
+ ctx.AddF32("{}={}?{}:{};", inst, cond, true_value, false_value);
}
void EmitSelectF64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,