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::FilterExecutionResult Struct Reference

Outcome of running a filter graph, and the ownership that comes with it. More...

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

Public Types

enum class  Kind : uint8_t {
  Failed ,
  SourceGraphic ,
  Output
}
 What the caller composites, and what it owns. More...

Public Attributes

Kind kind = Kind::Failed
 Which outcome this is.
gpu::Texture texture
 Result texture; valid only for Kind::Output.
gpu::TextureDescriptor desc
 Descriptor texture must be released with.

Detailed Description

Outcome of running a filter graph, and the ownership that comes with it.

The three kinds are distinct outcomes for the caller: a failure composites nothing, a declined graph composites the caller's own unmodified source, and an output hands the caller a texture it must release through the allocator it passed in.

Member Enumeration Documentation

◆ Kind

enum class donner::geode::FilterExecutionResult::Kind : uint8_t
strong

What the caller composites, and what it owns.

Enumerator
Failed 

Nothing usable was produced; there is no result to composite.

SourceGraphic 

The graph was declined; the caller composites its own source unchanged.

Output 

texture holds the result and the caller owns it.


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