Vello Common
Shared data structures
This crate includes common geometry representations, tiling logic, and other fundamental components used by both Vello CPU and Vello GPU.
Usage
This crate should not be used on its own, and you should instead use one of the renderers which use it.
Choose Vello CPU for CPU-only rendering or Vello GPU for GPU rasterization with CPU-side preprocessing. The compute-centric vello renderer is a separate architecture and does not use this crate.
Features
std(enabled by default): Get floating point functions from the standard library (likely using your target's libc).libm: Use floating point implementations from libm.png(enabled by default): Allow loadingPixmaps from PNG images. Also required for rendering glyphs with an embedded PNG. Impliesstd.
At least one of std and libm is required; std overrides libm.
Contents
- Shared data structures for paths, tiles, and strips
- Geometry processing utilities
- Common logic for rendering stages
This crate acts as a foundation for vello_cpu and vello_gpu, providing essential components to minimize duplication.
Minimum supported Rust Version (MSRV)
This version of Vello Common has been verified to compile with Rust 1.89 and later.
Future versions of Vello Common might increase the Rust version requirement. It will not be treated as a breaking change and as such can even happen with small patch releases.
As time has passed, some of Vello Common's dependencies could have released versions with a higher Rust requirement. If you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency.
# Use the problematic dependency's name and version
Community
Discussion of Vello Common development happens in the Linebender Zulip, specifically the #vello channel. All public content can be read without logging in.
Contributions are welcome by pull request. The Rust code of conduct applies.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.