Add D3D12_Workgroup_Zoo unit tests for workgroup query functions

WaveGetLaneCount()
WaveGetLaneIndex()
WaveIsFirstLane()
This commit is contained in:
Jake Turner
2025-04-06 12:25:05 +01:00
parent 88a9bde2f9
commit 5e6cfd73a0
@@ -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);
}