summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
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/GraphicsEngineD3D12
parentFixed build error (diff)
downloadDiligentCore-812fc38d1b0957ed96d93e023b7322d65c5d3f5d.tar.gz
DiligentCore-812fc38d1b0957ed96d93e023b7322d65c5d3f5d.zip
Updated EndRenderPass to optionally update resource states
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp2
-rw-r--r--Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp
index 28f336d4..eea40064 100644
--- a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp
+++ b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp
@@ -131,7 +131,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 Direct3D12 backend.
diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
index 6a6739f0..4ab5455d 100644
--- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
@@ -981,9 +981,9 @@ void DeviceContextD3D12Impl::NextSubpass()
UNEXPECTED("Method not implemented");
}
-void DeviceContextD3D12Impl::EndRenderPass()
+void DeviceContextD3D12Impl::EndRenderPass(bool UpdateResourceStates)
{
- TDeviceContextBase::EndRenderPass();
+ TDeviceContextBase::EndRenderPass(UpdateResourceStates);
UNEXPECTED("Method not implemented");
}