[][src]Function meshopt::optimize::optimize_vertex_cache

pub fn optimize_vertex_cache(indices: &[u32], vertex_count: usize) -> Vec<u32>

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.