Skip to main content

copy_index_buffer

Function copy_index_buffer 

pub fn copy_index_buffer(
    context: &mut RCHandle<GrDirectContext>,
    src: &RCHandle<SkMesh_IndexBuffer>,
) -> Option<RCHandle<SkMesh_IndexBuffer>>
Expand description

Makes a copy of an index buffer. The copy will be GPU backed.

Returns None if the contents of src can not be read back (GPU-backed buffers).