CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUVsyncDescriptor Struct Referencefinal

Vertical-synchronization (Vsync) 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

bool enabled = true
 Specifies whether vertical-synchronisation (Vsync) is enabled or disabled.
 
UInt32 refreshRate = 60
 Refresh rate (in Hz).
 
UInt32 interval = 1
 Synchronisation interval.
 

Detailed Description

Vertical-synchronization (Vsync) descriptor structure.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUVsyncDescriptor::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ enabled

bool CeresEngine::GPUVsyncDescriptor::enabled = true

Specifies whether vertical-synchronisation (Vsync) is enabled or disabled.

By default disabled.

◆ interval

UInt32 CeresEngine::GPUVsyncDescriptor::interval = 1

Synchronisation interval.

Can be 1, 2, 3, or 4.

Remarks
If Vsync is disabled, this value is implicitly zero.

◆ refreshRate

UInt32 CeresEngine::GPUVsyncDescriptor::refreshRate = 60

Refresh rate (in Hz).

By default 60.

Note
Only supported with: Direct3D 11, Direct3D 12.

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