Function meshopt::ffi::meshopt_optimizeVertexFetchRemap[][src]

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

Vertex fetch cache optimizer Generates vertex remap to reduce the amount of GPU memory fetches during vertex processing Returns the number of unique vertices, which is the same as input vertex count unless some vertices are unused The resulting remap table should be used to reorder vertex/index buffers using meshopt_remapVertexBuffer/meshopt_remapIndexBuffer

destination must contain enough space for the resulting remap table (vertex_count elements)