summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-03-27 15:58:06 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-03-27 15:58:06 +0000
commit87382bcca0ea984274477af3af1ff8d8c9495ced (patch)
treea9cdbd5490b767bd353dc39efdb46766d58f0154 /Graphics/GraphicsEngine
parentReworked debug message handling to allow user-specified callbacks (diff)
downloadDiligentCore-87382bcca0ea984274477af3af1ff8d8c9495ced.tar.gz
DiligentCore-87382bcca0ea984274477af3af1ff8d8c9495ced.zip
Added DebugMessageCallback to EngineCreation attribs
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h13
1 files changed, 6 insertions, 7 deletions
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