XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALSwapChainCreationDescription Struct Reference

This describes the swap chain creation description. More...

#include <Descriptors.h>

Inheritance diagram for xiiGALSwapChainCreationDescription:
[legend]

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
- Public Member Functions inherited from xiiHashableStruct< xiiGALSwapChainCreationDescription >
 xiiHashableStruct (const xiiHashableStruct< xiiGALSwapChainCreationDescription > &other)
 
void operator= (const xiiHashableStruct< xiiGALSwapChainCreationDescription > &other)
 
XII_ALWAYS_INLINE constexpr bool operator== (const xiiHashableStruct< xiiGALSwapChainCreationDescription > &rhs) const=default
 
xiiUInt32 CalculateHash () const
 Calculates the 32 bit hash of the struct and returns it.
 

Public Attributes

xiiWindowBasem_pWindow = nullptr
 Pointer to the window class.
 
xiiSizeU32 m_Resolution = xiiSizeU32(0U, 0U)
 Swap chain resolution.
 
xiiEnum< xiiGALResourceFormatm_ColorBufferFormat = xiiGALResourceFormat::RGBA8UNormalizedSRGB
 Back buffer format.
 
xiiBitflags< xiiGALSwapChainUsageFlagsm_UsageFlags = xiiGALSwapChainUsageFlags::RenderTarget
 Swap chain usage flags.
 
xiiEnum< xiiGALSurfaceTransformm_PreTransform = xiiGALSurfaceTransform::Optimal
 
xiiUInt32 m_uiBufferCount = 2U
 The number of buffers in the swap chain.
 
float m_fDefaultDepthValue = 1.0f
 Default depth value, which is used as the optimized depth clear value in D3D12.
 
xiiUInt8 m_uiDefaultStencilValue = 0U
 Default stencil value, which is used as the optimized clear value in D3D12.
 

Detailed Description

This describes the swap chain creation description.

Member Data Documentation

◆ m_PreTransform

xiiEnum<xiiGALSurfaceTransform> xiiGALSwapChainCreationDescription::m_PreTransform = xiiGALSurfaceTransform::Optimal

The transform, relative to the presentation engine's natural orientation which is applied to the image prior to presentation.

                                                     \note When xiiGALSurfaceTransform::Optimal is used, the engine will select the most optimal surface transformation. An application may request a specific transform and the engine will try to use that. If the transform is not available, the engine will select the most optimal transform. After the swap chain has been created, this member will contain the actual transform selected by the engine. 

The documentation for this struct was generated from the following file: