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 39 of file mtlVertexBuffer.h.
|
protected |
|
protected |
float * BindCpuBuffer | ( | ) |
id< MTLBuffer > BindMTLBuffer | ( | MTLContext * | context | ) |
|
inline |
Definition at line 58 of file mtlVertexBuffer.h.
|
static |
|
inline |
Definition at line 45 of file mtlVertexBuffer.h.
|
inline |
Definition at line 50 of file mtlVertexBuffer.h.
void UpdateData | ( | const float * | src, |
int | startVertex, | ||
int | numVertices, | ||
MTLContext * | context | ||
) |