diff options
| author | 2021-02-25 00:46:40 -0500 | |
|---|---|---|
| committer | 2021-07-22 21:51:22 -0400 | |
| commit | cc55d289494c991e7e0e456e428a110569708c2e (patch) | |
| tree | 36e869098e87528ab7b7f668e232d7e909a2258a /src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | |
| parent | shader: Implement SEL (diff) | |
| download | yuzu-cc55d289494c991e7e0e456e428a110569708c2e.tar.gz yuzu-cc55d289494c991e7e0e456e428a110569708c2e.tar.xz yuzu-cc55d289494c991e7e0e456e428a110569708c2e.zip | |
shader: Implement SHR
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | 12 |
1 files changed, 8 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 8aaa0e381..406df1b78 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | |||
| @@ -70,12 +70,12 @@ Id EmitShiftLeftLogical32(EmitContext& ctx, Id base, Id shift) { | |||
| 70 | return ctx.OpShiftLeftLogical(ctx.U32[1], base, shift); | 70 | return ctx.OpShiftLeftLogical(ctx.U32[1], base, shift); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | void EmitShiftRightLogical32(EmitContext&) { | 73 | Id EmitShiftRightLogical32(EmitContext& ctx, Id a, Id b) { |
| 74 | throw NotImplementedException("SPIR-V Instruction"); | 74 | return ctx.OpShiftRightLogical(ctx.U32[1], a, b); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | void EmitShiftRightArithmetic32(EmitContext&) { | 77 | Id EmitShiftRightArithmetic32(EmitContext& ctx, Id a, Id b) { |
| 78 | throw NotImplementedException("SPIR-V Instruction"); | 78 | return ctx.OpShiftRightArithmetic(ctx.U32[1], a, b); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | Id EmitBitwiseAnd32(EmitContext& ctx, Id a, Id b) { | 81 | Id EmitBitwiseAnd32(EmitContext& ctx, Id a, Id b) { |
| @@ -102,6 +102,10 @@ Id EmitBitFieldUExtract(EmitContext& ctx, Id base, Id offset, Id count) { | |||
| 102 | return ctx.OpBitFieldUExtract(ctx.U32[1], base, offset, count); | 102 | return ctx.OpBitFieldUExtract(ctx.U32[1], base, offset, count); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | Id EmitBitReverse32(EmitContext& ctx, Id value) { | ||
| 106 | return ctx.OpBitReverse(ctx.U32[1], value); | ||
| 107 | } | ||
| 108 | |||
| 105 | Id EmitSLessThan(EmitContext& ctx, Id lhs, Id rhs) { | 109 | Id EmitSLessThan(EmitContext& ctx, Id lhs, Id rhs) { |
| 106 | return ctx.OpSLessThan(ctx.U1, lhs, rhs); | 110 | return ctx.OpSLessThan(ctx.U1, lhs, rhs); |
| 107 | } | 111 | } |