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. | |
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.
|
pure virtual |
Capture the geometry and transforms of a Slug draw for diagnostic presentation.
| encoded | Encoded path geometry for the draw. |
| targetFromPath | Transform from path coordinates to target coordinates. |
| rootFromTarget | Transform from target coordinates to root presentation coordinates. |
| instanceTransforms | Packed per-instance transforms, when instancing is used. |