|
|
Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
|
Backend-owned GPU texture snapshot produced by a renderer. More...
#include "donner/svg/renderer/RendererInterface.h"
Public Member Functions | |
| virtual RendererTextureSnapshotBackend | backend () const |
| Renderer backend that produced this texture. | |
| virtual Vector2i | dimensions () const =0 |
| Pixel dimensions of the texture in device pixels. | |
| virtual AlphaType | alphaType () const =0 |
| Alpha interpretation of the texture contents. | |
Backend-owned GPU texture snapshot produced by a renderer.
The base type is intentionally backend-neutral so compositor/editor code can carry texture payloads without depending on WebGPU, OpenGL, or any concrete graphics API. Backends that support direct texture presentation return a derived type from RendererInterface::takeTextureSnapshot().
|
nodiscardpure virtual |
Alpha interpretation of the texture contents.
Implemented in donner::svg::RendererGeodeTextureSnapshot.
|
inlinenodiscardvirtual |
Renderer backend that produced this texture.
Reimplemented in donner::svg::RendererGeodeTextureSnapshot.
|
nodiscardpure virtual |
Pixel dimensions of the texture in device pixels.
Implemented in donner::svg::RendererGeodeTextureSnapshot.