blob: 8e1d0db268e33a75f6cdb4f7729d27261352cfc9 [file] [log] [blame]
RWByteAddressBuffer output : register(u0);
struct ComputeInputs {
uint subgroup_invocation_id;
uint subgroup_size;
};
void main_inner(ComputeInputs inputs) {
output.Store((4u * inputs.subgroup_invocation_id), asuint(inputs.subgroup_size));
}
[numthreads(1, 1, 1)]
void main() {
const ComputeInputs tint_symbol = {WaveGetLaneIndex(), WaveGetLaneCount()};
main_inner(tint_symbol);
return;
}