wisdom
Loading...
Searching...
No Matches
wis::SwapchainDesc Struct Reference

Detailed Description

Swapchain description for wis::SwapChain creation.

struct SwapchainDesc {
wis::Size2D size;
wis::DataFormat format;
uint32_t buffer_count;
bool stereo;
bool vsync;
bool tearing;
};
SwapchainScaling
Swapchain scaling mode.
Definition api.hpp:875
DataFormat
Data format for data. Used as a template for data in several cases. Can be used to describe:
Definition api.hpp:310
2D unsigned size.
Definition api.hpp:1546
Swapchain description for wis::SwapChain creation.
Definition api.hpp:1772

Definition at line 1772 of file api.hpp.

#include <api.hpp>

Public Attributes

wis::Size2D size
 Swapchain texture size.
 
wis::DataFormat format
 Swapchain texture format.
 
uint32_t buffer_count
 Swapchain buffer count.
 
bool stereo
 Stereo mode enable. If there is no stereo in the system will be ignored.
 
bool vsync
 VSync enable. Specifies Initial VSync. This value may be changed on per-present bases with wis::DeviceFeature::DynamicVSync.
 
bool tearing
 Tearing enable. If VSync is disabled, Tearing may be enabled. If System does not allow tearing the flag is ignored.
 
wis::SwapchainScaling scaling
 Swapchain scaling mode.
 

Data Members

◆ buffer_count

uint32_t wis::SwapchainDesc::buffer_count

Swapchain buffer count.

Definition at line 1775 of file api.hpp.

◆ format

wis::DataFormat wis::SwapchainDesc::format

Swapchain texture format.

Definition at line 1774 of file api.hpp.

◆ scaling

wis::SwapchainScaling wis::SwapchainDesc::scaling

Swapchain scaling mode.

Definition at line 1779 of file api.hpp.

◆ size

wis::Size2D wis::SwapchainDesc::size

Swapchain texture size.

Definition at line 1773 of file api.hpp.

◆ stereo

bool wis::SwapchainDesc::stereo

Stereo mode enable. If there is no stereo in the system will be ignored.

Definition at line 1776 of file api.hpp.

◆ tearing

bool wis::SwapchainDesc::tearing

Tearing enable. If VSync is disabled, Tearing may be enabled. If System does not allow tearing the flag is ignored.

Definition at line 1778 of file api.hpp.

◆ vsync

bool wis::SwapchainDesc::vsync

VSync enable. Specifies Initial VSync. This value may be changed on per-present bases with wis::DeviceFeature::DynamicVSync.

Definition at line 1777 of file api.hpp.


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