pub fn optimize_vertex_cache_fifo(
destination: &mut [u32],
indices: &[u32],
vertex_count: usize,
cache_size: u32,
)
Expand description
Reorders indices to reduce the number of GPU vertex shader invocations (for FIFO caches).
Generally takes ~3x less time to optimize meshes but produces inferior results compared to optimize_vertex_cache. If index buffer contains multiple ranges for multiple draw calls, this functions needs to be called on each range individually.
ยงArguments
destination
: must contain enough space for the resulting index buffer (indices.len()
elements)cache_size
: should be less than the actual GPU cache size to avoid cache thrashing