summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-02 02:55:30 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-02 02:55:30 +0000
commit98f46b397b76ead7aaa701ebdadb949ac9ecb7d6 (patch)
tree1a0f2be785f2add72f908b1d4b949912f24735fa /Graphics/GraphicsEngineVulkan
parentFixed typo in repo desc. (diff)
downloadDiligentCore-98f46b397b76ead7aaa701ebdadb949ac9ecb7d6.tar.gz
DiligentCore-98f46b397b76ead7aaa701ebdadb949ac9ecb7d6.zip
Removed ForceRelease parameter of IDeviceContext::FinishFrame()
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h3
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp4
-rw-r--r--Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp2
3 files changed, 4 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h
index b8860e90..cd598c40 100644
--- a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h
+++ b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.h
@@ -158,8 +158,7 @@ public:
return m_CommandBuffer;
}
- // TODO: remove ForceRelease
- virtual void FinishFrame(bool /*ForceRelease*/)override final;
+ virtual void FinishFrame()override final;
VkDescriptorSet AllocateDynamicDescriptorSet(VkDescriptorSetLayout SetLayout)
{
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
index 84a47bd7..202babab 100644
--- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
@@ -111,7 +111,7 @@ namespace Diligent
Flush();
}
- FinishFrame(false);
+ FinishFrame();
// There must be no stale resources
DEV_CHECK_ERR(m_UploadHeap.GetStalePagesCount() == 0, "All allocated upload heap pages must have been released at this point");
@@ -743,7 +743,7 @@ namespace Diligent
++m_State.NumCommands;
}
- void DeviceContextVkImpl::FinishFrame(bool /*ForceRelease*/)
+ void DeviceContextVkImpl::FinishFrame()
{
if(GetNumCommandsInCtx() != 0)
LOG_ERROR_MESSAGE(m_bIsDeferred ?
diff --git a/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp
index 2d25b036..1251f5c1 100644
--- a/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp
@@ -462,7 +462,7 @@ void SwapChainVkImpl::Present(Uint32 SyncInterval)
);
}
- pImmediateCtxVk->FinishFrame(false);
+ pImmediateCtxVk->FinishFrame();
pDeviceVk->ReleaseStaleResources();
if (!m_IsMinimized)