pub fn gpu_broadphase_sort(buffer: &GpuCollisionBuffer) -> Vec<usize>Expand description
Sort AABBs by their minimum x-coordinate (mock GPU sort).
Returns a permutation index array such that perm[0] is the index of the
AABB with the smallest min.x. The buffer itself is not reordered.
ยงArguments
buffer- The collision buffer to sort.