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-28 04:28:33 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commit2a713337165df4d5c4228458999a680e9ab65369 (patch)
tree0e820cbfcedaaffafc34b334bd04107a51e2a24d /src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
parentglsl: remove unused headers (diff)
downloadyuzu-2a713337165df4d5c4228458999a680e9ab65369.tar
yuzu-2a713337165df4d5c4228458999a680e9ab65369.tar.gz
yuzu-2a713337165df4d5c4228458999a680e9ab65369.tar.bz2
yuzu-2a713337165df4d5c4228458999a680e9ab65369.tar.lz
yuzu-2a713337165df4d5c4228458999a680e9ab65369.tar.xz
yuzu-2a713337165df4d5c4228458999a680e9ab65369.tar.zst
yuzu-2a713337165df4d5c4228458999a680e9ab65369.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_select.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_select.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
index 1f2790b7d..ad3713f2d 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
@@ -8,10 +8,9 @@
#include "shader_recompiler/frontend/ir/value.h"
namespace Shader::Backend::GLSL {
-void EmitSelectU1([[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 EmitSelectU1(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
+ std::string_view true_value, std::string_view false_value) {
+ ctx.AddU1("{}={}?{}:{};", inst, cond, true_value, false_value);
}
void EmitSelectU8([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,