29 #include "SwapChainD3D11.h" 30 #include "SwapChainBase.h" 35 class IMemoryAllocator;
45 void* pNativeWndHandle);
48 virtual void QueryInterface(
const Diligent::INTERFACE_ID &IID, IObject **ppInterface )
override final;
50 virtual void Present()
override final;
51 virtual void Resize( Uint32 NewWidth, Uint32 NewHeight )
override final;
55 virtual ID3D11RenderTargetView*
GetRTV()override final{
return m_pRenderTargetView; }
56 virtual ID3D11DepthStencilView*
GetDSV()override final{
return m_pDepthStencilView; }
59 void CreateRTVandDSV();
61 CComPtr<IDXGISwapChain> m_pSwapChain;
63 CComPtr<ID3D11RenderTargetView> m_pRenderTargetView;
65 CComPtr<ID3D11DepthStencilView> m_pDepthStencilView;
Swap chain description.
Definition: GraphicsTypes.h:912
Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34
Implementation of the Diligent::ISwapChainD3D11 interface.
Definition: SwapChainD3D11Impl.h:37
virtual ID3D11DepthStencilView * GetDSV() override final
Returns d3d11 depth stencil view of the internal depth buffer object.
Definition: SwapChainD3D11Impl.h:56
virtual void Present() override final
Presents a rendered image to the user.
Definition: SwapChainD3D11Impl.cpp:173
Base implementation of the swap chain.
Definition: SwapChainBase.h:43
Implementation of the Diligent::IRenderDeviceD3D11 interface.
Definition: RenderDeviceD3D11Impl.h:38
virtual void Resize(Uint32 NewWidth, Uint32 NewHeight) override final
Changes the swap chain's back buffer size.
Definition: SwapChainD3D11Impl.cpp:207
virtual IDXGISwapChain * GetDXGISwapChain() override final
Returns a pointer to the IDXGISwapChain interface of the internal DXGI object.
Definition: SwapChainD3D11Impl.h:53
Implementation of the Diligent::IDeviceContextD3D11 interface.
Definition: DeviceContextD3D11Impl.h:41
virtual ID3D11RenderTargetView * GetRTV() override final
Returns d3d11 render target view of the swap chain's back buffer.
Definition: SwapChainD3D11Impl.h:55