Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::SurfaceConfiguration Struct Reference

Configuration a surface presents under. More...

#include "donner/gpu/Descriptors.h"

Public Attributes

TextureFormat format = TextureFormat::BGRA8Unorm
 Format of acquired textures.
TextureUsage usage = TextureUsage::RenderAttachment
 Usage acquired textures carry.
Extent2d size
 Extent in texels. Must be nonzero.
PresentMode presentMode = PresentMode::Fifo
 Frame pacing.
SurfaceAlphaMode alphaMode = SurfaceAlphaMode::Opaque
 Alpha compositing.

Detailed Description

Configuration a surface presents under.

Reconfiguring is how a surface follows its window: a resize is a new configuration with a new size, not a new surface. It is also the recovery from SurfaceStatus::Outdated.

Member Data Documentation

◆ alphaMode

SurfaceAlphaMode donner::gpu::SurfaceConfiguration::alphaMode = SurfaceAlphaMode::Opaque

Alpha compositing.

◆ format

TextureFormat donner::gpu::SurfaceConfiguration::format = TextureFormat::BGRA8Unorm

Format of acquired textures.

◆ presentMode

PresentMode donner::gpu::SurfaceConfiguration::presentMode = PresentMode::Fifo

Frame pacing.

◆ size

Extent2d donner::gpu::SurfaceConfiguration::size

Extent in texels. Must be nonzero.

◆ usage

TextureUsage donner::gpu::SurfaceConfiguration::usage = TextureUsage::RenderAttachment

Usage acquired textures carry.


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