pub fn optimize_vertex_cache_strip(
destination: &mut [u32],
indices: &[u32],
vertex_count: usize,
)
Expand description
Reorders indices to reduce the number of GPU vertex shader invocations (for strip-like caches).
Produces inferior results to optimize_vertex_cache from the GPU vertex cache perspective. However, the resulting index order is more optimal if the goal is to reduce the triangle strip length or improve compression efficiency.
ยงArguments
destination
: must contain enough space for the resulting index buffer (indices.len()
elements)