From b51574f9c870805ab3e8c6046cb9c9ada51d0145 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 9 Oct 2019 21:11:46 -0700 Subject: Added EngineD3D12CreateInfo::BreakOnError and EngineD3D12CreateInfo::BreakOnCorruption members (API Version 240031) --- Graphics/GraphicsEngine/interface/APIInfo.h | 2 +- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/APIInfo.h b/Graphics/GraphicsEngine/interface/APIInfo.h index 2f02c994..aae4bdaa 100644 --- a/Graphics/GraphicsEngine/interface/APIInfo.h +++ b/Graphics/GraphicsEngine/interface/APIInfo.h @@ -26,7 +26,7 @@ /// \file /// Diligent API information -#define DILIGENT_API_VERSION 240030 +#define DILIGENT_API_VERSION 240031 #include "../../../Primitives/interface/BasicTypes.h" diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index fb5332b3..61b79064 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1352,7 +1352,15 @@ namespace Diligent Uint32 AdapterId = DefaultAdapterId; /// Enable Direct3D12 debug layer. - bool EnableDebugLayer = false; + bool EnableDebugLayer = false; + + /// Whether to break execution when D3D12 debug layer detects an error. + /// This flag only has effect if EnableDebugLayer is true. + bool BreakOnError = false; + + /// Whether to break execution when D3D12 debug layer detects a memory corruption. + /// This flag only has effect if EnableDebugLayer is true. + bool BreakOnCorruption = true; /// Size of the CPU descriptor heap allocations for different heap types. Uint32 CPUDescriptorHeapAllocationSize[4] = -- cgit v1.2.3