25 #ifndef OSD_CUDA_COMPUTE_CONTEXT_H
26 #define OSD_CUDA_COMPUTE_CONTEXT_H
28 #include "../version.h"
30 #include "../osd/nonCopyable.h"
35 namespace OpenSubdiv {
36 namespace OPENSUBDIV_VERSION {
38 namespace Far{
class StencilTables; }
77 return _numControlVertices;
113 class CudaStencilTables;
115 CudaStencilTables * _vertexStencilTables,
116 * _varyingStencilTables;
118 int _numControlVertices;
124 using namespace OPENSUBDIV_VERSION;
128 #endif // OSD_CUDA_COMPUTE_CONTEXT_H
void * GetVertexStencilTablesSizes() const
Returns the Cuda buffer containing vertex-stencil stencil sizes.
void * GetVertexStencilTablesWeights() const
Returns the Cuda buffer containing vertex-stencil stencil weights.
Table of subdivision stencils.
virtual ~CudaComputeContext()
Destructor.
void * GetVaryingStencilTablesSizes() const
Returns the Cuda buffer containing Varying-stencil stencil sizes.
void * GetVertexStencilTablesOffsets() const
Returns the Cuda buffer containing vertex-stencil stencil offsets.
void * GetVaryingStencilTablesIndices() const
Returns the Cuda buffer containing Varying-stencil stencil indices.
bool HasVaryingStencilTables() const
Returns true if the Context has a 'varying' interpolation stencil table.
void * GetVertexStencilTablesIndices() const
Returns the Cuda buffer containing vertex-stencil stencil indices.
int GetNumControlVertices() const
Returns the number of control vertices.
void * GetVaryingStencilTablesOffsets() const
Returns the Cuda buffer containing Varying-stencil stencil offsets.
bool HasVertexStencilTables() const
Returns true if the Context has a 'vertex' interpolation stencil table.
void * GetVaryingStencilTablesWeights() const
Returns the Cuda buffer containing Varying-stencil stencil weights.
CudaComputeContext(Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables)
static CudaComputeContext * Create(Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables=0)