tree: 2649a8e74d27801556264af88ef1d548f8e23e90
  1. shaders/
  2. src/
  3. .gitignore
  4. build.rs
  5. Cargo.toml
  6. LICENSE-APACHE
  7. LICENSE-MIT
  8. README.md
  9. wesl.toml
sparse_strips/vello_sparse_shaders/README.md

Vello Sparse Shaders

Apache 2.0 or MIT license.
Linebender Zulip chat. GitHub Actions CI status.

This crate contains the WESL programs and linked WGSL output, plus optionally generated GLSL shader programs, used by the Vello Hybrid renderer.

Features

  • Single source of truth authored as WESL programs.
  • Automated build step for linking WESL to WGSL and compiling GLSL shaders using naga.

Usage

This crate provides linked WGSL programs and the build step for GLSL programs used by the optimized hybrid rendering engine.

Whenever the WESL shaders are updated, the build script automatically relinks the WGSL and regenerates the GLSL programs used by the crate itself.

If you want to inspect the generated WebGL GLSL output directly, you can also create a “local copy” that is easier to inspect by running:

cargo run -p vello_sparse_shaders --features glsl

After doing so, the WebGL shaders will be written into the generated_glsl folder.

Minimum supported Rust Version (MSRV)

This version of Vello Hybrid Shaders has been verified to compile with Rust 1.88 and later.

Future versions of Vello Hybrid 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 Hybrid‘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
cargo update -p package_name --precise 0.1.1

Community

Discussion of Vello Hybrid 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

at your option.