Expand description
Slug and Vello-tier analytical GPU Bézier curve and vector path engine for Project Strata.
Re-exports§
pub use buffer::GpuCurveInstance;pub use buffer::PathCommandBuffer;pub use compute::stroke_style_flags;pub use compute::CurveComputeDispatcher;pub use compute::GpuPathSegment;pub use compute::GpuPathUniforms;pub use compute::RawCurveInput;pub use compute::FLAG_CAP_ROUND;pub use compute::FLAG_CAP_SQUARE;pub use compute::FLAG_CLOSED;pub use compute::FLAG_END_OPEN;pub use compute::FLAG_EVEN_ODD;pub use compute::FLAG_FILL;pub use compute::FLAG_JOIN_BEVEL;pub use compute::FLAG_JOIN_ROUND;pub use compute::FLAG_START_OPEN;pub use compute::FLAG_STROKE;pub use compute::FLAG_TRIANGLE;pub use curve::CubicBezier;pub use curve::Point2D;pub use curve::QuadraticBezier;pub use curve::Rect2D;pub use font_cache::AnalyticGlyph;pub use font_cache::AnalyticGlyphCache;pub use font_shader::evaluate_slug_analytical_coverage;pub use font_shader::solve_quadratic_roots_f32;pub use font_shader::GpuGlyphCurve;pub use font_shader::GpuGlyphInstance;pub use font_shader::SlugGlyphBuffer;pub use font_shader::MAX_GLYPH_CURVES;pub use font_shader::MAX_GLYPH_INSTANCES;pub use font_shader::WGSL_SLUG_FONT_SHADER;pub use path::FillRule;pub use path::Path;pub use path::PathBuilder;pub use path::PathVerb;pub use path::StrokeStyle;pub use sdf::distance_to_quadratic;pub use sdf::is_point_inside_closed_path;pub use sdf::is_point_inside_closed_path_rule;pub use sdf::solve_cubic_roots;pub use shaders::WGSL_ANALYTICAL_PATH_RASTER_SHADER;pub use shaders::WGSL_CONCENTRIC_FILLET_CORNER_SHADER;pub use shaders::WGSL_PATH_COMPUTE_FLATTEN_SHADER;pub use stroke::dash_quadratics;pub use stroke::dash_quadratics_with_offset;pub use stroke::expand_stroke_quadratics;pub use stroke::offset_quadratic;pub use stroke::quadratic_subcurve;pub use stroke::unit_normal;pub use stroke::LineCap;pub use stroke::LineJoin;pub use stroke::StrokeOptions;
Modules§
- buffer
- GPU instance buffers and path command encoding for hardware rasterization.
- compute
- GPU Compute Buffer Layouts, Raw Curve Representations, and Compute Dispatchers.
- curve
- Parametric Quadratic and Cubic Bézier mathematical primitives.
- font_
cache - Analytical Bézier glyph cache for infinite-resolution font rendering.
- font_
shader - Analytical GPU Font Curve Shaders and In-VRAM Text Rasterization (Slug / Loop-Blinn algorithm).
- path
- SVG path construction, verb sequence, and stroke/fill styling.
- sdf
- Analytical signed distance fields (SDF) and winding numbers for quadratic Béziers.
- shaders
- Embedded WGSL Compute and Analytical Fragment Shaders for Direct Hardware Vector Path Rendering.
- stroke
- Analytical stroke offset expansion, unit normal evaluation, and cap/join generation.