Skip to main content

Module pipeline

Module pipeline 

Source
Expand description

Advanced extension API: UI geometry batch and WGSL render pipeline.

Extension API for custom crate::drawable::WgpuDrawable implementations; not re-exported in crate::prelude and may change between releases.

GeometryBatch accumulates UIVertex data on the CPU and flushes it through a UIPipeline (WGSL shader in ui_shader.wgsl) each frame. Vertex positions are in physical window pixels with a z component for depth ordering.

Structsยง

GeometryBatch
CPU-side geometry batch flushed each frame through the UI render pipeline.
UIBorderThickness
Per-edge border thickness for GeometryBatch::rectangle, in physical pixels.
UIColor
Normalized RGB color (0.0..=1.0) for UI geometry vertices.
UICornerRadii
Per-corner border radii for rounded rectangles, in physical pixels.
UIPipeline
Builder for the UI WGSL render pipeline.
UIPosition
3D position for UI vertices (x, y in pixels; z for depth ordering).
UISize
Width and height pair stored in UI vertices for shader coordinate normalization.
UIVertex
Single vertex for the UI geometry render pipeline.