![]() |
OpenSubdiv
|
CUDA patch table. More...
#include <cudaPatchTable.h>
Public Member Functions | |
| ~CudaPatchTable () | |
| Destructor. | |
| void * | GetPatchArrayBuffer () 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 * | GetPatchParamBuffer () const |
| Returns the cuda memory of the array of Osd::PatchParam buffer. | |
| void * | GetVaryingPatchArrayBuffer () const |
| Returns the cuda memory of the array of Osd::PatchArray buffer. | |
| void * | GetVaryingPatchIndexBuffer () const |
| Returns the cuda memory of the array of varying control vertices. | |
| int | GetNumFVarChannels () const |
| Returns the number of face-varying channels buffers. | |
| void * | GetFVarPatchArrayBuffer (int fvarChannel) const |
| Returns the cuda memory of the array of Osd::PatchArray buffer. | |
| 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. | |
Static Public Member Functions | |
| static CudaPatchTable * | Create (Far::PatchTable const *patchTable, void *deviceContext=NULL) |
| Creator. Returns NULL if error. | |
Protected Member Functions | |
| CudaPatchTable () | |
| bool | allocate (Far::PatchTable const *patchTable) |
Protected Attributes | |
| void * | _patchArrays |
| void * | _indexBuffer |
| void * | _patchParamBuffer |
| void * | _varyingPatchArrays |
| void * | _varyingIndexBuffer |
| std::vector< void * > | _fvarPatchArrays |
| std::vector< void * > | _fvarIndexBuffers |
| std::vector< void * > | _fvarParamBuffers |
CUDA patch table.
This class is a cuda buffer representation of Far::PatchTable.
CudaEvaluator consumes this table to evaluate on the patches.
Definition at line 34 of file cudaPatchTable.h.
| ~CudaPatchTable | ( | ) |
Destructor.
|
protected |
|
protected |
|
static |
Creator. Returns NULL if error.
|
inline |
Returns the cuda memory of the array of Osd::PatchArray buffer.
Definition at line 64 of file cudaPatchTable.h.
|
inline |
Returns the cuda memory of the array of face-varying control vertices.
Definition at line 69 of file cudaPatchTable.h.
|
inline |
Returns the cuda memory of the array of face-varying param.
Definition at line 74 of file cudaPatchTable.h.
|
inline |
Returns the number of face-varying channels buffers.
Definition at line 61 of file cudaPatchTable.h.
|
inline |
Returns the cuda memory of the array of Osd::PatchArray buffer.
Definition at line 43 of file cudaPatchTable.h.
|
inline |
Returns the cuda memory of the patch control vertices.
Definition at line 46 of file cudaPatchTable.h.
|
inline |
Returns the cuda memory of the array of Osd::PatchParam buffer.
Definition at line 49 of file cudaPatchTable.h.
|
inline |
Returns the cuda memory of the array of Osd::PatchArray buffer.
Definition at line 52 of file cudaPatchTable.h.
|
inline |
Returns the cuda memory of the array of varying control vertices.
Definition at line 56 of file cudaPatchTable.h.
|
protected |
Definition at line 91 of file cudaPatchTable.h.
|
protected |
Definition at line 92 of file cudaPatchTable.h.
|
protected |
Definition at line 90 of file cudaPatchTable.h.
|
protected |
Definition at line 84 of file cudaPatchTable.h.
|
protected |
Definition at line 83 of file cudaPatchTable.h.
|
protected |
Definition at line 85 of file cudaPatchTable.h.
|
protected |
Definition at line 88 of file cudaPatchTable.h.
|
protected |
Definition at line 87 of file cudaPatchTable.h.