|
CeresEngine 0.2.0
A game development framework
|
Swapchain descriptor structure. More...
#include <CeresEngine/RenderAPI/GPUSwapchain.hpp>
Static Public Member Functions | |
| template<typename Processor > | |
| static constexpr void | reflect (Processor &&RTTI) |
| Executes the given processor for every field of the struct. | |
Public Attributes | |
| PlatformWindow * | window = nullptr |
| The platform window to be used when creating the swapchain. | |
| TExtent2< UInt32 > | resolution |
| Screen resolution (in pixels). | |
| UInt8 | colorBits = 32 |
| Number of bits for each pixel in the color buffer. | |
| UInt8 | depthBits = 0 |
| Number of bits for each pixel in the depth buffer. | |
| UInt8 | stencilBits = 0 |
| Number of bits for each pixel in the stencil buffer. | |
| bool | fullscreen = false |
| Specifies whether to enable fullscreen mode or windowed mode. | |
| UInt32 | size = 2 |
| Number of swap-chain buffers. | |
| GPUVsyncDescriptor | vsync |
| Vertical-synchronization (Vsync) descriptor. | |
| GPUMultiSamplingDescriptor | multiSampling |
| Multi-sampling descriptor. | |
Swapchain descriptor structure.
|
inlinestaticconstexpr |
Executes the given processor for every field of the struct.
| RTTI | The processor to be ran for every field. |
| UInt8 CeresEngine::GPUSwapchainDescriptor::colorBits = 32 |
Number of bits for each pixel in the color buffer.
Should be 24 or
| UInt8 CeresEngine::GPUSwapchainDescriptor::depthBits = 0 |
Number of bits for each pixel in the depth buffer.
Should be 24, 32, or zero to disable depth buffer. By default 24.
Specifies whether to enable fullscreen mode or windowed mode.
By default windowed mode.
| GPUMultiSamplingDescriptor CeresEngine::GPUSwapchainDescriptor::multiSampling |
Multi-sampling descriptor.
| TExtent2<UInt32> CeresEngine::GPUSwapchainDescriptor::resolution |
Screen resolution (in pixels).
| UInt32 CeresEngine::GPUSwapchainDescriptor::size = 2 |
Number of swap-chain buffers.
By default 2 (for double-buffering).
| UInt8 CeresEngine::GPUSwapchainDescriptor::stencilBits = 0 |
Number of bits for each pixel in the stencil buffer.
Should be 8, or zero to disable stencil buffer. By default 8.
| GPUVsyncDescriptor CeresEngine::GPUSwapchainDescriptor::vsync |
Vertical-synchronization (Vsync) descriptor.
| PlatformWindow* CeresEngine::GPUSwapchainDescriptor::window = nullptr |
The platform window to be used when creating the swapchain.