Function meshopt::ffi::meshopt_optimizeVertexFetch [−][src]
pub unsafe extern "C" fn meshopt_optimizeVertexFetch(
destination: *mut c_void,
indices: *mut c_uint,
index_count: usize,
vertices: *const c_void,
vertex_count: usize,
vertex_size: usize
) -> usize
Vertex fetch cache optimizer Reorders vertices and changes indices 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 This functions works for a single vertex stream; for multiple vertex streams, use meshopt_optimizeVertexFetchRemap + meshopt_remapVertexBuffer for each stream.
destination must contain enough space for the resulting vertex buffer (vertex_count elements) indices is used both as an input and as an output index buffer