Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::geode::FilterTexture Struct Reference

A texture flowing between filter primitives: the runtime handle holding it and the descriptor it was allocated with. More...

#include "donner/svg/renderer/geode/GeodeFilterEngine.h"

Public Member Functions

 operator bool () const
 Returns true when this value names a texture.
bool operator== (const FilterTexture &other) const =default
 Equality operator.
uint32_t width () const
 Width in texels. Requires a non-empty value.
uint32_t height () const
 Height in texels. Requires a non-empty value.
gpu::TextureFormat format () const
 Texel format. Requires a non-empty value.
gpu::TextureUsage usage () const
 Allocated usage flags. Requires a non-empty value.

Public Attributes

const gpu::Texture * texture = nullptr
 Arena-owned runtime handle.
const gpu::TextureDescriptor * desc = nullptr
 Descriptor texture was allocated with.

Detailed Description

A texture flowing between filter primitives: the runtime handle holding it and the descriptor it was allocated with.

Both pointers name storage the executing graph's arena owns for the whole execution, so a copy of this value stays usable across further allocations. Two values name the same texture exactly when they compare equal, because the arena gives every texture one handle: identity here is what decides intermediate reuse and color-space caching.

A default-constructed value is empty, which is how a refused allocation or a primitive that could not record is reported to its caller.

Member Function Documentation

◆ operator==()

bool donner::geode::FilterTexture::operator== ( const FilterTexture & other) const
default

Equality operator.

Parameters
otherValue to compare against.

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