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. | |
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.
|
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. |