diff options
Diffstat (limited to 'Tests/TestApp/src/TestTexturing.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestTexturing.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp index 4bb53c6..4b3b811 100644 --- a/Tests/TestApp/src/TestTexturing.cpp +++ b/Tests/TestApp/src/TestTexturing.cpp @@ -241,6 +241,8 @@ void TestTexturing::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext RefCntAutoPtr<ITextureView> pDefaultSRV; TextureViewDesc ViewDesc; ViewDesc.ViewType = TEXTURE_VIEW_SHADER_RESOURCE; + ViewDesc.NumMipLevels = TextureViewDesc::RemainingMipLevels; + ViewDesc.NumArraySlices = TextureViewDesc::RemainingArraySlices; m_pTexture->CreateView( ViewDesc, &pDefaultSRV ); pDefaultSRV->SetSampler( m_pSampler ); ResourceMappingEntry Entries[] = { { "g_tex2DTest", pDefaultSRV }, {nullptr, nullptr} }; |
