Elements one invocation handles in a block pass. In the scatter they are
CONSECUTIVE, so an invocation ranks its own elements in order and one
workgroup scan of per-invocation digit counts ranks the block: that is what
makes the scatter stable without sorting inside the workgroup.
Elements one invocation handles in a block pass. In the scatter they are CONSECUTIVE, so an invocation ranks its own elements in order and one workgroup scan of per-invocation digit counts ranks the block: that is what makes the scatter stable without sorting inside the workgroup.