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::GeometryDebugSink Class Referenceabstract

Optional debug observer for Slug draws that actually reach a GPU draw call. More...

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

Public Member Functions

virtual void recordSlugDraw (const EncodedPath &encoded, const Transform2d &targetFromPath, const Transform2d &rootFromTarget, std::span< const float > instanceTransforms)=0
 Capture the geometry and transforms of a Slug draw for diagnostic presentation.

Detailed Description

Optional debug observer for Slug draws that actually reach a GPU draw call.

The observer is null in normal rendering. Implementations must copy any needed EncodedPath data before returning because an inline encode may be destroyed immediately after the submission call.

Member Function Documentation

◆ recordSlugDraw()

virtual void donner::geode::GeometryDebugSink::recordSlugDraw ( const EncodedPath & encoded,
const Transform2d & targetFromPath,
const Transform2d & rootFromTarget,
std::span< const float > instanceTransforms )
pure virtual

Capture the geometry and transforms of a Slug draw for diagnostic presentation.

Parameters
encodedEncoded path geometry for the draw.
targetFromPathTransform from path coordinates to target coordinates.
rootFromTargetTransform from target coordinates to root presentation coordinates.
instanceTransformsPacked per-instance transforms, when instancing is used.

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