Skip to main content

make_vertex_buffer

Function make_vertex_buffer 

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

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

  • data The data used to populate the buffer. Its length is both the size of the data and the size of the resulting buffer, in bytes.