Skip to main content

Module geometry

Module geometry 

Source
Expand description

CPU-side geometry building for WgpuBackend.

This module owns:

  • DrawSegment — a scissor-bounded range in the solid vertex buffer.
  • GradientDraw — per-draw gradient vertex + uniform data.
  • build_geometry — the main CPU geometry builder that walks a DrawList and emits (Vertex[], DrawSegment[], GradientDraw[], TexturedDraw[]).
  • Visibility culling helpers: cmd_bounds, rect_from_points, rects_intersect, scissor_to_rect.
  • Stroke/dashed-line emitters and gradient uniform builders.