mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 03:54:45 +00:00
Update emit_spirv_warp.cpp
This commit is contained in:
parent
953fd5cb76
commit
41912d0a63
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ Id EmitLaneId(EmitContext& ctx) {
|
|||
return ctx.OpLoad(ctx.U32[1], ctx.subgroup_local_invocation_id);
|
||||
}
|
||||
|
||||
Id EmitWarpId(EmitContext& ctx) {
|
||||
return ctx.OpLoad(ctx.U32[1], ctx.subgroup_id);
|
||||
}
|
||||
|
||||
Id EmitQuadShuffle(EmitContext& ctx, Id value, Id index) {
|
||||
return ctx.OpGroupNonUniformQuadBroadcast(ctx.U32[1], SubgroupScope(ctx), value, index);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue