Expand description
Graphics primitive pipeline.
Evolution: M0.12 (rect/rounded rect) β M0.13 (ellipse / line / stroke) β M0.14 (linear + radial gradient fills).
All graphics primitives across all Graphics nodes batch into a single
draw call. Stroked primitives emit a second outline instance. Lines are
rendered as rotated thin rects.
StructsΒ§
- Collected
Graphics π - Graphics
Instance π - Graphics
Pipeline π - Polygon
Vertex π - One vertex of a polygonβs fan triangulation. Position is in clip space β the world matrix is baked CPU-side during the scene walk, since polygon vertex counts are variable and donβt fit the per-instance model the SDF primitives use.
- Resolved
Fill π
ConstantsΒ§
- ATTR_
LAYOUT π - FILL_
LINEAR π - FILL_
RADIAL π - FILL_
SOLID π - KIND_
ANNULAR_ πSECTOR - KIND_
ELLIPSE π - KIND_
RECT π - MODE_
FILL π - MODE_
OUTLINE π - POLYGON_
ATTR_ πLAYOUT
FunctionsΒ§
- annular_
sector_ πinstance - apply_
alpha π - collect_
graphics π - Walk the scene and bucket every primitive a
Graphicsnode emits, separated into: - ellipse_
instance π - emit_
polygon π - Fan-triangulate a convex polygon and bake each vertex into
clip space via
world. Non-convex polygons produce visible overlap β thatβs the documented v1 limitation. - emit_
primitive π - rect_
instance π - resolve_
fill π