diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-04-02 23:05:47 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:26 -0400 |
commit | 45d547af11a18434ea17e4427db7286856a19537 (patch) | |
tree | a12a3d283abb99d52c3084b9ded7d1aa9b0bd03f /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
parent | 595806fb1c81f0c57bb31d1f232d1447d4f61745 (diff) |
shader: Implement SR_LaneId
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index 2fd90303fb..b5f61956a5 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::LocalInvocationIdZ() { return U32{CompositeExtract(Inst(Opcode::LocalInvocationId), 2)}; } +U32 IREmitter::LaneId() { + return Inst<U32>(Opcode::LaneId); +} + U32 IREmitter::LoadGlobalU8(const U64& address) { return Inst<U32>(Opcode::LoadGlobalU8, address); } |