[][src]Function meshopt::optimize::optimize_vertex_fetch_in_place

pub fn optimize_vertex_fetch_in_place<T>(
    indices: &mut [u32],
    vertices: &mut [T]
) -> usize

Vertex fetch cache optimizer (modifies in place) Reorders vertices and changes indices to reduce the amount of GPU memory fetches during vertex processing.

This functions works for a single vertex stream; for multiple vertex streams, use optimize_vertex_fetch_remap + remap_vertex_buffer for each stream.

indices and vertices are used both as an input and as an output buffer.