SV_GroupIndex

The "flattened" index of a compute shader thread within a thread group, which turns the multi-dimensional SV_GroupThreadID into a 1D value.
SV_GroupIndex varies from 0 to (numthreadsX * numthreadsY * numThreadsZ) – 1.