summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-10-08 03:53:26 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-10-08 03:53:26 +0000
commit20fbea68913e09adad6bb0a4357e995ceb782871 (patch)
tree5da2b6e8a452f5f37a519349fa51a3a5a922c818 /Graphics/GraphicsEngineD3D12
parentD3D11 backend: cosmetic code changes (diff)
downloadDiligentCore-20fbea68913e09adad6bb0a4357e995ceb782871.tar.gz
DiligentCore-20fbea68913e09adad6bb0a4357e995ceb782871.zip
More cosmetic code changes
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp6
-rw-r--r--Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp
index 71857946..129475c6 100644
--- a/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/CommandQueueD3D12Impl.cpp
@@ -49,7 +49,7 @@ IMPLEMENT_QUERY_INTERFACE( CommandQueueD3D12Impl, IID_CommandQueueD3D12, TBase )
Uint64 CommandQueueD3D12Impl::Submit(ID3D12GraphicsCommandList* commandList)
{
- std::lock_guard<std::mutex> Lock(m_QueueMtx);
+ std::lock_guard<std::mutex> Lock{m_QueueMtx};
auto FenceValue = m_NextFenceValue;
// Increment the value before submitting the list
@@ -69,7 +69,7 @@ Uint64 CommandQueueD3D12Impl::Submit(ID3D12GraphicsCommandList* commandList)
Uint64 CommandQueueD3D12Impl::WaitForIdle()
{
- std::lock_guard<std::mutex> Lock(m_QueueMtx);
+ std::lock_guard<std::mutex> Lock{m_QueueMtx};
Uint64 LastSignaledFenceValue = m_NextFenceValue;
Atomics::AtomicIncrement(m_NextFenceValue);
@@ -95,7 +95,7 @@ Uint64 CommandQueueD3D12Impl::GetCompletedFenceValue()
void CommandQueueD3D12Impl::SignalFence(ID3D12Fence* pFence, Uint64 Value)
{
- std::lock_guard<std::mutex> Lock(m_QueueMtx);
+ std::lock_guard<std::mutex> Lock{m_QueueMtx};
m_pd3d12CmdQueue->Signal(pFence, Value);
}
diff --git a/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp b/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp
index 1c0903d8..041a170d 100644
--- a/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/D3D12DynamicHeap.cpp
@@ -133,7 +133,7 @@ void D3D12DynamicMemoryManager::ReleasePages(std::vector<D3D12DynamicPage>& Page
{
if (Mgr != nullptr)
{
- std::lock_guard<std::mutex> Lock(Mgr->m_AvailablePagesMtx);
+ std::lock_guard<std::mutex> Lock{Mgr->m_AvailablePagesMtx};
#ifdef DEVELOPMENT
--Mgr->m_AllocatedPageCounter;
#endif