diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-18 14:54:27 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-18 14:54:27 +0000 |
| commit | dd7351be3d8f6f160c50466e6ae628346c4979a0 (patch) | |
| tree | fcbd97618fafc995bb871fcfb2c67b2e3aadfeeb /Graphics/GraphicsEngine | |
| parent | Couple more readme updates (diff) | |
| download | DiligentCore-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.h | 7 |
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; }; |
