Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::SurfaceCapabilities Struct Reference

What a surface supports, for choosing a SurfaceConfiguration. More...

#include "donner/gpu/Descriptors.h"

Public Attributes

std::vector< TextureFormat > formats
 Formats acquired textures may take.
TextureUsage usages = TextureUsage::None
 Usage flags acquired textures may carry.
std::vector< PresentMode > presentModes
 Supported frame pacing.
std::vector< SurfaceAlphaMode > alphaModes
 Supported alpha compositing.

Detailed Description

What a surface supports, for choosing a SurfaceConfiguration.

Examples
geode_embed.cc.

Member Data Documentation

◆ alphaModes

std::vector<SurfaceAlphaMode> donner::gpu::SurfaceCapabilities::alphaModes

Supported alpha compositing.

Examples
geode_embed.cc.

◆ formats

std::vector<TextureFormat> donner::gpu::SurfaceCapabilities::formats

Formats acquired textures may take.

Examples
geode_embed.cc.

◆ presentModes

std::vector<PresentMode> donner::gpu::SurfaceCapabilities::presentModes

Supported frame pacing.

Examples
geode_embed.cc.

◆ usages

TextureUsage donner::gpu::SurfaceCapabilities::usages = TextureUsage::None

Usage flags acquired textures may carry.

Examples
geode_embed.cc.

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