From 9f96d6c20f1cb65863610377d2d8b1c5f0131a84 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 25 Nov 2018 13:03:46 -0800 Subject: Updated core (moved buffer mapping/unmapping to device context + other updates) --- Tests/TestApp/src/TestTexturing.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Tests/TestApp/src/TestTexturing.cpp') 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 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} }; -- cgit v1.2.3