summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp
index 4c0b5990d..329dcb351 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp
@@ -58,12 +58,12 @@ Id EmitIMul32(EmitContext& ctx, Id a, Id b) {
58 return ctx.OpIMul(ctx.U32[1], a, b); 58 return ctx.OpIMul(ctx.U32[1], a, b);
59} 59}
60 60
61void EmitINeg32(EmitContext&) { 61Id EmitINeg32(EmitContext& ctx, Id value) {
62 throw NotImplementedException("SPIR-V Instruction"); 62 return ctx.OpSNegate(ctx.U32[1], value);
63} 63}
64 64
65void EmitIAbs32(EmitContext&) { 65Id EmitIAbs32(EmitContext& ctx, Id value) {
66 throw NotImplementedException("SPIR-V Instruction"); 66 return ctx.OpSAbs(ctx.U32[1], value);
67} 67}
68 68
69Id EmitShiftLeftLogical32(EmitContext& ctx, Id base, Id shift) { 69Id EmitShiftLeftLogical32(EmitContext& ctx, Id base, Id shift) {