diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-30 03:05:30 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-30 03:05:30 +0000 |
| commit | b0b568e32e854a720e97e1085151f54c7e62f047 (patch) | |
| tree | 8d3d99becd2b835ed247e4c90f38c6409287aab3 /Graphics/GraphicsEngine | |
| parent | Implemented hardware adapter and display mode enumeration (diff) | |
| download | DiligentCore-b0b568e32e854a720e97e1085151f54c7e62f047.tar.gz DiligentCore-b0b568e32e854a720e97e1085151f54c7e62f047.zip | |
Implemented option to specify hardware adapter when initializing the engine in d3d mode
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/GraphicsTypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 2a223e43..574e4c12 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1050,6 +1050,11 @@ namespace Diligent /// Attributes specific to D3D12 engine struct EngineD3D12Attribs : public EngineCreationAttribs { + static constexpr Uint32 DefaultAdapterId = 0xFFFFFFFF; + + /// Id of the hardware adapter the engine should be initialized on + Uint32 AdapterId = DefaultAdapterId; + /// Size of the CPU descriptor heap allocations for different heap types. Uint32 CPUDescriptorHeapAllocationSize[4] = { |
