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" 36 namespace OPENSUBDIV_VERSION
45 void UpdateData(
const float* src,
int startVertex,
int numVertices,
MTLContext* context);
57 float* BindCpuBuffer();
58 id<MTLBuffer> BindMTLBuffer(
MTLContext* context);
62 return BindMTLBuffer(context);
74 id<MTLBuffer> _buffer;
80 using namespace OPENSUBDIV_VERSION;
84 #endif // OPENSUBDIV3_OSD_MTL_VERTEX_BUFFER_H id< MTLBuffer > BindVBO(MTLContext *context)
int GetNumVertices() const
int GetNumElements() const