summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-22 02:36:08 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-22 02:36:08 +0000
commitcce03c1dc92ee59be7d94e74d3a7b9c439bea68c (patch)
tree7e1c8fd1ea31888f8da430dcb526390ff716075c /Graphics/GraphicsTools
parentFixed linux/mac/iOS build (diff)
downloadDiligentCore-cce03c1dc92ee59be7d94e74d3a7b9c439bea68c.tar.gz
DiligentCore-cce03c1dc92ee59be7d94e74d3a7b9c439bea68c.zip
Unified resource liftime management in D3D12 and Vk backends
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp b/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp
index 7f4b374f..6fe124c6 100644
--- a/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp
+++ b/Graphics/GraphicsTools/src/TextureUploaderD3D12.cpp
@@ -208,7 +208,7 @@ namespace Diligent
if (!Deque.empty())
{
auto &FrontBuff = Deque.front();
- if (m_pInternalData->m_pDeviceD3D12->IsFenceSignaled(FrontBuff.first))
+ if (m_pInternalData->m_pDeviceD3D12->IsFenceSignaled(0, FrontBuff.first))
{
*ppBuffer = FrontBuff.second.Detach();
Deque.pop_front();
@@ -270,7 +270,7 @@ namespace Diligent
std::lock_guard<std::mutex> CacheLock(m_pInternalData->m_UploadBuffCacheMtx);
auto &Cache = m_pInternalData->m_UploadBufferCache;
auto &Deque = Cache[pUploadBufferD3D12->GetDesc()];
- Uint64 FenceValue = m_pInternalData->m_pDeviceD3D12->GetNextFenceValue();
+ Uint64 FenceValue = m_pInternalData->m_pDeviceD3D12->GetNextFenceValue(0);
Deque.emplace_back( FenceValue, pUploadBufferD3D12 );
}
}