Function meshopt::optimize::optimize_vertex_cache_fifo_in_place[][src]

pub fn optimize_vertex_cache_fifo_in_place(
    indices: &mut [u32],
    vertex_count: usize,
    cache_size: u32
)

Vertex transform cache optimizer for FIFO caches (in place).

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

Generally takes ~3x less time to optimize meshes but produces inferior results compared to optimize_vertex_cache_fifo_in_place.

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