Function meshopt::ffi::meshopt_optimizeVertexCache[][src]

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

Vertex transform cache optimizer Reorders indices to reduce the number of GPU vertex shader invocations 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)