25 #ifndef OSD_D3D11_PTEX_MIPMAP_TEXTURE_H
26 #define OSD_D3D11_PTEX_MIPMAP_TEXTURE_H
28 #include "../version.h"
30 #include "../osd/nonCopyable.h"
34 struct ID3D11Texture2D;
35 struct ID3D11DeviceContext;
36 struct ID3D11ShaderResourceView;
38 namespace OpenSubdiv {
39 namespace OPENSUBDIV_VERSION {
71 ID3D11Buffer *_layout;
72 ID3D11Texture2D *_texels;
73 ID3D11ShaderResourceView *_layoutSRV;
74 ID3D11ShaderResourceView *_texelsSRV;
80 using namespace OPENSUBDIV_VERSION;
84 #endif // OSD_D3D11_PTEX_TEXTURE_H
ID3D11ShaderResourceView ** GetLayoutSRV()
ID3D11Texture2D * GetTexelsTexture() const
Returns the texels texture array.
ID3D11ShaderResourceView ** GetTexelsSRV()
ID3D11Buffer * GetLayoutTextureBuffer() const
~D3D11PtexMipmapTexture()
static D3D11PtexMipmapTexture * Create(ID3D11DeviceContext *deviceContext, PtexTexture *reader, int maxLevels=10)