25 #ifndef OSD_CUDA_VERTEX_BUFFER_H
26 #define OSD_CUDA_VERTEX_BUFFER_H
28 #include "../version.h"
30 namespace OpenSubdiv {
31 namespace OPENSUBDIV_VERSION {
51 void UpdateData(
const float *src,
int startVertex,
int numVertices);
80 using namespace OPENSUBDIV_VERSION;
84 #endif // OSD_CUDA_VERTEX_BUFFER_H
int GetNumVertices() const
Returns how many vertices allocated in this vertex buffer.
int GetNumElements() const
Returns how many elements defined in this vertex buffer.
void UpdateData(const float *src, int startVertex, int numVertices)
Concrete vertex buffer class for Cuda subvision.
float * BindCudaBuffer()
Returns cuda memory.
static CudaVertexBuffer * Create(int numElements, int numVertices)
Creator. Returns NULL if error.
CudaVertexBuffer(int numElements, int numVertices)
Constructor.
~CudaVertexBuffer()
Destructor.