summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestTexturing.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-11-25 21:03:46 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-11-25 21:03:46 +0000
commit9f96d6c20f1cb65863610377d2d8b1c5f0131a84 (patch)
treef0b38cfba121e5881f7e9349c98ea79455a2b736 /Tests/TestApp/src/TestTexturing.cpp
parentMoved ITextureView::GenerateMips() to IDeviceContext::GenerateMips() (diff)
downloadDiligentEngine-9f96d6c20f1cb65863610377d2d8b1c5f0131a84.tar.gz
DiligentEngine-9f96d6c20f1cb65863610377d2d8b1c5f0131a84.zip
Updated core (moved buffer mapping/unmapping to device context + other updates)
Diffstat (limited to 'Tests/TestApp/src/TestTexturing.cpp')
-rw-r--r--Tests/TestApp/src/TestTexturing.cpp2
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} };