diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-30 03:12:52 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 7df0815117c6bdc70775d78b4625f44835ede54a (patch) | |
tree | a7e65a8b2452937ed0717b9d9fc23ea6e1034931 /src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp | |
parent | glsl: Fix GetAttribute return values (diff) | |
download | yuzu-7df0815117c6bdc70775d78b4625f44835ede54a.tar yuzu-7df0815117c6bdc70775d78b4625f44835ede54a.tar.gz yuzu-7df0815117c6bdc70775d78b4625f44835ede54a.tar.bz2 yuzu-7df0815117c6bdc70775d78b4625f44835ede54a.tar.lz yuzu-7df0815117c6bdc70775d78b4625f44835ede54a.tar.xz yuzu-7df0815117c6bdc70775d78b4625f44835ede54a.tar.zst yuzu-7df0815117c6bdc70775d78b4625f44835ede54a.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp index 2ecfc2993..85d07b4de 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp @@ -16,7 +16,7 @@ void EmitConvertS16F16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::I void EmitConvertS16F32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, [[maybe_unused]] std::string_view value) { - throw NotImplementedException("GLSL Instruction"); + ctx.AddS32("{}=int(float({}))&0xffff;", inst, value); } void EmitConvertS16F64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |