summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-21 03:34:00 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-21 03:34:00 +0000
commit7accb78ce40aa9aa50cd50e5adbf30f39d06116b (patch)
tree91436125e571515125ad6df33afa9b121dbc2a3f /Graphics/GraphicsEngineD3D12
parentFixed 32-bit windows build (diff)
downloadDiligentCore-7accb78ce40aa9aa50cd50e5adbf30f39d06116b.tar.gz
DiligentCore-7accb78ce40aa9aa50cd50e5adbf30f39d06116b.zip
Refactored device object release queues
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/CMakeLists.txt3
-rw-r--r--Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.h5
-rw-r--r--Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp1
3 files changed, 6 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineD3D12/CMakeLists.txt b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
index 9cbba22f..d210243c 100644
--- a/Graphics/GraphicsEngineD3D12/CMakeLists.txt
+++ b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
@@ -141,7 +141,8 @@ PRIVATE
set(PRIVATE_DEPENDENCIES
BuildSettings
Common
- GraphicsEngineD3DBase
+ GraphicsEngineD3DBase
+ GraphicsEngineNextGenBase
TargetPlatform
dxgi.lib
D3D12.lib
diff --git a/Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.h b/Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.h
index cd61ad3b..0baaea26 100644
--- a/Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.h
+++ b/Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.h
@@ -28,6 +28,7 @@
#include "RenderDeviceD3D12.h"
#include "RenderDeviceD3DBase.h"
+#include "RenderDeviceNextGenBase.h"
#include "DescriptorHeap.h"
#include "CommandListManager.h"
#include "CommandContext.h"
@@ -41,10 +42,10 @@ namespace Diligent
{
/// Implementation of the Diligent::IRenderDeviceD3D12 interface
-class RenderDeviceD3D12Impl final : public RenderDeviceD3DBase<IRenderDeviceD3D12>
+class RenderDeviceD3D12Impl final : public RenderDeviceNextGenBase< RenderDeviceD3DBase<IRenderDeviceD3D12>, ICommandQueueD3D12 >
{
public:
- using TRenderDeviceBase = RenderDeviceD3DBase<IRenderDeviceD3D12>;
+ using TRenderDeviceBase = RenderDeviceNextGenBase< RenderDeviceD3DBase<IRenderDeviceD3D12>, ICommandQueueD3D12 >;
RenderDeviceD3D12Impl( IReferenceCounters* pRefCounters,
IMemoryAllocator& RawMemAllocator,
diff --git a/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp
index dfcd5927..9c703876 100644
--- a/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp
@@ -47,6 +47,7 @@ RenderDeviceD3D12Impl :: RenderDeviceD3D12Impl(IReferenceCounters* pRef
{
pRefCounters,
RawMemAllocator,
+ 1,
NumDeferredContexts,
sizeof(TextureD3D12Impl),
sizeof(TextureViewD3D12Impl),