From 36591fc5599f58d98063df120fe19002730f1646 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 26 Sep 2019 09:39:58 -0700 Subject: Updated core (added EnableDebugLayer member to EngineD3D12CreateInfo struct) --- Tests/TestApp/src/TestApp.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Tests/TestApp/src/TestApp.cpp') diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp index 9af6b9d..11a14aa 100644 --- a/Tests/TestApp/src/TestApp.cpp +++ b/Tests/TestApp/src/TestApp.cpp @@ -224,6 +224,9 @@ void TestApp::InitializeDiligentEngine( } EngineD3D12CreateInfo EngD3D12Attribs; +#ifdef _DEBUG + EngD3D12Attribs.EnableDebugLayer = true; +#endif EngD3D12Attribs.CPUDescriptorHeapAllocationSize[0] = 64; // D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV EngD3D12Attribs.CPUDescriptorHeapAllocationSize[1] = 32; // D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER EngD3D12Attribs.CPUDescriptorHeapAllocationSize[2] = 16; // D3D12_DESCRIPTOR_HEAP_TYPE_RTV -- cgit v1.2.3