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