ezEngine  Milestone 7
ezGALSwapChain Class Referenceabstract
Inheritance diagram for ezGALSwapChain:

Public Member Functions

ezGALTextureHandle GetBackBufferTexture () const
 Returns a handle to the back buffer texture. More...
 
ezGALRenderTargetViewHandle GetBackBufferRenderTargetView () const
 Returns a handle to the render target view which can be bound to render to this swap chain.
 
ezGALTextureHandle GetDepthStencilBufferTexture () const
 Returns a handle to the swap chain's depth buffer texture. More...
 
ezGALRenderTargetViewHandle GetDepthStencilTargetView () const
 Returns a handle to the swap chain's depth stencil view. More...
 
- Public Member Functions inherited from ezGALObjectBase< ezGALSwapChainCreationDescription >
EZ_FORCE_INLINE ezGALObjectBase (const ezGALSwapChainCreationDescription &Description)
 
EZ_FORCE_INLINE const
ezGALSwapChainCreationDescription
GetDescription () const
 
- Public Member Functions inherited from ezRefCounted
 ezRefCounted ()
 Constructor.
 
 ezRefCounted (const ezRefCounted &rhs)
 
void operator= (const ezRefCounted &rhs)
 
void AddRef ()
 Increments the reference counter.
 
void ReleaseRef ()
 Decrements the reference counter.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
ezInt32 GetRefCount () const
 Returns the current reference count.
 

Protected Member Functions

 ezGALSwapChain (const ezGALSwapChainCreationDescription &Description)
 
virtual ezResult InitPlatform (ezGALDevice *pDevice)=0
 
virtual ezResult DeInitPlatform (ezGALDevice *pDevice)
 

Protected Attributes

ezGALTextureHandle m_hBackBufferTexture
 
ezGALRenderTargetViewHandle m_hBackBufferRTV
 
ezGALTextureHandle m_hDepthStencilBufferTexture
 
ezGALRenderTargetViewHandle m_hBackBufferDSV
 
- Protected Attributes inherited from ezGALObjectBase< ezGALSwapChainCreationDescription >
const
ezGALSwapChainCreationDescription 
m_Description
 

Member Function Documentation

ezGALTextureHandle ezGALSwapChain::GetBackBufferTexture ( ) const
inline

Returns a handle to the back buffer texture.

Attention
Some RenderSystems do not support reading the swap chain's back buffer texture. Those will return an invalid handle.
ezGALTextureHandle ezGALSwapChain::GetDepthStencilBufferTexture ( ) const
inline

Returns a handle to the swap chain's depth buffer texture.

Attention
Some RenderSystems do not support reading the swap chain's back buffer depth buffer texture. Those will return an invalid handle.
ezGALRenderTargetViewHandle ezGALSwapChain::GetDepthStencilTargetView ( ) const
inline

Returns a handle to the swap chain's depth stencil view.

Attention
Only a swap chain which was created with m_bCreateDepthStencilBuffer or one which represents a native integrated depth buffer will return a valid handle;

The documentation for this class was generated from the following files: