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"
35 namespace OpenSubdiv {
36 namespace OPENSUBDIV_VERSION {
55 void *deviceContext = NULL);
115 using namespace OPENSUBDIV_VERSION;
119 #endif // OPENSUBDIV3_OSD_CUDA_PATCH_TABLE_H
std::vector< void * > _fvarParamBuffers
void * GetFVarPatchArrayBuffer(int fvarChannel) const
Returns the cuda memory of the array of Osd::PatchArray buffer.
void * GetPatchArrayBuffer() const
Returns the cuda memory of the array of Osd::PatchArray buffer.
std::vector< void * > _fvarPatchArrays
void * GetFVarPatchParamBuffer(int fvarChannel=0) const
Returns the cuda memory of the array of face-varying param.
void * GetPatchParamBuffer() const
Returns the cuda memory of the array of Osd::PatchParam buffer.
void * _varyingIndexBuffer
bool allocate(Far::PatchTable const *patchTable)
void * GetVaryingPatchArrayBuffer() const
Returns the cuda memory of the array of Osd::PatchArray buffer.
std::vector< void * > _fvarIndexBuffers
~CudaPatchTable()
Destructor.
Container for arrays of parametric patches.
static CudaPatchTable * Create(Far::PatchTable const *patchTable, void *deviceContext=NULL)
Creator. Returns NULL if error.
void * GetFVarPatchIndexBuffer(int fvarChannel=0) const
Returns the cuda memory of the array of face-varying control vertices.
void * GetVaryingPatchIndexBuffer() const
Returns the cuda memory of the array of varying control vertices.
void * _varyingPatchArrays
int GetNumFVarChannels() const
Returns the number of face-varying channels buffers.
void * GetPatchIndexBuffer() const
Returns the cuda memory of the patch control vertices.