summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestApp.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-10-19 23:13:29 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-10-19 23:13:29 +0000
commitc83bca76b14ccd1e0fe42b745f967c85ecab59a2 (patch)
treecd43c301a3531fddceebb1acd6f725e0b6c18ab3 /Tests/TestApp/src/TestApp.cpp
parentUpdated submodules (API version 240033); (diff)
downloadDiligentEngine-c83bca76b14ccd1e0fe42b745f967c85ecab59a2.tar.gz
DiligentEngine-c83bca76b14ccd1e0fe42b745f967c85ecab59a2.zip
Updated API version to 240034
Diffstat (limited to 'Tests/TestApp/src/TestApp.cpp')
-rw-r--r--Tests/TestApp/src/TestApp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp
index 0a5e738..2d58006 100644
--- a/Tests/TestApp/src/TestApp.cpp
+++ b/Tests/TestApp/src/TestApp.cpp
@@ -173,6 +173,11 @@ void TestApp::InitializeDiligentEngine(
// Load the dll and import GetEngineFactoryD3D11() function
LoadGraphicsEngineD3D11(GetEngineFactoryD3D11);
#endif
+#ifdef _DEBUG
+ DeviceAttribs.DebugFlags = D3D11_DEBUG_FLAG_CREATE_DEBUG_DEVICE |
+ D3D11_DEBUG_FLAG_VERIFY_COMMITTED_RESOURCE_RELEVANCE |
+ D3D11_DEBUG_FLAG_VERIFY_COMMITTED_SHADER_RESOURCES;
+#endif
auto *pFactoryD3D11 = GetEngineFactoryD3D11();
Uint32 NumAdapters = 0;
pFactoryD3D11->EnumerateHardwareAdapters(DIRECT3D_FEATURE_LEVEL_11_0, NumAdapters, 0);