Skip to main content

make_zero_initialized_index_buffer

Function make_zero_initialized_index_buffer 

pub fn make_zero_initialized_index_buffer(
    context: &mut RCHandle<GrDirectContext>,
    size: usize,
) -> Option<RCHandle<SkMesh_IndexBuffer>>
Expand description

Makes a zero-initialized GPU-backed index buffer to be used with crate::Meshes.

  • context The buffer will be created on the corresponding GPU and will only be compatible with surfaces using the same context.
  • size The size of the resulting buffer, in bytes.