Skip to main content

make_index_buffer

Function make_index_buffer 

pub fn make_index_buffer(data: &[u8]) -> Option<RCHandle<SkMesh_IndexBuffer>>
Expand description

Makes a CPU-backed index buffer to be used with super::Meshes.

  • data The data used to populate the buffer (native endian unsigned 16-bit indices). Its length is both the size of the data and the size of the resulting buffer, in bytes.