ezEngine  Release 25.03
ezGALSwapChainDX11 Class Reference
Inheritance diagram for ezGALSwapChainDX11:

Public Member Functions

virtual void AcquireNextRenderTarget (ezGALDevice *pDevice) override
 
virtual void PresentRenderTarget (ezGALDevice *pDevice) override
 
virtual ezResult UpdateSwapChain (ezGALDevice *pDevice, ezEnum< ezGALPresentMode > newPresentMode) override
 
- Public Member Functions inherited from ezGALWindowSwapChain
const ezGALWindowSwapChainCreationDescriptionGetWindowDescription () const
 
- Public Member Functions inherited from ezGALSwapChain
const ezGALRenderTargetsGetRenderTargets () const
 
ezGALTextureHandle GetBackBufferTexture () const
 
ezSizeU32 GetCurrentSize () const
 
- Public Member Functions inherited from ezGALObject< ezGALSwapChainCreationDescription >
 ezGALObject (const ezGALSwapChainCreationDescription &description)
 
const EZ_ALWAYS_INLINE ezGALSwapChainCreationDescriptionGetDescription () const
 
- Public Member Functions inherited from ezRefCounted
virtual ~ezRefCounted ()=default
 Adds a virtual destructor.
 
- Public Member Functions inherited from ezRefCountingImpl
 ezRefCountingImpl ()=default
 Constructor.
 
 ezRefCountingImpl (const ezRefCountingImpl &rhs)
 
void operator= (const ezRefCountingImpl &rhs)
 
ezInt32 AddRef () const
 Increments the reference counter. Returns the new reference count.
 
ezInt32 ReleaseRef () const
 Decrements the reference counter. Returns the new reference count.
 
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

 ezGALSwapChainDX11 (const ezGALWindowSwapChainCreationDescription &Description)
 
virtual ezResult InitPlatform (ezGALDevice *pDevice) override
 
ezResult CreateBackBufferInternal (ezGALDeviceDX11 *pDXDevice)
 
void DestroyBackBufferInternal (ezGALDeviceDX11 *pDXDevice)
 
virtual ezResult DeInitPlatform (ezGALDevice *pDevice) override
 
- Protected Member Functions inherited from ezGALWindowSwapChain
 ezGALWindowSwapChain (const ezGALWindowSwapChainCreationDescription &Description)
 
- Protected Member Functions inherited from ezGALSwapChain
 ezGALSwapChain (const ezRTTI *pSwapChainType)
 

Protected Attributes

IDXGISwapChain * m_pDXSwapChain = nullptr
 
ezGALTextureHandle m_hBackBufferTexture
 
ezEnum< ezGALPresentModem_CurrentPresentMode
 
bool m_bCanMakeDirectScreenshots = true
 
ezGALTextureHandle m_hActualBackBufferTexture
 
- Protected Attributes inherited from ezGALWindowSwapChain
ezGALWindowSwapChainCreationDescription m_WindowDesc
 
- Protected Attributes inherited from ezGALSwapChain
ezGALRenderTargets m_RenderTargets
 
ezSizeU32 m_CurrentSize = {}
 
- Protected Attributes inherited from ezGALObject< ezGALSwapChainCreationDescription >
const ezGALSwapChainCreationDescription m_Description
 

Friends

class ezGALDeviceDX11
 
class ezMemoryUtils
 

Additional Inherited Members

- Public Types inherited from ezGALWindowSwapChain
using Functor = ezDelegate< ezGALSwapChainHandle(const ezGALWindowSwapChainCreationDescription &)>
 
- Static Public Member Functions inherited from ezGALWindowSwapChain
static void SetFactoryMethod (Functor factory)
 
static ezGALSwapChainHandle Create (const ezGALWindowSwapChainCreationDescription &desc)
 
- Static Protected Attributes inherited from ezGALWindowSwapChain
static Functor s_Factory
 

Member Function Documentation

◆ InitPlatform()

ezResult ezGALSwapChainDX11::InitPlatform ( ezGALDevice pDevice)
overrideprotectedvirtual
Todo:
The mode switch needs to be handled (ResizeBuffers + communication with engine)
Todo:
Get from MSAA value of the m_WindowDesc
Todo:
Get from enumeration of available modes

Implements ezGALSwapChain.


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