summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-03-18 14:54:27 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-03-18 14:54:27 +0000
commitdd7351be3d8f6f160c50466e6ae628346c4979a0 (patch)
treefcbd97618fafc995bb871fcfb2c67b2e3aadfeeb /Graphics/GraphicsEngine
parentCouple more readme updates (diff)
downloadDiligentCore-dd7351be3d8f6f160c50466e6ae628346c4979a0.tar.gz
DiligentCore-dd7351be3d8f6f160c50466e6ae628346c4979a0.zip
Moved NumDeferredContexts parameter from factory functions to EngineCreateInfo (fixed https://github.com/DiligentGraphics/DiligentCore/issues/76)
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 8de7d784..e4ecbc6f 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -1250,6 +1250,13 @@ namespace Diligent
/// Pointer to the user-specified debug message callback function
DebugMessageCallbackType DebugMessageCallback = nullptr;
+
+ /// Number of deferred contexts to create when initializing the engine. If non-zero number
+ /// is given, pointers to the contexts are written to ppContexts array by the engine factory
+ /// functions (IEngineFactoryD3D11::CreateDeviceAndContextsD3D11,
+ /// IEngineFactoryD3D12::CreateDeviceAndContextsD3D12, and IEngineFactoryVk::CreateDeviceAndContextsVk)
+ /// starting at position 1.
+ Uint32 NumDeferredContexts = 0;
};