summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-02 01:18:48 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-02 19:21:45 +0000
commit812fc38d1b0957ed96d93e023b7322d65c5d3f5d (patch)
tree12e83148649718ae8dce97ff6ef027cdcb51551e /Graphics/GraphicsEngineVulkan
parentFixed build error (diff)
downloadDiligentCore-812fc38d1b0957ed96d93e023b7322d65c5d3f5d.tar.gz
DiligentCore-812fc38d1b0957ed96d93e023b7322d65c5d3f5d.zip
Updated EndRenderPass to optionally update resource states
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp2
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp
index ebca0282..a0249ec9 100644
--- a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp
+++ b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp
@@ -142,7 +142,7 @@ public:
virtual void DILIGENT_CALL_TYPE NextSubpass() override final;
/// Implementation of IDeviceContext::EndRenderPass() in Direct3D11 backend.
- virtual void DILIGENT_CALL_TYPE EndRenderPass() override final;
+ virtual void DILIGENT_CALL_TYPE EndRenderPass(bool UpdateResourceStates) override final;
// clang-format off
/// Implementation of IDeviceContext::Draw() in Vulkan backend.
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
index d15f5720..0eb778f0 100644
--- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
@@ -1307,9 +1307,9 @@ void DeviceContextVkImpl::NextSubpass()
m_CommandBuffer.NextSubpass();
}
-void DeviceContextVkImpl::EndRenderPass()
+void DeviceContextVkImpl::EndRenderPass(bool UpdateResourceStates)
{
- TDeviceContextBase::EndRenderPass();
+ TDeviceContextBase::EndRenderPass(UpdateResourceStates);
m_CommandBuffer.EndRenderPass();
}