diff options
Diffstat (limited to 'src/shader_recompiler/frontend')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 4 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.h | 2 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/ir/opcodes.inc | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index 13159a68d..9ae5da2a1 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp | |||
| @@ -375,6 +375,10 @@ F32 IREmitter::YDirection() { | |||
| 375 | return Inst<F32>(Opcode::YDirection); | 375 | return Inst<F32>(Opcode::YDirection); |
| 376 | } | 376 | } |
| 377 | 377 | ||
| 378 | F32 IREmitter::ResolutionDownFactor() { | ||
| 379 | return Inst<F32>(Opcode::ResolutionDownFactor); | ||
| 380 | } | ||
| 381 | |||
| 378 | U32 IREmitter::LaneId() { | 382 | U32 IREmitter::LaneId() { |
| 379 | return Inst<U32>(Opcode::LaneId); | 383 | return Inst<U32>(Opcode::LaneId); |
| 380 | } | 384 | } |
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h index 1b89ca5a0..0c664d2fe 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.h +++ b/src/shader_recompiler/frontend/ir/ir_emitter.h | |||
| @@ -102,6 +102,8 @@ public: | |||
| 102 | [[nodiscard]] U1 IsHelperInvocation(); | 102 | [[nodiscard]] U1 IsHelperInvocation(); |
| 103 | [[nodiscard]] F32 YDirection(); | 103 | [[nodiscard]] F32 YDirection(); |
| 104 | 104 | ||
| 105 | [[nodiscard]] F32 ResolutionDownFactor(); | ||
| 106 | |||
| 105 | [[nodiscard]] U32 LaneId(); | 107 | [[nodiscard]] U32 LaneId(); |
| 106 | 108 | ||
| 107 | [[nodiscard]] U32 LoadGlobalU8(const U64& address); | 109 | [[nodiscard]] U32 LoadGlobalU8(const U64& address); |
diff --git a/src/shader_recompiler/frontend/ir/opcodes.inc b/src/shader_recompiler/frontend/ir/opcodes.inc index d91098c80..72751c5a0 100644 --- a/src/shader_recompiler/frontend/ir/opcodes.inc +++ b/src/shader_recompiler/frontend/ir/opcodes.inc | |||
| @@ -62,6 +62,7 @@ OPCODE(InvocationId, U32, | |||
| 62 | OPCODE(SampleId, U32, ) | 62 | OPCODE(SampleId, U32, ) |
| 63 | OPCODE(IsHelperInvocation, U1, ) | 63 | OPCODE(IsHelperInvocation, U1, ) |
| 64 | OPCODE(YDirection, F32, ) | 64 | OPCODE(YDirection, F32, ) |
| 65 | OPCODE(ResolutionDownFactor, F32, ) | ||
| 65 | 66 | ||
| 66 | // Undefined | 67 | // Undefined |
| 67 | OPCODE(UndefU1, U1, ) | 68 | OPCODE(UndefU1, U1, ) |