Function meshopt::ffi::meshopt_generateShadowIndexBufferMulti[][src]

pub unsafe extern "C" fn meshopt_generateShadowIndexBufferMulti(
    destination: *mut c_uint,
    indices: *const c_uint,
    index_count: usize,
    vertex_count: usize,
    streams: *const meshopt_Stream,
    stream_count: 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 specified streams) 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)