shader: Implement SR_LaneId

This commit is contained in:
FernandoS27 2021-04-02 23:05:47 +02:00 committed by ameerj
parent e98900a16b
commit 5a6eb31578
7 changed files with 15 additions and 0 deletions

View file

@ -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);
}