![]() |
OpenSubdiv
|
CL patch table. More...
#include <clPatchTable.h>
Public Member Functions | |
| ~CLPatchTable () | |
| Destructor. | |
| cl_mem | GetPatchArrayBuffer () const |
| Returns the CL memory of the array of Osd::PatchArray buffer. | |
| cl_mem | GetPatchIndexBuffer () const |
| Returns the CL memory of the patch control vertices. | |
| cl_mem | GetPatchParamBuffer () const |
| Returns the CL memory of the array of Osd::PatchParam buffer. | |
| cl_mem | GetVaryingPatchArrayBuffer () const |
| Returns the CL memory of the array of Osd::PatchArray buffer. | |
| cl_mem | GetVaryingPatchIndexBuffer () const |
| Returns the CL memory of the varying control vertices. | |
| int | GetNumFVarChannels () const |
| Returns the number of face-varying channel buffers. | |
| cl_mem | GetFVarPatchArrayBuffer (int fvarChannel=0) const |
| Returns the CL memory of the array of Osd::PatchArray buffer. | |
| cl_mem | GetFVarPatchIndexBuffer (int fvarChannel=0) const |
| Returns the CL memory of the face-varying control vertices. | |
| cl_mem | GetFVarPatchParamBuffer (int fvarChannel=0) const |
| Returns the CL memory of the array of Osd::PatchParam buffer. | |
Static Public Member Functions | |
| static CLPatchTable * | Create (Far::PatchTable const *patchTable, cl_context clContext) |
| Creator. Returns NULL if error. | |
| template<typename DEVICE_CONTEXT> | |
| static CLPatchTable * | Create (Far::PatchTable const *patchTable, DEVICE_CONTEXT context) |
Protected Member Functions | |
| CLPatchTable () | |
| bool | allocate (Far::PatchTable const *patchTable, cl_context clContext) |
Protected Attributes | |
| cl_mem | _patchArrays |
| cl_mem | _indexBuffer |
| cl_mem | _patchParamBuffer |
| cl_mem | _varyingPatchArrays |
| cl_mem | _varyingIndexBuffer |
| std::vector< cl_mem > | _fvarPatchArrays |
| std::vector< cl_mem > | _fvarIndexBuffers |
| std::vector< cl_mem > | _fvarParamBuffers |
CL patch table.
This class is a CL buffer representation of Far::PatchTable.
CLEvaluator consumes this table to evaluate on the patches.
Definition at line 35 of file clPatchTable.h.
| ~CLPatchTable | ( | ) |
Destructor.
|
protected |
|
protected |
|
static |
Creator. Returns NULL if error.
|
inlinestatic |
Definition at line 42 of file clPatchTable.h.
|
inline |
Returns the CL memory of the array of Osd::PatchArray buffer.
Definition at line 69 of file clPatchTable.h.
|
inline |
Returns the CL memory of the face-varying control vertices.
Definition at line 72 of file clPatchTable.h.
|
inline |
Returns the CL memory of the array of Osd::PatchParam buffer.
Definition at line 75 of file clPatchTable.h.
|
inline |
Returns the number of face-varying channel buffers.
Definition at line 66 of file clPatchTable.h.
|
inline |
Returns the CL memory of the array of Osd::PatchArray buffer.
Definition at line 51 of file clPatchTable.h.
|
inline |
Returns the CL memory of the patch control vertices.
Definition at line 54 of file clPatchTable.h.
|
inline |
Returns the CL memory of the array of Osd::PatchParam buffer.
Definition at line 57 of file clPatchTable.h.
|
inline |
Returns the CL memory of the array of Osd::PatchArray buffer.
Definition at line 60 of file clPatchTable.h.
|
inline |
Returns the CL memory of the varying control vertices.
Definition at line 63 of file clPatchTable.h.
|
protected |
Definition at line 90 of file clPatchTable.h.
|
protected |
Definition at line 91 of file clPatchTable.h.
|
protected |
Definition at line 89 of file clPatchTable.h.
|
protected |
Definition at line 83 of file clPatchTable.h.
|
protected |
Definition at line 82 of file clPatchTable.h.
|
protected |
Definition at line 84 of file clPatchTable.h.
|
protected |
Definition at line 87 of file clPatchTable.h.
|
protected |
Definition at line 86 of file clPatchTable.h.