25 #ifndef OSD_D3D11_COMPUTE_CONTEXT_H
26 #define OSD_D3D11_COMPUTE_CONTEXT_H
28 #include "../version.h"
30 #include "../osd/nonCopyable.h"
32 struct ID3D11DeviceContext;
34 namespace OpenSubdiv {
35 namespace OPENSUBDIV_VERSION {
37 namespace Far{
class StencilTables; }
78 return _numControlVertices;
107 class D3D11StencilTables;
109 D3D11StencilTables * _vertexStencilTables,
110 * _varyingStencilTables;
112 int _numControlVertices;
118 using namespace OPENSUBDIV_VERSION;
122 #endif // OSD_D3D11_COMPUTE_CONTEXT_H
Table of subdivision stencils.
static D3D11ComputeContext * Create(ID3D11DeviceContext *deviceContext, Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables=0)
D3D11ComputeContext(ID3D11DeviceContext *deviceContext, Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables)
void BindVaryingStencilTables(ID3D11DeviceContext *deviceContext) const
virtual ~D3D11ComputeContext()
Destructor.
int GetNumControlVertices() const
Returns the number of control vertices.
bool HasVertexStencilTables() const
Returns true if the Context has a 'vertex' interpolation stencil table.
void BindVertexStencilTables(ID3D11DeviceContext *deviceContext) const
void UnbindStencilTables(ID3D11DeviceContext *deviceContext) const
bool HasVaryingStencilTables() const
Returns true if the Context has a 'varying' interpolation stencil table.