summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineNextGenBase
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-24 04:12:45 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-24 04:12:45 +0000
commit6db171fd90382721ab64dfddc32f76fffa7a8829 (patch)
tree07e3f247f9f47f75075d4669a8bed3590c8061a4 /Graphics/GraphicsEngineNextGenBase
parentReworked dynamic descriptor set allocation/deallocation in Vk backend (diff)
downloadDiligentCore-6db171fd90382721ab64dfddc32f76fffa7a8829.tar.gz
DiligentCore-6db171fd90382721ab64dfddc32f76fffa7a8829.zip
Removed m_NextCmdBuffNumber from DeviceContextVkImpl plus other minor updates
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
-rw-r--r--Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h b/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h
index c198d7a0..d7c03e0d 100644
--- a/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h
+++ b/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.h
@@ -145,12 +145,13 @@ public:
return (m_CmdQueueCount < 64) ? ((Uint64{1} << Uint64{m_CmdQueueCount}) - 1) : ~Uint64{0};
}
- void PurgeReleaseQueues()
+ void PurgeReleaseQueues(bool ForceRelease = false)
{
for(size_t q=0; q < m_CmdQueueCount; ++q)
{
auto& Queue = m_CommandQueues[q];
- Queue.ReleaseQueue.Purge(Queue.CmdQueue->GetCompletedFenceValue());
+ auto CompletedFenceValue = ForceRelease ? std::numeric_limits<Uint64>::max() : Queue.CmdQueue->GetCompletedFenceValue();
+ Queue.ReleaseQueue.Purge(CompletedFenceValue);
}
}