![]() |
XII Release 0.1.0
|
This describes the swap chain creation description. More...
#include <Descriptors.h>
Public Member Functions | |
XII_DECLARE_POD_TYPE () | |
![]() | |
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 | |
xiiWindowBase * | m_pWindow = nullptr |
Pointer to the window class. | |
xiiSizeU32 | m_Resolution = xiiSizeU32(0U, 0U) |
Swap chain resolution. | |
xiiEnum< xiiGALResourceFormat > | m_ColorBufferFormat = xiiGALResourceFormat::RGBA8UNormalizedSRGB |
Back buffer format. | |
xiiBitflags< xiiGALSwapChainUsageFlags > | m_UsageFlags = xiiGALSwapChainUsageFlags::RenderTarget |
Swap chain usage flags. | |
xiiEnum< xiiGALSurfaceTransform > | m_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. | |
This describes the swap chain creation description.
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.