Diligent Engine API Reference: Diligent::SwapChainD3D11Impl Class Reference

Diligent Engine API Reference

Public Member Functions | List of all members
Diligent::SwapChainD3D11Impl Class Reference

Implementation of the Diligent::ISwapChainD3D11 interface. More...

Inheritance diagram for Diligent::SwapChainD3D11Impl:

## Public Member Functions
virtual void | Present () override final
| Presents a rendered image to the user.
virtual void | Resize (Uint32 NewWidth, Uint32 NewHeight) override final
| Changes the swap chain's back buffer size. More...
virtual IDXGISwapChain * | GetDXGISwapChain () override final
| Returns a pointer to the IDXGISwapChain interface of the internal DXGI object. More...
virtual ID3D11RenderTargetView * | GetRTV () override final
| Returns d3d11 render target view of the swap chain's back buffer. More...
virtual ID3D11DepthStencilView * | GetDSV () override final
| Returns d3d11 depth stencil view of the internal depth buffer object. More...
Public Member Functions inherited from Diligent::SwapChainBase< ISwapChainD3D11 >
| SwapChainBase (IReferenceCounters *pRefCounters, IRenderDevice *pDevice, IDeviceContext *pDeviceContext, const SwapChainDesc &SCDesc)
virtual const SwapChainDesc & | GetDesc () const override final
| Implementation of ISwapChain::GetDesc()

## Additional Inherited Members
Protected Attributes inherited from Diligent::SwapChainBase< ISwapChainD3D11 >
Diligent::RefCntAutoPtr< IRenderDevice > | m_pRenderDevice
| Strong reference to the render device.
Diligent::RefCntWeakPtr< IDeviceContext > | m_wpDeviceContext
| Weak references to the immediate device context. The context holds the strong reference to the swap chain.
SwapChainDesc | m_SwapChainDesc
| Swap chain description.

## Detailed Description

Implementation of the Diligent::ISwapChainD3D11 interface.

## Member Function Documentation

## ◆ GetDSV()

virtual ID3D11DepthStencilView* Diligent::SwapChainD3D11Impl::GetDSV | ( |  | ) |
| inlinefinaloverridevirtual

Returns d3d11 depth stencil view of the internal depth buffer object.

The method does NOT call AddRef() on the returned interface, so Release() must not be called.

Implements Diligent::ISwapChainD3D11.

## ◆ GetDXGISwapChain()

virtual IDXGISwapChain* Diligent::SwapChainD3D11Impl::GetDXGISwapChain | ( |  | ) |
| inlinefinaloverridevirtual

Returns a pointer to the IDXGISwapChain interface of the internal DXGI object.

The method does NOT call AddRef() on the returned interface, so Release() must not be called.

Implements Diligent::ISwapChainD3D11.

## ◆ GetRTV()

virtual ID3D11RenderTargetView* Diligent::SwapChainD3D11Impl::GetRTV | ( |  | ) |
| inlinefinaloverridevirtual

Returns d3d11 render target view of the swap chain's back buffer.

The method does NOT call AddRef() on the returned interface, so Release() must not be called.

Implements Diligent::ISwapChainD3D11.

## ◆ Resize()

void Diligent::SwapChainD3D11Impl::Resize | ( | Uint32 | NewWidth,
|  | Uint32 | NewHeight
| ) |  |
| finaloverridevirtual

Changes the swap chain's back buffer size.

Parameters

  [in] | NewWidth | - New swap chain width, in pixels
  [in] | NewHeight | - New swap chain height, in pixels

Implements Diligent::ISwapChain.