summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-03-30 03:05:30 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-03-30 03:05:30 +0000
commitb0b568e32e854a720e97e1085151f54c7e62f047 (patch)
tree8d3d99becd2b835ed247e4c90f38c6409287aab3 /Graphics/GraphicsEngine
parentImplemented hardware adapter and display mode enumeration (diff)
downloadDiligentCore-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.h5
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] =
{