summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineNextGenBase
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-03 14:52:06 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-03 14:52:06 +0000
commit588ecd05de0bd124d5210018c06be26838d689cf (patch)
tree3a9eb08a74e5033d6c4df2291867fe62652857ca /Graphics/GraphicsEngineNextGenBase
parentReworked D3D12DynamicHeap to use release queues (diff)
downloadDiligentCore-588ecd05de0bd124d5210018c06be26838d689cf.tar.gz
DiligentCore-588ecd05de0bd124d5210018c06be26838d689cf.zip
Reworked D3D12 descriptor heaps to rely on device release queues
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
-rw-r--r--Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h b/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h
index f492e527..aaf1a615 100644
--- a/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h
+++ b/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h
@@ -61,13 +61,18 @@ public:
protected:
// Should be called at the end of FinishFrame()
- void EndFrame()
+ template<typename RenderDeviceImplType>
+ void EndFrame(RenderDeviceImplType& RenderDeviceImpl)
{
if (m_bIsDeferred)
{
// For deferred context, reset submitted cmd queue mask
m_SubmittedBuffersCmdQueueMask = 0;
}
+ else
+ {
+ RenderDeviceImpl.FlushStaleResources(m_CommandQueueId);
+ }
Atomics::AtomicIncrement(m_ContextFrameNumber);
}