summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-11-09 01:56:44 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-11-09 01:56:44 +0000
commitb360883a60ddbb169a9184428966db82b6dd96e9 (patch)
treeb62cd9d946744d576cb1ab01f22c8e9aa230817b /Graphics/GraphicsEngine
parentFixed gcc build error (diff)
downloadDiligentCore-b360883a60ddbb169a9184428966db82b6dd96e9.tar.gz
DiligentCore-b360883a60ddbb169a9184428966db82b6dd96e9.zip
Added APIVersion member to EngineCreateInfo struct (API Version 240040)
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/APIInfo.h2
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngine/interface/APIInfo.h b/Graphics/GraphicsEngine/interface/APIInfo.h
index 70de6f5a..b59997de 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 240039
+#define DILIGENT_API_VERSION 240040
#include "../../../Primitives/interface/BasicTypes.h"
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 7d75f8a1..3ad73227 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -29,6 +29,7 @@
#include "../../../Primitives/interface/BasicTypes.h"
#include "../../../Primitives/interface/DebugOutput.h"
#include "../../../Primitives/interface/FlagEnum.h"
+#include "APIInfo.h"
/// Graphics engine namespace
namespace Diligent
@@ -1272,6 +1273,9 @@ namespace Diligent
/// Engine creation attibutes
struct EngineCreateInfo
{
+ /// API version number.
+ Int32 APIVersion = DILIGENT_API_VERSION;
+
/// Pointer to the raw memory allocator that will be used for all memory allocation/deallocation
/// operations in the engine
class IMemoryAllocator* pRawMemAllocator = nullptr;