struct main_inputs { | |
uint tint_local_index : SV_GroupIndex; | |
}; | |
groupshared float2x3 v; | |
void main_inner(uint tint_local_index) { | |
if ((tint_local_index == 0u)) { | |
v = float2x3((0.0f).xxx, (0.0f).xxx); | |
} | |
GroupMemoryBarrierWithGroupSync(); | |
} | |
[numthreads(1, 1, 1)] | |
void main(main_inputs inputs) { | |
main_inner(inputs.tint_local_index); | |
} | |