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" 36 namespace OPENSUBDIV_VERSION {
55 void *deviceContext = NULL);
70 return _varyingPatchArrays;
74 return _varyingIndexBuffer;
82 return _fvarPatchArrays[fvarChannel];
87 return _fvarIndexBuffers[fvarChannel];
92 return _fvarParamBuffers[fvarChannel];
115 using namespace OPENSUBDIV_VERSION;
119 #endif // OPENSUBDIV3_OSD_CUDA_PATCH_TABLE_H
Container for arrays of parametric patches.
void * GetVaryingPatchArrayBuffer() const
Returns the cuda memory of the array of Osd::PatchArray buffer.
void * GetPatchIndexBuffer() const
Returns the cuda memory of the patch control vertices.
void * GetFVarPatchIndexBuffer(int fvarChannel=0) const
Returns the cuda memory of the array of face-varying control vertices.
void * GetFVarPatchParamBuffer(int fvarChannel=0) const
Returns the cuda memory of the array of face-varying param.
std::vector< void * > _fvarPatchArrays
void * GetFVarPatchArrayBuffer(int fvarChannel) const
Returns the cuda memory of the array of Osd::PatchArray buffer.
void * _varyingIndexBuffer
void * GetPatchParamBuffer() const
Returns the cuda memory of the array of Osd::PatchParam buffer.
void * _varyingPatchArrays
void * GetPatchArrayBuffer() const
Returns the cuda memory of the array of Osd::PatchArray buffer.
std::vector< void * > _fvarIndexBuffers
void * GetVaryingPatchIndexBuffer() const
Returns the cuda memory of the array of varying control vertices.
std::vector< void * > _fvarParamBuffers
int GetNumFVarChannels() const
Returns the number of face-varying channels buffers.