pub fn remap_vertex_buffer<Vertex>(
destination: &mut [Vertex],
vertices: &[Vertex],
remap: &[u32],
)where
Vertex: Copy,
Expand description
Generates vertex buffer from the source vertex buffer and remap table generated by generate_vertex_remap.
ยงArguments
destination
: must contain enough space for the resulting vertex buffer (unique_vertex_count
elements, returned by generate_vertex_remap)vertices
: should have the initial vertex count and not the value returned by generate_vertex_remap