Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
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. Must be 1: the runtime resolves coverage analytically instead of by multisampling.

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. Must be 1: the runtime resolves coverage analytically instead of by multisampling.

◆ 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: