Skip to main content

Module compute

Module compute 

Source
Expand description

GPU Compute Buffer Layouts, Raw Curve Representations, and Compute Dispatchers.

Structs§

CurveComputeDispatcher
High-performance CPU dispatcher and simulator matching the WGSL compute pipeline layout.
GpuPathSegment
64-byte aligned output quadratic segment produced by compute shaders or CPU fallback.
GpuPathUniforms
16-byte aligned Uniform Buffer object for path compute operations.
RawCurveInput
64-byte aligned raw cubic curve input data fed into WebGPU compute pipelines.

Constants§

FLAG_CLOSED
Flag indicating that the path segment is closed.
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_STROKE
Flag indicating that the path segment is stroked with a line width.