From 6d5c5cb89cc19f7391aed81270a9f63240fe9b9c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 24 Oct 2019 20:48:51 -0700 Subject: Fixed mipmap generation in D3D12 backend; added EngineD3D12CreateInfo::EnableGPUBasedValidation member (API version 240037) --- Graphics/GraphicsEngine/interface/APIInfo.h | 2 +- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/APIInfo.h b/Graphics/GraphicsEngine/interface/APIInfo.h index 74e125ca..48b0dd60 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 240036 +#define DILIGENT_API_VERSION 240037 #include "../../../Primitives/interface/BasicTypes.h" diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 11351eb6..7d75f8a1 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1380,6 +1380,12 @@ namespace Diligent /// Enable Direct3D12 debug layer. bool EnableDebugLayer = false; + /// Enable validation on the GPU timeline. + /// See https://docs.microsoft.com/en-us/windows/win32/direct3d12/using-d3d12-debug-layer-gpu-based-validation + /// This flag only has effect if EnableDebugLayer is true. + /// \note Enabling this option may slow things down a lot. + bool EnableGPUBasedValidation = false; + /// Whether to break execution when D3D12 debug layer detects an error. /// This flag only has effect if EnableDebugLayer is true. bool BreakOnError = false; -- cgit v1.2.3