Diligent Engine API Reference
Public Member Functions | List of all members
Diligent::ISwapChain Class Referenceabstract

Swap chain interface. More...

Inheritance diagram for Diligent::ISwapChain:
Diligent::IObject Diligent::ISwapChainD3D11 Diligent::ISwapChainD3D12 Diligent::ISwapChainGL Diligent::RefCountedObject< ISwapChainD3D11, IMemoryAllocator > Diligent::RefCountedObject< ISwapChainD3D12, IMemoryAllocator > Diligent::RefCountedObject< ISwapChainGL, IMemoryAllocator > Diligent::ObjectBase< ISwapChainD3D11, IMemoryAllocator > Diligent::ObjectBase< ISwapChainD3D12, IMemoryAllocator > Diligent::ObjectBase< ISwapChainGL, IMemoryAllocator > Diligent::SwapChainBase< ISwapChainD3D11, IMemoryAllocator > Diligent::SwapChainBase< ISwapChainD3D12, IMemoryAllocator > Diligent::SwapChainBase< ISwapChainGL, IMemoryAllocator > Diligent::SwapChainD3D11Impl Diligent::SwapChainD3D12Impl Diligent::SwapChainGLImpl

Public Member Functions

virtual void Present ()=0
 Presents a rendered image to the user.
 
virtual const SwapChainDescGetDesc () const =0
 Returns the swap chain desctription.
 
virtual void Resize (Uint32 NewWidth, Uint32 NewHeight)=0
 Changes the swap chain's back buffer size. More...
 
- Public Member Functions inherited from Diligent::IObject
virtual void QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface. More...
 
virtual Atomics::Long AddRef ()=0
 Increments the number of strong references by 1. More...
 
virtual Atomics::Long Release ()=0
 Decrements the number of strong references by 1 and destroys the object when the counter reaches zero. More...
 
virtual IReferenceCountersGetReferenceCounters () const =0
 Returns the pointer to IReferenceCounters interface of the associated reference counters object. The metod does NOT increment the number of strong references to the returned object.
 

Detailed Description

Swap chain interface.

The swap chain is created by a platform-dependent function

Member Function Documentation

virtual void Diligent::ISwapChain::Resize ( Uint32  NewWidth,
Uint32  NewHeight 
)
pure virtual

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

Implemented in Diligent::SwapChainD3D12Impl, Diligent::SwapChainD3D11Impl, and Diligent::SwapChainGLImpl.