Skia
2D Graphics Library
SkMeshes Namespace Reference

Functions

SK_API sk_sp< SkMesh::IndexBufferMakeIndexBuffer (const void *data, size_t size)
 Makes a CPU-backed index buffer to be used with SkMeshes. More...
 
SK_API sk_sp< SkMesh::IndexBufferCopyIndexBuffer (const sk_sp< SkMesh::IndexBuffer > &)
 Makes a copy of an index buffer. More...
 
SK_API sk_sp< SkMesh::VertexBufferMakeVertexBuffer (const void *, size_t size)
 Makes a CPU-backed vertex buffer to be used with SkMeshes. More...
 
SK_API sk_sp< SkMesh::VertexBufferCopyVertexBuffer (const sk_sp< SkMesh::VertexBuffer > &)
 Makes a copy of a vertex buffer. More...
 

Function Documentation

◆ CopyIndexBuffer()

SK_API sk_sp<SkMesh::IndexBuffer> SkMeshes::CopyIndexBuffer ( const sk_sp< SkMesh::IndexBuffer > &  )

Makes a copy of an index buffer.

The copy will be CPU-backed.

◆ CopyVertexBuffer()

SK_API sk_sp<SkMesh::VertexBuffer> SkMeshes::CopyVertexBuffer ( const sk_sp< SkMesh::VertexBuffer > &  )

Makes a copy of a vertex buffer.

The copy will be CPU-backed.

◆ MakeIndexBuffer()

SK_API sk_sp<SkMesh::IndexBuffer> SkMeshes::MakeIndexBuffer ( const void *  data,
size_t  size 
)

Makes a CPU-backed index buffer to be used with SkMeshes.

Parameters
dataThe data used to populate the buffer, or nullptr to create a zero- initialized buffer.
sizeBoth the size of the data in 'data' and the size of the resulting buffer, in bytes.

◆ MakeVertexBuffer()

SK_API sk_sp<SkMesh::VertexBuffer> SkMeshes::MakeVertexBuffer ( const void *  ,
size_t  size 
)

Makes a CPU-backed vertex buffer to be used with SkMeshes.

Parameters
dataThe data used to populate the buffer, or nullptr to create a zero- initialized buffer.
sizeBoth the size of the data in 'data' and the size of the resulting buffer, in bytes.