diff options
Diffstat (limited to 'src/shader_recompiler/frontend/ir')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 4 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index b3c9fe72a..5913fdeff 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp | |||
| @@ -355,6 +355,10 @@ U32 IREmitter::WorkgroupIdZ() { | |||
| 355 | return U32{CompositeExtract(Inst(Opcode::WorkgroupId), 2)}; | 355 | return U32{CompositeExtract(Inst(Opcode::WorkgroupId), 2)}; |
| 356 | } | 356 | } |
| 357 | 357 | ||
| 358 | Value IREmitter::LocalInvocationId() { | ||
| 359 | return Inst(Opcode::LocalInvocationId); | ||
| 360 | } | ||
| 361 | |||
| 358 | U32 IREmitter::LocalInvocationIdX() { | 362 | U32 IREmitter::LocalInvocationIdX() { |
| 359 | return U32{CompositeExtract(Inst(Opcode::LocalInvocationId), 0)}; | 363 | return U32{CompositeExtract(Inst(Opcode::LocalInvocationId), 0)}; |
| 360 | } | 364 | } |
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h index 4441c495d..a12919283 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.h +++ b/src/shader_recompiler/frontend/ir/ir_emitter.h | |||
| @@ -95,6 +95,7 @@ public: | |||
| 95 | [[nodiscard]] U32 WorkgroupIdY(); | 95 | [[nodiscard]] U32 WorkgroupIdY(); |
| 96 | [[nodiscard]] U32 WorkgroupIdZ(); | 96 | [[nodiscard]] U32 WorkgroupIdZ(); |
| 97 | 97 | ||
| 98 | [[nodiscard]] Value LocalInvocationId(); | ||
| 98 | [[nodiscard]] U32 LocalInvocationIdX(); | 99 | [[nodiscard]] U32 LocalInvocationIdX(); |
| 99 | [[nodiscard]] U32 LocalInvocationIdY(); | 100 | [[nodiscard]] U32 LocalInvocationIdY(); |
| 100 | [[nodiscard]] U32 LocalInvocationIdZ(); | 101 | [[nodiscard]] U32 LocalInvocationIdZ(); |