We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d916f commit cf6e3d6Copy full SHA for cf6e3d6
util/test/demos/d3d12/d3d12_subgroup_zoo.cpp
@@ -308,6 +308,17 @@ void main(uint3 inTid : SV_DispatchThreadID)
308
data.w = WaveReadLaneAt(data.x, 2+id%3);
309
}
310
311
+ else if(IsTest(12))
312
+ {
313
+ // Scan and Prefix functions : unit tests
314
+ if (id >= 2 && id <= 20)
315
316
+ data.x = WavePrefixCountBits(id > 4);
317
+ data.y = WavePrefixCountBits(id > 10);
318
+ data.z = WavePrefixSum(data.x);
319
+ data.w = WavePrefixProduct(1 + data.y);
320
+ }
321
322
SetOuput(data);
323
324
0 commit comments