Function meshopt::ffi::meshopt_buildMeshlets [−][src]
pub unsafe extern "C" fn meshopt_buildMeshlets(
destination: *mut meshopt_Meshlet,
indices: *const c_uint,
index_count: usize,
vertex_count: usize,
max_vertices: usize,
max_triangles: usize
) -> usize
Experimental: Meshlet builder Splits the mesh into a set of meshlets where each meshlet has a micro index buffer indexing into meshlet vertices that refer to the original vertex buffer The resulting data can be used to render meshes using NVidia programmable mesh shading pipeline, or in other cluster-based renderers. For maximum efficiency the index buffer being converted has to be optimized for vertex cache first.
destination must contain enough space for all meshlets, worst case size can be computed with meshopt_buildMeshletsBound max_vertices and max_triangles can’t exceed limits statically declared in meshopt_Meshlet (max_vertices <= 64, max_triangles <= 126)