diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-09-24 04:12:45 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-09-24 04:12:45 +0000 |
| commit | 6db171fd90382721ab64dfddc32f76fffa7a8829 (patch) | |
| tree | 07e3f247f9f47f75075d4669a8bed3590c8061a4 /Graphics/GraphicsEngineNextGenBase | |
| parent | Reworked dynamic descriptor set allocation/deallocation in Vk backend (diff) | |
| download | DiligentCore-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.h | 5 |
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); } } |
