mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add D3D12_Workgroup_Zoo unit tests for Wave Scan and Prefix ops
WavePrefixCountBits() WavePrefixSum() WavePrefixProduct()
This commit is contained in:
@@ -308,6 +308,17 @@ void main(uint3 inTid : SV_DispatchThreadID)
|
||||
data.w = WaveReadLaneAt(data.x, 2+id%3);
|
||||
}
|
||||
}
|
||||
else if(IsTest(12))
|
||||
{
|
||||
// Scan and Prefix functions : unit tests
|
||||
if (id >= 2 && id <= 20)
|
||||
{
|
||||
data.x = WavePrefixCountBits(id > 4);
|
||||
data.y = WavePrefixCountBits(id > 10);
|
||||
data.z = WavePrefixSum(data.x);
|
||||
data.w = WavePrefixProduct(1 + data.y);
|
||||
}
|
||||
}
|
||||
SetOuput(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user