summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-08 23:48:40 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-08 23:48:40 +0000
commitfd6ecbc3e52569119c4e0ff30236bd23f2757737 (patch)
tree1cc09a201840841ecd4bb579dcd23e815fa7bc74 /Graphics/GraphicsEngineD3D12
parentD3D12 backend: implemented render pass attachment state transitons (diff)
downloadDiligentCore-fd6ecbc3e52569119c4e0ff30236bd23f2757737.tar.gz
DiligentCore-fd6ecbc3e52569119c4e0ff30236bd23f2757737.zip
Implemented unified render pass attachment state updates within subpasses and after the render pass ends
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 dddf159e..09d9419b 100644
--- a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp
+++ b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp
@@ -132,7 +132,7 @@ public:
virtual void DILIGENT_CALL_TYPE NextSubpass() override final;
/// Implementation of IDeviceContext::EndRenderPass() in Direct3D11 backend.
- virtual void DILIGENT_CALL_TYPE EndRenderPass(bool UpdateResourceStates) override final;
+ virtual void DILIGENT_CALL_TYPE EndRenderPass() 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 25c0bba9..32f03319 100644
--- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
@@ -1238,12 +1238,12 @@ void DeviceContextD3D12Impl::NextSubpass()
CommitSubpassRenderTargets();
}
-void DeviceContextD3D12Impl::EndRenderPass(bool UpdateResourceStates)
+void DeviceContextD3D12Impl::EndRenderPass()
{
auto& CmdCtx = GetCmdContext();
CmdCtx.AsGraphicsContext().EndRenderPass();
TransitionSubpassAttachments(m_SubpassIndex + 1);
- TDeviceContextBase::EndRenderPass(UpdateResourceStates);
+ TDeviceContextBase::EndRenderPass();
}
D3D12DynamicAllocation DeviceContextD3D12Impl::AllocateDynamicSpace(size_t NumBytes, size_t Alignment)