From 98f46b397b76ead7aaa701ebdadb949ac9ecb7d6 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 1 Oct 2018 19:55:30 -0700 Subject: Removed ForceRelease parameter of IDeviceContext::FinishFrame() --- Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h | 2 +- Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 2 +- Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h index 84a69462..fa9f4d2c 100644 --- a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h +++ b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.h @@ -86,7 +86,7 @@ public: virtual void Flush()override final; - virtual void FinishFrame(bool ForceRelease)override final; + virtual void FinishFrame()override final; virtual void FinishCommandList(class ICommandList **ppCommandList)override final; diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp index 7115dde0..494c1df9 100644 --- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp @@ -528,7 +528,7 @@ namespace Diligent Flush(true); } - void DeviceContextD3D12Impl::FinishFrame(bool ForceRelease) + void DeviceContextD3D12Impl::FinishFrame() { //Uint64 FenceValue = ForceRelease ? std::numeric_limits::max() : m_pDevice.RawPtr()->GetCompletedFenceValue(); m_DynamicHeap.FinishFrame(m_LastSubmittedFenceValue); diff --git a/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp index d01d4ab5..d9caef16 100644 --- a/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp @@ -131,7 +131,7 @@ void SwapChainD3D12Impl::Present(Uint32 SyncInterval) auto hr = m_pSwapChain->Present( SyncInterval, 0 ); VERIFY(SUCCEEDED(hr), "Present failed"); - pImmediateCtxD3D12->FinishFrame(false); + pImmediateCtxD3D12->FinishFrame(); pDeviceD3D12->FinishFrame(); #if 0 -- cgit v1.2.3