diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-29 03:24:52 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 8ba814efb295f0b8494b3679c484c7ceab31c392 (patch) | |
tree | 7c81176bc12ea7b99309d2748e03c61aa2bf64b8 /src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | |
parent | glsl: Fix integer conversions, implement clamp CC (diff) | |
download | yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.gz yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.bz2 yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.lz yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.xz yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.zst yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp index 34f880f1b..07e1a4b51 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp @@ -156,12 +156,12 @@ void EmitBitwiseNot32(EmitContext& ctx, IR::Inst& inst, std::string_view value) void EmitFindSMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, [[maybe_unused]] std::string_view value) { - throw NotImplementedException("GLSL Instruction"); + ctx.AddU32("{}=findMSB(int({}));", inst, value); } void EmitFindUMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, [[maybe_unused]] std::string_view value) { - throw NotImplementedException("GLSL Instruction"); + ctx.AddU32("{}=findMSB(uint({}));", inst, value); } void EmitSMin32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b) { |