25#ifndef OPENSUBDIV3_OSD_D3D11_LEGACY_GREGORY_PATCH_TABLE_H
26#define OPENSUBDIV3_OSD_D3D11_LEGACY_GREGORY_PATCH_TABLE_H
28#include "../version.h"
30#include "../far/patchTable.h"
31#include "../osd/nonCopyable.h"
34struct ID3D11ShaderResourceView;
36struct ID3D11DeviceContext;
39namespace OPENSUBDIV_VERSION {
44 :
private NonCopyable<D3D11LegacyGregoryPatchTable> {
48 template<
typename DEVICE_CONTEXT>
51 return Create(farPatchTable, context->GetDeviceContext());
56 ID3D11DeviceContext *deviceContext);
59 int numVertices,
int numVertexElements,
60 ID3D11DeviceContext *pd3d11DeviceContext);
67 return _vertexValenceSRV;
71 return _quadOffsetsSRV;
76 return _quadOffsetsBase[1];
78 return _quadOffsetsBase[0];
85 ID3D11Buffer* _vertexValenceBuffer;
86 ID3D11Buffer* _quadOffsetsBuffer;
87 ID3D11ShaderResourceView* _vertexSRV;
88 ID3D11ShaderResourceView* _vertexValenceSRV;
89 ID3D11ShaderResourceView* _quadOffsetsSRV;
90 int _quadOffsetsBase[2];
98using namespace OPENSUBDIV_VERSION;
Container for arrays of parametric patches.
void UpdateVertexBuffer(ID3D11Buffer *vbo, int numVertices, int numVertexElements, ID3D11DeviceContext *pd3d11DeviceContext)
int GetQuadOffsetsBase(Far::PatchDescriptor::Type type)
~D3D11LegacyGregoryPatchTable()
static D3D11LegacyGregoryPatchTable * Create(Far::PatchTable const *farPatchTable, ID3D11DeviceContext *deviceContext)
ID3D11ShaderResourceView * GetVertexSRV() const
static D3D11LegacyGregoryPatchTable * Create(Far::PatchTable const *farPatchTable, DEVICE_CONTEXT context)
ID3D11ShaderResourceView * GetVertexValenceSRV() const
ID3D11ShaderResourceView * GetQuadOffsetsSRV() const
D3D11LegacyGregoryPatchTable()