Function meshopt::optimize::optimize_vertex_cache_in_place[][src]

pub fn optimize_vertex_cache_in_place(indices: &[u32], vertex_count: usize)

Reorders indices to reduce the number of GPU vertex shader invocations.

If index buffer contains multiple ranges for multiple draw calls, this function needs to be called on each range individually.