From 7accb78ce40aa9aa50cd50e5adbf30f39d06116b Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 20 Sep 2018 20:34:00 -0700 Subject: Refactored device object release queues --- Graphics/GraphicsEngineD3D12/CMakeLists.txt | 3 ++- Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.h | 5 +++-- Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') 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 +class RenderDeviceD3D12Impl final : public RenderDeviceNextGenBase< RenderDeviceD3DBase, ICommandQueueD3D12 > { public: - using TRenderDeviceBase = RenderDeviceD3DBase; + using TRenderDeviceBase = RenderDeviceNextGenBase< RenderDeviceD3DBase, 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), -- cgit v1.2.3