From 87382bcca0ea984274477af3af1ff8d8c9495ced Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 27 Mar 2018 08:58:06 -0700 Subject: Added DebugMessageCallback to EngineCreation attribs --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index e742f927..c8ee913a 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -27,6 +27,7 @@ /// Contains basic graphics engine type defintions #include "../../../Primitives/interface/BasicTypes.h" +#include "../../../Primitives/interface/DebugOutput.h" /// Graphics engine namespace namespace Diligent @@ -951,14 +952,12 @@ namespace Diligent /// Engine creation attibutes struct EngineCreationAttribs { - const Char* strShaderCachePath; /// Pointer to the raw memory allocator that will be used for all memory allocation/deallocation - /// operations in an engine - class IMemoryAllocator *pRawMemAllocator; - EngineCreationAttribs() : - strShaderCachePath(nullptr), - pRawMemAllocator(nullptr) - {} + /// operations in the engine + class IMemoryAllocator *pRawMemAllocator = nullptr; + + /// Pointer to the user-specified debug message callback function + DebugMessageCallbackType DebugMessageCallback = nullptr; }; /// Attributes specific to D3D12 engine -- cgit v1.2.3