Expand description
GPU Compute Buffer Layouts, Raw Curve Representations, and Compute Dispatchers.
Structs§
- Curve
Compute Dispatcher - High-performance CPU dispatcher and simulator matching the WGSL compute pipeline layout.
- GpuPath
Segment - 64-byte aligned output quadratic segment produced by compute shaders or CPU fallback.
- GpuPath
Uniforms - 16-byte aligned Uniform Buffer object for path compute operations.
- RawCurve
Input - 64-byte aligned raw cubic curve input data fed into WebGPU compute pipelines.
Constants§
- FLAG_
CAP_ ROUND - Flag indicating round stroke end caps (when paired with
FLAG_START_OPEN/FLAG_END_OPEN). - FLAG_
CAP_ SQUARE - Flag indicating square stroke end caps (when paired with
FLAG_START_OPEN/FLAG_END_OPEN). - FLAG_
CLOSED - Flag indicating that the path segment is closed.
- FLAG_
END_ OPEN - Flag indicating this segment’s end endpoint (
p2) is an open subpath/dash cap. - FLAG_
EVEN_ ODD - Flag indicating Even-Odd fill rule (default is Non-Zero winding rule).
- FLAG_
FILL - Flag indicating that the path segment belongs to a filled polygon / region.
- FLAG_
JOIN_ BEVEL - Flag indicating bevel corner joins (both
FLAG_JOIN_ROUNDandFLAG_JOIN_BEVELclear = miter). - FLAG_
JOIN_ ROUND - Flag indicating round corner joins.
- FLAG_
START_ OPEN - Flag indicating this segment’s start endpoint (
p0) is an open subpath/dash cap. - FLAG_
STROKE - Flag indicating that the path segment is stroked with a line width.
- FLAG_
TRIANGLE - Flag indicating
(p0, p1, p2)encodes a filled 2D triangle (e.g. bevel/miter join wedge or clip).
Functions§
- stroke_
style_ flags - Encodes
LineCap,LineJoin, closure, and open-endpoint bits into aGpuPathSegment::flagsbitmask.