coastline 0.0.4
Loading...
Searching...
No Matches
coastline::DisplayOptions Struct Reference

The options of the window and the GPU device. More...

#include <gpu.h>

Collaboration diagram for coastline::DisplayOptions:

Public Attributes

bool n64Effects = false
bool n64WindowReflections = false
bool wideMenus = false
bool autoWideMenus = false
float fieldOfViewScale = 1.0f
float drawDistanceScale = 1.0f
std::string gpuPreference = "auto"
HdrOutput hdrOutput = HdrOutput::Auto
bool unlockedFramerate
int width = 1280
int height = 720
int frameWidth = 0
int frameHeight = 0
float renderScale = 1.0f
 The pixels of the frame for each pixel of the window, when the frame follows the window.
ScaleFilter scaleFilter = ScaleFilter::Linear
PostAntialias postAntialias = PostAntialias::None
ScreenShader screenShader = ScreenShader::None
bool fixedFrame = false
 Whether the frame stays at the width and the height, for captures that are the same on every machine.
bool lowestFrame = false
 Whether the frame expands from 320x240 to the selected aspect ratio.
float aspectRatio = 0.0f
 The width over the height the frame keeps in a window and in the full screen, with bars around it, or 0 for the shape of the window.
bool gpuDebug = false
 Whether the GPU device checks its use, with the validation layers of Vulkan when they are installed.
bool minimized = false
 Whether the window starts minimized, for runs that save their frames unattended.
bool fullscreen = false
bool exclusive = false
 Whether the window covers the display in a mode of the width, the height, and the refresh rate, rather than at the desktop mode without borders.
int refreshRate = 0
SDL_GPUPresentMode presentMode = SDL_GPU_PRESENTMODE_VSYNC
 How frames are presented, with the other mode that does not wait and then vertical sync taking the place of a mode the window does not support.
bool fifo = false
 Whether vertical sync of a Wayland window waits for the vertical blank as on other systems, rather than presenting to the mailbox at the refresh rate of the display.
int antialias = 1
int anisotropy = 0
 The most samples of anisotropic filtering of the textures of models, which are then mipmapped, from 2 to 16, or 0 for neither.
TextureFilter textureFilter = TextureFilter::Modern
bool alphaToCoverage = true
 Whether the alpha of the texels a model cuts covers the samples of a multisampled pixel.
std::optional< std::string > driver

Detailed Description

The options of the window and the GPU device.

Member Data Documentation

◆ n64Effects

bool coastline::DisplayOptions::n64Effects = false

Console particle textures, opacity, and skid-mark visibility.

◆ n64WindowReflections

bool coastline::DisplayOptions::n64WindowReflections = false

Generate car reflection coordinates as the N64 RSP.

◆ wideMenus

bool coastline::DisplayOptions::wideMenus = false

Fill wide frames with the menu background.

◆ autoWideMenus

bool coastline::DisplayOptions::autoWideMenus = false

Fill menu backgrounds only for a 16:9 internal frame.

◆ fieldOfViewScale

float coastline::DisplayOptions::fieldOfViewScale = 1.0f

Multiplier of the race camera's field of view.

◆ drawDistanceScale

float coastline::DisplayOptions::drawDistanceScale = 1.0f

Multiplier of the race view and mirror distances.

◆ gpuPreference

std::string coastline::DisplayOptions::gpuPreference = "auto"

Automatic, high-performance, or low-power selection.

◆ hdrOutput

HdrOutput coastline::DisplayOptions::hdrOutput = HdrOutput::Auto

Selection of HDR swapchain output.

◆ unlockedFramerate

bool coastline::DisplayOptions::unlockedFramerate
Initial value:
=
false

Disable presentation pacing and the software frame limit.

◆ width

int coastline::DisplayOptions::width = 1280

The width of the window and of the exclusive mode in pixels.

◆ height

int coastline::DisplayOptions::height = 720

The height of the window and of the exclusive mode in pixels.

◆ frameWidth

int coastline::DisplayOptions::frameWidth = 0

The minimum internal width, 0 to follow the window.

◆ frameHeight

int coastline::DisplayOptions::frameHeight = 0

The minimum internal height, 0 to follow the window.

◆ renderScale

float coastline::DisplayOptions::renderScale = 1.0f

The pixels of the frame for each pixel of the window, when the frame follows the window.

◆ scaleFilter

ScaleFilter coastline::DisplayOptions::scaleFilter = ScaleFilter::Linear

How the frame is scaled to the window.

◆ postAntialias

PostAntialias coastline::DisplayOptions::postAntialias = PostAntialias::None

The anti-aliasing of the frame.

◆ screenShader

ScreenShader coastline::DisplayOptions::screenShader = ScreenShader::None

The display simulation after scaling.

◆ fixedFrame

bool coastline::DisplayOptions::fixedFrame = false

Whether the frame stays at the width and the height, for captures that are the same on every machine.

◆ lowestFrame

bool coastline::DisplayOptions::lowestFrame = false

Whether the frame expands from 320x240 to the selected aspect ratio.

◆ aspectRatio

float coastline::DisplayOptions::aspectRatio = 0.0f

The width over the height the frame keeps in a window and in the full screen, with bars around it, or 0 for the shape of the window.

◆ gpuDebug

bool coastline::DisplayOptions::gpuDebug = false

Whether the GPU device checks its use, with the validation layers of Vulkan when they are installed.

◆ minimized

bool coastline::DisplayOptions::minimized = false

Whether the window starts minimized, for runs that save their frames unattended.

◆ fullscreen

bool coastline::DisplayOptions::fullscreen = false

Whether the window covers the display.

◆ exclusive

bool coastline::DisplayOptions::exclusive = false

Whether the window covers the display in a mode of the width, the height, and the refresh rate, rather than at the desktop mode without borders.

◆ refreshRate

int coastline::DisplayOptions::refreshRate = 0

The refresh rate of the exclusive mode in hertz, 0 for the desktop.

◆ presentMode

SDL_GPUPresentMode coastline::DisplayOptions::presentMode = SDL_GPU_PRESENTMODE_VSYNC

How frames are presented, with the other mode that does not wait and then vertical sync taking the place of a mode the window does not support.

◆ fifo

bool coastline::DisplayOptions::fifo = false

Whether vertical sync of a Wayland window waits for the vertical blank as on other systems, rather than presenting to the mailbox at the refresh rate of the display.

◆ antialias

int coastline::DisplayOptions::antialias = 1

The samples of each pixel: 1 for none, or 2, 4, or 8.

◆ anisotropy

int coastline::DisplayOptions::anisotropy = 0

The most samples of anisotropic filtering of the textures of models, which are then mipmapped, from 2 to 16, or 0 for neither.

◆ textureFilter

TextureFilter coastline::DisplayOptions::textureFilter = TextureFilter::Modern

How textures are filtered.

◆ alphaToCoverage

bool coastline::DisplayOptions::alphaToCoverage = true

Whether the alpha of the texels a model cuts covers the samples of a multisampled pixel.

◆ driver

std::optional<std::string> coastline::DisplayOptions::driver

An SDL GPU driver, such as vulkan, metal, or direct3d12.


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