Skip to main content

Module graph

Module graph 

Source
Expand description

The render graph: the layers and primitives that a scene builds for a renderer to draw.

Structs§

ContentChanges
The last scene update that changed what a layer draws, and how many updates in a row up to it did.
DrawCommandId
Stable identity of one placement of a draw command: its layout node, command index and placement pass. A WithContent command shares one CPU recording between its two runs, while each placement retains independent renderer state under this identity.
DrawPrimitiveNode
One draw primitive together with its clip.
DrawRunNode
A run of recorded draw primitives from one draw command, kept together as one node.
HitTestNode
Pointer handling attached to a layer.
IsolationReasons
Reasons a layer is drawn into its own offscreen buffer instead of directly into its parent.
LayerNode
A node of the render graph that groups content under one set of layer properties: bounds, transform, clip, graphics layer and children.
LayerProperties
Scene properties with implicit defaults and independently mutable clones.
PrimitiveEntry
One primitive of a layer together with the phase that orders it against the children.
ProjectiveTransform
A projective mapping of a two-dimensional coordinate plane.
RenderGraph
The scene as a tree of layers that a renderer draws.
TextPrimitiveNode
A run of text to draw, with the layout facts that a renderer needs.

Enums§

CachePolicy
Whether a renderer may keep the rasterized pixels of a layer between frames.
PrimitiveNode
The content of a PrimitiveEntry.
PrimitivePhase
Whether a primitive draws before or after the children of its layer.
RenderNode
A child of a layer in the render graph.

Constants§

CONTAINED_DRAW_SLACK
How far past its bounds a layer that draws within them may still put pixels: glyph and edge antialiasing.

Functions§

quad_bounds
Returns the axis-aligned bounds containing all four points.

Type Aliases§

DrawRunSummary
What a run contains, answered while recording.