Skip to main content

copy_vertex_buffer

Function copy_vertex_buffer 

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

Makes a copy of a vertex buffer. The copy will be GPU backed.

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