Function make_index_buffer
pub fn make_index_buffer(
context: &mut RCHandle<GrDirectContext>,
data: &[u8],
) -> Option<RCHandle<SkMesh_IndexBuffer>>Expand description
Makes a GPU-backed index buffer to be used with crate::Meshes.
contextThe data will be uploaded to the corresponding GPU and the returned buffer will only be compatible with surfaces using the same context.dataThe 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.