diff options
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp index c5a07252f..bb434def2 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp | |||
| @@ -6,20 +6,20 @@ | |||
| 6 | 6 | ||
| 7 | namespace Shader::Backend::SPIRV { | 7 | namespace Shader::Backend::SPIRV { |
| 8 | 8 | ||
| 9 | void EmitLogicalOr(EmitContext&) { | 9 | Id EmitLogicalOr(EmitContext& ctx, Id a, Id b) { |
| 10 | throw NotImplementedException("SPIR-V Instruction"); | 10 | return ctx.OpLogicalOr(ctx.U1, a, b); |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | void EmitLogicalAnd(EmitContext&) { | 13 | Id EmitLogicalAnd(EmitContext& ctx, Id a, Id b) { |
| 14 | throw NotImplementedException("SPIR-V Instruction"); | 14 | return ctx.OpLogicalAnd(ctx.U1, a, b); |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | void EmitLogicalXor(EmitContext&) { | 17 | Id EmitLogicalXor(EmitContext& ctx, Id a, Id b) { |
| 18 | throw NotImplementedException("SPIR-V Instruction"); | 18 | return ctx.OpLogicalNotEqual(ctx.U1, a, b); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | void EmitLogicalNot(EmitContext&) { | 21 | Id EmitLogicalNot(EmitContext& ctx, Id value) { |
| 22 | throw NotImplementedException("SPIR-V Instruction"); | 22 | return ctx.OpLogicalNot(ctx.U1, value); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | } // namespace Shader::Backend::SPIRV | 25 | } // namespace Shader::Backend::SPIRV |