![]() |
OpenSubdiv
|
#include <mtlVertexBuffer.h>
Public Member Functions | |
| void | UpdateData (const float *src, int startVertex, int numVertices, MTLContext *context) |
| int | GetNumElements () const |
| int | GetNumVertices () const |
| float * | BindCpuBuffer () |
| id< MTLBuffer > | BindMTLBuffer (MTLContext *context) |
| id< MTLBuffer > | BindVBO (MTLContext *context) |
Static Public Member Functions | |
| static CPUMTLVertexBuffer * | Create (int numElements, int numVertices, MTLContext *context) |
Protected Member Functions | |
| CPUMTLVertexBuffer (int numElements, int numVertices) | |
| bool | allocate (MTLContext *context) |
Definition at line 22 of file mtlVertexBuffer.h.
|
protected |
|
protected |
| float * BindCpuBuffer | ( | ) |
| id< MTLBuffer > BindMTLBuffer | ( | MTLContext * | context | ) |
|
inline |
Definition at line 41 of file mtlVertexBuffer.h.
|
static |
|
inline |
Definition at line 28 of file mtlVertexBuffer.h.
|
inline |
Definition at line 33 of file mtlVertexBuffer.h.
| void UpdateData | ( | const float * | src, |
| int | startVertex, | ||
| int | numVertices, | ||
| MTLContext * | context ) |