mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +11:00
d82bd409ff
* Bazel builds seem to fail to open relative paths to parent directories due to hermetic sandboxing of third-party repositories. This adds a WORKSPACE_MANIFEST_FILE environment variable that allows the caller to optionally provide an absolute path to the workspace root manifest file. * The existing code processed a shader file only if `FileType::is_file` returns true for it. This is not the case when sources are accessed via symbolic links, which is possible in a Bazel sandbox. The code now filters for the ".wgsl" file extension instead of the file type which should generally be safe. |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
README.md |
The vello_shaders
crate provides a utility library to integrate the Vello shader modules into any
renderer project. The crate provides the necessary metadata to construct the individual compute
pipelines on any GPU API while leaving the responsibility of all API interactions (such as
resource management and command encoding) up to the client.
The shaders can be pre-compiled to any target shading language at build time based on feature flags. Currently only WGSL and Metal Shading Language are supported.