summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-01 18:42:38 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-01 18:42:38 +0000
commit97a72224ba1788ade4890b3f737f150b240610e1 (patch)
treed0dc4e3e2290ccd7368d97e49ba597b8dac19b80 /Graphics/GraphicsEngineD3D11
parentUpdated SetRenderTargets() in Vk backend to only transitin states. CommitRend... (diff)
downloadDiligentCore-97a72224ba1788ade4890b3f737f150b240610e1.tar.gz
DiligentCore-97a72224ba1788ade4890b3f737f150b240610e1.zip
Added explicit state transition mode to ClearRenderTarget() command
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rwxr-xr-xGraphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h2
-rwxr-xr-xGraphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h
index 8153a6e3..030bb518 100755
--- a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h
+++ b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.h
@@ -89,7 +89,7 @@ public:
virtual void ClearDepthStencil(ITextureView* pView, CLEAR_DEPTH_STENCIL_FLAGS ClearFlags, float fDepth, Uint8 Stencil)override final;
- virtual void ClearRenderTarget(ITextureView* pView, const float* RGBA)override final;
+ virtual void ClearRenderTarget(ITextureView* pView, const float* RGBA, CLEAR_RENDER_TARGET_STATE_TRANSITION_MODE StateTransitionMode)override final;
virtual void Flush()override final;
diff --git a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp
index 17102bff..50a0161d 100755
--- a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp
@@ -902,7 +902,7 @@ namespace Diligent
m_pd3d11DeviceContext->ClearDepthStencilView( pd3d11DSV, d3d11ClearFlags, fDepth, Stencil );
}
- void DeviceContextD3D11Impl::ClearRenderTarget( ITextureView* pView, const float *RGBA )
+ void DeviceContextD3D11Impl::ClearRenderTarget( ITextureView* pView, const float *RGBA, CLEAR_RENDER_TARGET_STATE_TRANSITION_MODE StateTransitionMode )
{
if (pView == nullptr)
{