Skip to main content

build_voxel_segments_gpu_from_keys_buffer

Function build_voxel_segments_gpu_from_keys_buffer 

Source
pub fn build_voxel_segments_gpu_from_keys_buffer(
    runtime: &WgpuRuntime,
    keys_buffer: &Buffer,
    point_count: u32,
    padded_count: u32,
) -> SpatialResult<GpuVoxelSegments>
Expand description

Builds GPU-resident voxel segments from a GPU keys buffer using stable radix sorting.

padded_count is retained for compatibility and must be at least point_count. Only point_count entries are allocated and processed; no power-of-two padding or post-sort filtering is needed. Sorting performs no host readback. Segment compaction retains its existing scalar cell-count synchronization.