Function meshopt::ffi::meshopt_generateVertexRemapMulti [−][src]
pub unsafe extern "C" fn meshopt_generateVertexRemapMulti(
destination: *mut c_uint,
indices: *const c_uint,
index_count: usize,
vertex_count: usize,
streams: *const meshopt_Stream,
stream_count: usize
) -> usize
Generates a vertex remap table from multiple vertex streams and an optional index buffer and returns number of unique vertices As a result, all vertices that are binary equivalent map to the same (new) location, with no gaps in the resulting sequence. Resulting remap table maps old vertices to new vertices and can be used in meshopt_remapVertexBuffer/meshopt_remapIndexBuffer. To remap vertex buffers, you will need to call meshopt_remapVertexBuffer for each vertex stream.
destination must contain enough space for the resulting remap table (vertex_count elements) indices can be NULL if the input is unindexed