 |
My Project
|
Go to the documentation of this file.
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"
35 namespace OPENSUBDIV_VERSION {
72 id<MTLBuffer> _buffer;
79 using namespace OPENSUBDIV_VERSION;
83 #endif // OPENSUBDIV3_OSD_MTL_VERTEX_BUFFER_H
id< MTLBuffer > BindVBO(MTLContext *context)
id< MTLBuffer > BindMTLBuffer(MTLContext *context)
int GetNumElements() const
CPUMTLVertexBuffer(int numElements, int numVertices)
int GetNumVertices() const
static CPUMTLVertexBuffer * Create(int numElements, int numVertices, MTLContext *context)
bool allocate(MTLContext *context)
void UpdateData(const float *src, int startVertex, int numVertices, MTLContext *context)