diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-02-07 21:59:11 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-02-07 21:59:11 +0000 |
| commit | cfc713b96b3aef8726ffe1f0d0af0e572d5ce84b (patch) | |
| tree | e982610d8a0d9ca230c86eadc0e87ea41039e0b9 /Graphics/GraphicsEngineNextGenBase | |
| parent | Reworked ExecuteCommandList(s) to take multiple command lists instead of one (diff) | |
| download | DiligentCore-cfc713b96b3aef8726ffe1f0d0af0e572d5ce84b.tar.gz DiligentCore-cfc713b96b3aef8726ffe1f0d0af0e572d5ce84b.zip | |
DeviceContextD3D12Impl: reworked flush to also execute deferred command lists to avoid redundant submit
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
| -rw-r--r-- | Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.hpp b/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.hpp index 9e928feb..cb059bca 100644 --- a/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.hpp +++ b/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.hpp @@ -98,7 +98,7 @@ protected: if (this->m_bIsDeferred) { // For deferred context, reset submitted cmd queue mask - m_SubmittedBuffersCmdQueueMask = 0; + m_SubmittedBuffersCmdQueueMask.store(0); } else { @@ -116,7 +116,7 @@ protected: // For deferred contexts, this will accumulate bits of the queues to which command buffers // were submitted to before FinishFrame() was called. This mask is used to release resources // allocated by the context during the frame when FinishFrame() is called. - Uint64 m_SubmittedBuffersCmdQueueMask = 0; + std::atomic_uint64_t m_SubmittedBuffersCmdQueueMask{0}; }; } // namespace Diligent |
