25 #ifndef OPENSUBDIV3_OSD_MTL_VERTEX_BUFFER_H
26 #define OPENSUBDIV3_OSD_MTL_VERTEX_BUFFER_H
28 #include "../version.h"
29 #include "../osd/mtlCommon.h"
34 namespace OpenSubdiv {
35 namespace OPENSUBDIV_VERSION {
72 id<MTLBuffer> _buffer;
79 using namespace OPENSUBDIV_VERSION;
83 #endif // OPENSUBDIV3_OSD_MTL_VERTEX_BUFFER_H
static CPUMTLVertexBuffer * Create(int numElements, int numVertices, MTLContext *context)
id< MTLBuffer > BindMTLBuffer(MTLContext *context)
bool allocate(MTLContext *context)
int GetNumVertices() const
id< MTLBuffer > BindVBO(MTLContext *context)
int GetNumElements() const
void UpdateData(const float *src, int startVertex, int numVertices, MTLContext *context)
CPUMTLVertexBuffer(int numElements, int numVertices)