mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-11 08:23:46 +00:00
Add D3D12_Workgroup_Zoo unit tests for subgroup Broadcast ops
WaveReadLaneFirst() WaveReadLaneAt()
This commit is contained in:
1 parent
b8f1d01b35
commit
214d3f766f
1 file changed
+11
@@ -297,6 +297,17 @@ void main(uint3 inTid : SV_DispatchThreadID)
|
||||
data.w = countbits(ballot.x) + countbits(ballot.y) + countbits(ballot.z) + countbits(ballot.w);
|
||||
}
|
||||
}
|
||||
else if(IsTest(11))
|
||||
{
|
||||
// Broadcast functions : unit tests
|
||||
if (id >= 2 && id <= 20)
|
||||
{
|
||||
data.x = WaveReadLaneFirst(id);
|
||||
data.y = WaveReadLaneAt(id, 5);
|
||||
data.z = WaveReadLaneAt(id, id);
|
||||
data.w = WaveReadLaneAt(data.x, 2+id%3);
|
||||
}
|
||||
}
|
||||
SetOuput(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user