blob: 9cf08312f6ab51ba630ebab26f479fe1c12050f5 [file] [log] [blame] [edit]
RWByteAddressBuffer output : register(u0);
void main_inner(uint subgroup_invocation_id, uint subgroup_size) {
output.Store((4u * subgroup_invocation_id), asuint(subgroup_size));
}
[numthreads(1, 1, 1)]
void main() {
main_inner(WaveGetLaneIndex(), WaveGetLaneCount());
return;
}