Skip to main content

compute_voxel_keys_aoso_chunks

Function compute_voxel_keys_aoso_chunks 

Source
pub fn compute_voxel_keys_aoso_chunks(
    runtime: &WgpuRuntime,
    chunks: &[GpuAoSoXyzChunk],
    origin: [f32; 3],
    inv_leaf: f32,
) -> SpatialResult<Vec<Vec<(i64, i64, i64)>>>
Expand description

Computes voxel keys directly from uploaded interleaved XYZ chunks.

The returned outer vector preserves chunk boundaries and order. Positions stay in their existing GPU buffers; only the computed keys are read back. All chunks must use the same origin and inv_leaf so keys are globally comparable across chunk boundaries.