mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Add D3D12_Workgroup_Zoo unit tests for workgroup query functions
WaveGetLaneCount() WaveGetLaneIndex() WaveIsFirstLane()
This commit is contained in:
@@ -252,6 +252,13 @@ void main(uint3 inTid : SV_DispatchThreadID)
|
||||
data.x += WaveActiveSum(id);
|
||||
}
|
||||
}
|
||||
else if(IsTest(9))
|
||||
{
|
||||
// Query function : unit tests
|
||||
data.x = float(WaveGetLaneCount());
|
||||
data.y = float(WaveGetLaneIndex());
|
||||
data.z = float(WaveIsFirstLane());
|
||||
}
|
||||
SetOuput(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user