Skip to main content

Module renderer

Module renderer 

Source
Expand description

WgpuBackend: headless GPU RenderBackend implementing Tier 1 primitives and gradient fills.

§Supported DrawCommand variants

CommandPipelineNotes
PushClip / PopClipsolidHardware scissor via ClipStack
FillRectsolidkind=0 solid quad
FillCirclesolidkind=1 SDF disc
StrokeRectsolid4 thin edge quads
FillRoundedRectsolidkind=2 SDF rounded rect
FillRoundedRectPerCornersolidkind=3 SDF per-corner rounded rect
FillEllipsesolidkind=4 SDF ellipse
Linesolidkind=5 hard-clip line
LineAasolidkind=5 AA line
LineThicksolidkind=5 AA line with custom width
LineDashedsolidCPU-split into solid segments
FillPathsolidCPU fan-tessellation
StrokePathsolidCPU stroke-expansion
LinearGradientgradientper-draw uniform + gradient quad
RadialGradientgradientper-draw uniform + gradient quad

§Out-of-scope (deferred)

Image, NineSlice, BoxShadow, DrawText — require texture atlas / blur pipeline and are left in the wildcard arm with an honest comment.

Structs§

WgpuBackend
Headless GPU backend implementing RenderBackend.