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 0e35fe6 commit b8f1d01Copy full SHA for b8f1d01
util/test/demos/vk/vk_subgroup_zoo.cpp
@@ -313,6 +313,17 @@ void main()
313
data.w = bitCount(ballot.x) + bitCount(ballot.y) + bitCount(ballot.z) + bitCount(ballot.w);
314
}
315
316
+ else if(IsTest(11))
317
+ {
318
+ // Broadcast functions : unit tests
319
+ if (id >= 2 && id <= 20)
320
321
+ data.x = subgroupBroadcastFirst(id);
322
+ data.y = subgroupBroadcast(id, 5);
323
+ data.z = subgroupShuffle(id, id);
324
+ data.w = subgroupShuffle(data.x, 2+id%3);
325
+ }
326
327
SetOuput(data);
328
329
0 commit comments