25 #ifndef OPENSUBDIV3_OSD_CUDA_PATCH_TABLE_H
26 #define OPENSUBDIV3_OSD_CUDA_PATCH_TABLE_H
28 #include "../version.h"
30 #include "../osd/nonCopyable.h"
31 #include "../osd/types.h"
34 namespace OPENSUBDIV_VERSION {
53 void *deviceContext = NULL);
79 using namespace OPENSUBDIV_VERSION;
83 #endif // OPENSUBDIV3_OSD_CUDA_PATCH_TABLE_H
void * GetPatchParamBuffer() const
Returns the cuda memory of the array of Osd::PatchParam buffer.
bool allocate(Far::PatchTable const *patchTable)
static CudaPatchTable * Create(Far::PatchTable const *patchTable, void *deviceContext=NULL)
Creator. Returns NULL if error.
~CudaPatchTable()
Destructor.
void * GetPatchIndexBuffer() const
Returns the cuda memory of the patch control vertices.
void * GetPatchArrayBuffer() const
Returns the cuda memory of the array of Osd::PatchArray buffer.
Container for arrays of parametric patches.