summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-02 00:08:59 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-02 00:08:59 +0000
commit354898decf45d32a09d9b4a15319413a5d199f2a (patch)
tree61e46f6cb4fc324338903c79292c9c995e3f67ef /Graphics/GraphicsEngineD3D11
parentReworked how render targets are bound in Vulkan: added RenderPass cache (diff)
downloadDiligentCore-354898decf45d32a09d9b4a15319413a5d199f2a.tar.gz
DiligentCore-354898decf45d32a09d9b4a15319413a5d199f2a.zip
Reworked binding default frame buffer to keep references to current RTV and DSV instead of nulls.
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h b/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h
index 28775938..1f6a3325 100644
--- a/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h
+++ b/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h
@@ -51,11 +51,14 @@ public:
virtual void Present(Uint32 SyncInterval)override final;
virtual void Resize( Uint32 NewWidth, Uint32 NewHeight )override final;
- virtual IDXGISwapChain *GetDXGISwapChain()override final{ return m_pSwapChain; }
+ virtual IDXGISwapChain* GetDXGISwapChain()override final{ return m_pSwapChain; }
virtual ID3D11RenderTargetView* GetRTV()override final{ return m_pRenderTargetView; }
virtual ID3D11DepthStencilView* GetDSV()override final{ return m_pDepthStencilView; }
+ virtual ITextureView* GetCurrentBackBufferRTV()override final{return nullptr;}
+ virtual ITextureView* GetDepthBufferDSV()override final{return nullptr;}
+
private:
virtual void UpdateSwapChain(bool CreateNew)override final;
void CreateRTVandDSV();