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. | |
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.
|
default |
Equality operator.
| other | Value to compare against. |