Function JobBuild.CountingSortAgents

CountingSortAgents (int count, int numBuckets, float3 mn, float3 mx, int levels)

Orders the first count entries of agents by the cell they fall in at the given depth.

Public
NativeArray<int> CountingSortAgents (

int

count

int

numBuckets

float3

mn

float3

mx

int

levels

)

Orders the first count entries of agents by the cell they fall in at the given depth.

Returns where each cell's agents begin, with numBuckets+1 entries, so a node spanning cells [lo, hi) contains the agents in the slice [result[lo], result[hi]).