8#ifndef OPENSUBDIV3_OSD_D3D11_LEGACY_GREGORY_PATCH_TABLE_H
9#define OPENSUBDIV3_OSD_D3D11_LEGACY_GREGORY_PATCH_TABLE_H
11#include "../version.h"
14#include "../osd/nonCopyable.h"
17struct ID3D11ShaderResourceView;
19struct ID3D11DeviceContext;
22namespace OPENSUBDIV_VERSION {
27 :
private NonCopyable<D3D11LegacyGregoryPatchTable> {
31 template<
typename DEVICE_CONTEXT>
34 return Create(farPatchTable, context->GetDeviceContext());
39 ID3D11DeviceContext *deviceContext);
42 int numVertices,
int numVertexElements,
43 ID3D11DeviceContext *pd3d11DeviceContext);
50 return _vertexValenceSRV;
54 return _quadOffsetsSRV;
59 return _quadOffsetsBase[1];
61 return _quadOffsetsBase[0];
68 ID3D11Buffer* _vertexValenceBuffer;
69 ID3D11Buffer* _quadOffsetsBuffer;
70 ID3D11ShaderResourceView* _vertexSRV;
71 ID3D11ShaderResourceView* _vertexValenceSRV;
72 ID3D11ShaderResourceView* _quadOffsetsSRV;
73 int _quadOffsetsBase[2];
81using 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()