Flutter Engine
The Flutter Engine
|
Functions | |
SK_API sk_sp< SkMesh::IndexBuffer > | MakeIndexBuffer (const void *data, size_t size) |
SK_API sk_sp< SkMesh::IndexBuffer > | CopyIndexBuffer (const sk_sp< SkMesh::IndexBuffer > &) |
SK_API sk_sp< SkMesh::VertexBuffer > | MakeVertexBuffer (const void *, size_t size) |
SK_API sk_sp< SkMesh::VertexBuffer > | CopyVertexBuffer (const sk_sp< SkMesh::VertexBuffer > &) |
SK_API sk_sp< SkMesh::IndexBuffer > | MakeIndexBuffer (GrDirectContext *, const void *data, size_t size) |
SK_API sk_sp< SkMesh::IndexBuffer > | CopyIndexBuffer (GrDirectContext *, sk_sp< SkMesh::IndexBuffer >) |
SK_API sk_sp< SkMesh::VertexBuffer > | MakeVertexBuffer (GrDirectContext *, const void *, size_t size) |
SK_API sk_sp< SkMesh::VertexBuffer > | CopyVertexBuffer (GrDirectContext *, sk_sp< SkMesh::VertexBuffer >) |
sk_sp< IndexBuffer > SkMeshes::CopyIndexBuffer | ( | const sk_sp< SkMesh::IndexBuffer > & | src | ) |
Makes a copy of an index buffer. The copy will be CPU-backed.
Definition at line 893 of file SkMesh.cpp.
sk_sp< SkMesh::IndexBuffer > SkMeshes::CopyIndexBuffer | ( | GrDirectContext * | dc, |
sk_sp< SkMesh::IndexBuffer > | src | ||
) |
Makes a copy of an index buffer. The copy will be GPU backed if the context is non-null.
Definition at line 113 of file GrMeshBuffers.cpp.
sk_sp< VertexBuffer > SkMeshes::CopyVertexBuffer | ( | const sk_sp< SkMesh::VertexBuffer > & | src | ) |
Makes a copy of a vertex buffer. The copy will be CPU-backed.
Definition at line 909 of file SkMesh.cpp.
sk_sp< SkMesh::VertexBuffer > SkMeshes::CopyVertexBuffer | ( | GrDirectContext * | dc, |
sk_sp< SkMesh::VertexBuffer > | src | ||
) |
Makes a copy of a vertex buffer. The copy will be GPU backed if the context is non-null.
Definition at line 135 of file GrMeshBuffers.cpp.
sk_sp< IndexBuffer > SkMeshes::MakeIndexBuffer | ( | const void * | data, |
size_t | size | ||
) |
Makes a CPU-backed index buffer to be used with SkMeshes.
data | The data used to populate the buffer, or nullptr to create a zero- initialized buffer. |
size | Both the size of the data in 'data' and the size of the resulting buffer, in bytes. |
Definition at line 889 of file SkMesh.cpp.
sk_sp< SkMesh::IndexBuffer > SkMeshes::MakeIndexBuffer | ( | GrDirectContext * | dc, |
const void * | data, | ||
size_t | size | ||
) |
Makes a GPU-backed index buffer to be used with SkMeshes.
GrDirectContext* | If non-null, the data will be uploaded to the corresponding GPU and the returned buffer will only be compatible with surfaces using the same context. If null, the data will be uploaded to a CPU buffer. |
data | The data used to populate the buffer, or nullptr to create a zero- initialized buffer. |
size | Both the size of the data in 'data' and the size of the resulting buffer. |
Definition at line 105 of file GrMeshBuffers.cpp.
sk_sp< VertexBuffer > SkMeshes::MakeVertexBuffer | ( | const void * | data, |
size_t | size | ||
) |
Makes a CPU-backed vertex buffer to be used with SkMeshes.
data | The data used to populate the buffer, or nullptr to create a zero- initialized buffer. |
size | Both the size of the data in 'data' and the size of the resulting buffer, in bytes. |
Definition at line 905 of file SkMesh.cpp.
sk_sp< SkMesh::VertexBuffer > SkMeshes::MakeVertexBuffer | ( | GrDirectContext * | dc, |
const void * | data, | ||
size_t | size | ||
) |
Makes a GPU-backed vertex buffer to be used with SkMeshes.
GrDirectContext* | If non-null, the data will be uploaded to the corresponding GPU and the returned buffer will only be compatible with surfaces using the same context. If null, the data will be uploaded to a CPU buffer. |
data | The data used to populate the buffer, or nullptr to create a zero- initialized buffer. |
size | Both the size of the data in 'data' and the size of the resulting buffer. |
Definition at line 128 of file GrMeshBuffers.cpp.