Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::gpu::TextureDescriptor Struct Reference

Descriptor for Device::createTexture. All Donner textures are 2D, single-mip. More...

#include "donner/gpu/Descriptors.h"

Public Attributes

RcString label
 Debug label.
Extent2d size
 Extent in texels. Must be nonzero.
TextureFormat format = TextureFormat::RGBA8Unorm
 Texel format.
TextureUsage usage = TextureUsage::None
 Usage flags. Must not be empty.
uint32_t sampleCount = 1
 Samples per texel. Only 1 is accepted today; multisampled attachments plus a resolve-target story arrive with the Geode pipeline migration packets.

Detailed Description

Descriptor for Device::createTexture. All Donner textures are 2D, single-mip.

Member Data Documentation

◆ format

TextureFormat donner::gpu::TextureDescriptor::format = TextureFormat::RGBA8Unorm

Texel format.

◆ label

RcString donner::gpu::TextureDescriptor::label

Debug label.

◆ sampleCount

uint32_t donner::gpu::TextureDescriptor::sampleCount = 1

Samples per texel. Only 1 is accepted today; multisampled attachments plus a resolve-target story arrive with the Geode pipeline migration packets.

◆ size

Extent2d donner::gpu::TextureDescriptor::size

Extent in texels. Must be nonzero.

◆ usage

TextureUsage donner::gpu::TextureDescriptor::usage = TextureUsage::None

Usage flags. Must not be empty.


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