25 #ifndef OSD_GLSL_TRANSFORM_FEEDBACK_COMPUTE_CONTEXT_H
26 #define OSD_GLSL_TRANSFORM_FEEDBACK_COMPUTE_CONTEXT_H
28 #include "../version.h"
30 #include "../osd/nonCopyable.h"
31 #include "../osd/opengl.h"
35 namespace OpenSubdiv {
36 namespace OPENSUBDIV_VERSION {
38 namespace Far{
class StencilTables; }
75 return _numControlVertices;
111 class GLStencilTables;
113 GLStencilTables * _vertexStencilTables,
114 * _varyingStencilTables;
116 int _numControlVertices;
122 using namespace OPENSUBDIV_VERSION;
126 #endif // OSD_GLSL_TRANSFORM_FEEDBACK_COMPUTE_CONTEXT_H
virtual ~GLSLTransformFeedbackComputeContext()
Destructor.
Table of subdivision stencils.
GLSL-Compute(transform-feedback) Refine Context.
int GetNumControlVertices() const
Returns the number of control vertices.
GLuint GetVertexStencilTablesSizes() const
Returns the GL texture buffer containing vertex-stencil stencil sizes.
GLuint GetVaryingStencilTablesSizes() const
Returns the GL texture buffer containing Varying-stencil stencil sizes.
GLuint GetVaryingStencilTablesWeights() const
Returns the GL texture buffer containing Varying-stencil stencil weights.
GLuint GetVertexStencilTablesIndices() const
Returns the GL texture buffer containing vertex-stencil stencil indices.
GLuint GetVertexStencilTablesOffsets() const
Returns the GL texture buffer containing vertex-stencil stencil offsets.
bool HasVertexStencilTables() const
Returns true if the Context has a 'vertex' interpolation stencil table.
static GLSLTransformFeedbackComputeContext * Create(Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables=0)
bool HasVaryingStencilTables() const
Returns true if the Context has a 'varying' interpolation stencil table.
GLuint GetVertexStencilTablesWeights() const
Returns the GL texture buffer containing vertex-stencil stencil weights.
GLSLTransformFeedbackComputeContext(Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables)
GLuint GetVaryingStencilTablesOffsets() const
Returns the GL texture buffer containing Varying-stencil stencil offsets.
GLuint GetVaryingStencilTablesIndices() const
Returns the GL texture buffer containing Varying-stencil stencil indices.