From dd7351be3d8f6f160c50466e6ae628346c4979a0 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 18 Mar 2019 07:54:27 -0700 Subject: Moved NumDeferredContexts parameter from factory functions to EngineCreateInfo (fixed https://github.com/DiligentGraphics/DiligentCore/issues/76) --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngine') 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; }; -- cgit v1.2.3