Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::RendererTextureSnapshot Class Referenceabstract

Backend-owned GPU texture snapshot produced by a renderer. More...

#include "donner/svg/renderer/RendererInterface.h"

Inheritance diagram for donner::svg::RendererTextureSnapshot:
[legend]

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.

Detailed Description

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

Member Function Documentation

◆ alphaType()

virtual AlphaType donner::svg::RendererTextureSnapshot::alphaType ( ) const
nodiscardpure virtual

Alpha interpretation of the texture contents.

Implemented in donner::svg::RendererGeodeTextureSnapshot.

◆ backend()

virtual RendererTextureSnapshotBackend donner::svg::RendererTextureSnapshot::backend ( ) const
inlinenodiscardvirtual

Renderer backend that produced this texture.

Reimplemented in donner::svg::RendererGeodeTextureSnapshot.

◆ dimensions()

virtual Vector2i donner::svg::RendererTextureSnapshot::dimensions ( ) const
nodiscardpure virtual

Pixel dimensions of the texture in device pixels.

Implemented in donner::svg::RendererGeodeTextureSnapshot.


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