diff options
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, 10 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp index 5bdd943a4..162fb6a91 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | |||
| @@ -110,8 +110,16 @@ Id EmitBitCount32(EmitContext& ctx, Id value) { | |||
| 110 | return ctx.OpBitCount(ctx.U32[1], value); | 110 | return ctx.OpBitCount(ctx.U32[1], value); |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | Id EmitBitwiseNot32(EmitContext& ctx, Id a) { | 113 | Id EmitBitwiseNot32(EmitContext& ctx, Id value) { |
| 114 | return ctx.OpNot(ctx.U32[1], a); | 114 | return ctx.OpNot(ctx.U32[1], value); |
| 115 | } | ||
| 116 | |||
| 117 | Id EmitFindSMsb32(EmitContext& ctx, Id value) { | ||
| 118 | return ctx.OpFindSMsb(ctx.U32[1], value); | ||
| 119 | } | ||
| 120 | |||
| 121 | Id EmitFindUMsb32(EmitContext& ctx, Id value) { | ||
| 122 | return ctx.OpFindUMsb(ctx.U32[1], value); | ||
| 115 | } | 123 | } |
| 116 | 124 | ||
| 117 | Id EmitSMin32(EmitContext& ctx, Id a, Id b) { | 125 | Id EmitSMin32(EmitContext& ctx, Id a, Id b) { |