25 #ifndef OPENSUBDIV3_OSD_GL_PATCH_TABLE_H 26 #define OPENSUBDIV3_OSD_GL_PATCH_TABLE_H 28 #include "../version.h" 31 #include "../far/patchDescriptor.h" 32 #include "../osd/nonCopyable.h" 33 #include "../osd/types.h" 36 struct ID3D11ShaderResourceView;
38 struct ID3D11DeviceContext;
41 namespace OPENSUBDIV_VERSION {
56 template<
typename DEVICE_CONTEXT>
58 DEVICE_CONTEXT context) {
59 return Create(farPatchTable, context->GetDeviceContext());
63 ID3D11DeviceContext *deviceContext);
82 ID3D11DeviceContext *deviceContext);
95 using namespace OPENSUBDIV_VERSION;
99 #endif // OPENSUBDIV3_OSD_GL_PATCH_TABLE_H PatchArrayVector _patchArrays
PatchArrayVector const & GetPatchArrays() const
Container for arrays of parametric patches.
static D3D11PatchTable * Create(Far::PatchTable const *farPatchTable, DEVICE_CONTEXT context)
ID3D11ShaderResourceView * GetPatchParamSRV() const
Returns the SRV containing the patch parameter.
ID3D11Buffer * GetPatchIndexBuffer() const
Returns the index buffer containing the patch control vertices.
ID3D11ShaderResourceView * _patchParamBufferSRV
ID3D11Buffer * VertexBufferBinding
std::vector< PatchArray > PatchArrayVector
ID3D11Buffer * _indexBuffer
ID3D11Buffer * _patchParamBuffer
bool allocate(Far::PatchTable const *farPatchTable, ID3D11DeviceContext *deviceContext)