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"
35namespace OPENSUBDIV_VERSION {
72 id<MTLBuffer> _buffer;
79 using namespace OPENSUBDIV_VERSION;
id< MTLBuffer > BindVBO(MTLContext *context)
CPUMTLVertexBuffer(int numElements, int numVertices)
static CPUMTLVertexBuffer * Create(int numElements, int numVertices, MTLContext *context)
int GetNumElements() const
void UpdateData(const float *src, int startVertex, int numVertices, MTLContext *context)
int GetNumVertices() const
id< MTLBuffer > BindMTLBuffer(MTLContext *context)
bool allocate(MTLContext *context)