Expand description
Vector image component built on top of SVG parsing and tessellation.
This module mirrors the ergonomics of crate::image, but keeps the content
in vector form so it can scale cleanly at any size. SVG data is parsed with
usvg and tessellated into GPU-friendly triangles using lyon.
The resulting ImageVectorData can be cached and reused across frames.
Re-exports§
pub use crate::pipelines::image_vector::ImageVectorData;
Structs§
- Image
Vector Args - Arguments for
image_vector. - Image
Vector Args Builder - Builder for
ImageVectorArgs.
Enums§
- Image
Vector Args Builder Error - Error type for ImageVectorArgsBuilder
- Image
Vector Load Error - Errors that can occur while decoding or tessellating vector images.
- Image
Vector Source - Source for loading SVG vector data.
Functions§
- image_
vector - load_
image_ vector_ from_ source - Load
ImageVectorDatafrom the provided source.