diff options
| author | 2021-03-20 05:04:12 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:23 -0400 | |
| commit | f91859efd259995806c2944f7941b105b58300d3 (patch) | |
| tree | 489e587bcac6c0833c02378a106222c4db107c14 /src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | |
| parent | shader: Implement ISCADD (imm) (diff) | |
| download | yuzu-f91859efd259995806c2944f7941b105b58300d3.tar.gz yuzu-f91859efd259995806c2944f7941b105b58300d3.tar.xz yuzu-f91859efd259995806c2944f7941b105b58300d3.zip | |
shader: Implement I2F
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp index c9de204b0..a9c5e9cca 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | |||
| @@ -70,6 +70,10 @@ Id EmitIAbs32(EmitContext& ctx, Id value) { | |||
| 70 | return ctx.OpSAbs(ctx.U32[1], value); | 70 | return ctx.OpSAbs(ctx.U32[1], value); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | Id EmitIAbs64(EmitContext& ctx, Id value) { | ||
| 74 | return ctx.OpSAbs(ctx.U64, value); | ||
| 75 | } | ||
| 76 | |||
| 73 | Id EmitShiftLeftLogical32(EmitContext& ctx, Id base, Id shift) { | 77 | Id EmitShiftLeftLogical32(EmitContext& ctx, Id base, Id shift) { |
| 74 | return ctx.OpShiftLeftLogical(ctx.U32[1], base, shift); | 78 | return ctx.OpShiftLeftLogical(ctx.U32[1], base, shift); |
| 75 | } | 79 | } |