[][src]Function meshopt::ffi::meshopt_optimizeVertexCacheFifo

pub unsafe extern "C" fn meshopt_optimizeVertexCacheFifo(
    destination: *mut c_uint,
    indices: *const c_uint,
    index_count: usize,
    vertex_count: usize,
    cache_size: c_uint
)

Vertex transform cache optimizer for FIFO caches 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 meshopt_optimizeVertexCache If index buffer contains multiple ranges for multiple draw calls, this functions needs to be called on each range individually.

destination must contain enough space for the resulting index buffer (index_count elements) cache_size should be less than the actual GPU cache size to avoid cache thrashing