Function meshopt::ffi::meshopt_spatialSortRemap[][src]

pub unsafe extern "C" fn meshopt_spatialSortRemap(
    destination: *mut c_uint,
    vertex_positions: *const f32,
    vertex_count: usize,
    vertex_positions_stride: usize
)

Experimental: Spatial sorter Generates a remap table that can be used to reorder points for spatial locality. Resulting remap table maps old vertices to new vertices and can be used in meshopt_remapVertexBuffer.

destination must contain enough space for the resulting remap table (vertex_count elements)