Function meshopt::optimize::optimize_vertex_fetch_remap[][src]

pub fn optimize_vertex_fetch_remap(
    indices: &[u32],
    vertex_count: usize
) -> Vec<u32>

Generates vertex remap to reduce the amount of GPU memory fetches during vertex processing.

The resulting remap table should be used to reorder vertex/index buffers using optimize_remap_vertex_buffer/optimize_remap_index_buffer.