[][src]Function meshopt::ffi::meshopt_generateShadowIndexBuffer

pub unsafe extern "C" fn meshopt_generateShadowIndexBuffer(
    destination: *mut c_uint,
    indices: *const c_uint,
    index_count: usize,
    vertices: *const c_void,
    vertex_count: usize,
    vertex_size: usize,
    vertex_stride: usize
)

Generate index buffer that can be used for more efficient rendering when only a subset of the vertex attributes is necessary All vertices that are binary equivalent (wrt first vertex_size bytes) map to the first vertex in the original vertex buffer. This makes it possible to use the index buffer for Z pre-pass or shadowmap rendering, while using the original index buffer for regular rendering.

destination must contain enough space for the resulting index buffer (index_count elements)