Function meshopt::ffi::meshopt_spatialSortTriangles [−][src]
pub unsafe extern "C" fn meshopt_spatialSortTriangles(
destination: *mut c_uint,
indices: *const c_uint,
index_count: usize,
vertex_positions: *const f32,
vertex_count: usize,
vertex_positions_stride: usize
)
Experimental: Spatial sorter Reorders triangles for spatial locality, and generates a new index buffer. The resulting index buffer can be used with other functions like optimizeVertexCache.
destination must contain enough space for the resulting index buffer (index_count elements) indices must contain index data that is the result of meshopt_optimizeVertexCache (not the original mesh indices!) vertex_positions should have float3 position in the first 12 bytes of each vertex - similar to glVertexPointer