![]() |
LLGL 0.05 Beta
|
Swap chain descriptor structure. More...
#include <SwapChainFlags.h>
Public Attributes | |
| const char * | debugName = nullptr |
| Optional name for debugging purposes. By default null. | |
| Extent2D | resolution |
| Screen resolution (in pixels). | |
| Format | colorFormat = Format::Undefined |
| Preferred color format for the swap-chain buffers. By default Format::Undefined. | |
| Format | depthStencilFormat = Format::Undefined |
| Preferred depth-stencil format for the swap-chain. By default Format::Undefined. | |
| int | colorBits = 32 |
| Number of bits for each pixel in the color buffer. Should be 24 or 32. By default 32. | |
| int | depthBits = 24 |
| Number of bits for each pixel in the depth buffer. Should be 24, 32, or zero to disable depth buffer. By default 24. | |
| int | stencilBits = 8 |
| Number of bits for each pixel in the stencil buffer. Should be 8, or zero to disable stencil buffer. By default 8. | |
| std::uint32_t | samples = 1 |
| Number of samples for the swap-chain buffers. By default 1. | |
| std::uint32_t | swapBuffers = 2 |
| Number of swap buffers. By default 2 (for double-buffering). | |
| bool | fullscreen = false |
| Specifies whether to create the swap-chain initially in fullscreen mode or windowed mode otherwise. | |
| bool | resizable = false |
| Specifies whether to create the default surface for the swap-chain with the resizable attribute. | |
Swap chain descriptor structure.
| int LLGL::SwapChainDescriptor::colorBits = 32 |
Number of bits for each pixel in the color buffer. Should be 24 or 32. By default 32.
colorFormat is not Format::Undefined; Use colorFormat instead! | Format LLGL::SwapChainDescriptor::colorFormat = Format::Undefined |
Preferred color format for the swap-chain buffers. By default Format::Undefined.
colorBits field (the default behavior). Otherwise the renderer uses this format if the presentation surface supports it, and falls back to its automatic selection if it does not. This is primarily intended to request an sRGB format (e.g. Format::BGRA8UNorm_sRGB), so the hardware performs the linear-to-sRGB conversion on write. To determine the actual color format of a swap-chain, use the SwapChain::GetColorFormat function. | const char* LLGL::SwapChainDescriptor::debugName = nullptr |
Optional name for debugging purposes. By default null.
| int LLGL::SwapChainDescriptor::depthBits = 24 |
Number of bits for each pixel in the depth buffer. Should be 24, 32, or zero to disable depth buffer. By default 24.
depthStencilFormat is not Format::Undefined; Use depthStencilFormat instead! | Format LLGL::SwapChainDescriptor::depthStencilFormat = Format::Undefined |
Preferred depth-stencil format for the swap-chain. By default Format::Undefined.
depthBits and stencilBits fields (the default behavior). Otherwise this must be one of the depth-stencil formats, i.e. Format::D16UNorm, Format::D24UNormS8UInt, Format::D32Float, or Format::D32FloatS8X24UInt. The renderer uses this format if the hardware supports it and falls back to its automatic selection if it does not. To determine the actual depth-stencil format of a swap-chain, use the SwapChain::GetDepthStencilFormat function. | bool LLGL::SwapChainDescriptor::fullscreen = false |
Specifies whether to create the swap-chain initially in fullscreen mode or windowed mode otherwise.
| bool LLGL::SwapChainDescriptor::resizable = false |
Specifies whether to create the default surface for the swap-chain with the resizable attribute.
| Extent2D LLGL::SwapChainDescriptor::resolution |
Screen resolution (in pixels).
| std::uint32_t LLGL::SwapChainDescriptor::samples = 1 |
Number of samples for the swap-chain buffers. By default 1.
GetSamples function of the RenderTarget interface. | int LLGL::SwapChainDescriptor::stencilBits = 8 |
Number of bits for each pixel in the stencil buffer. Should be 8, or zero to disable stencil buffer. By default 8.
depthStencilFormat is not Format::Undefined; Use depthStencilFormat instead! | std::uint32_t LLGL::SwapChainDescriptor::swapBuffers = 2 |
Number of swap buffers. By default 2 (for double-buffering).