-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vello
should import vello_shaders
#467
Comments
We always intended for the main Vello crate to use I think this issue can be repurposed as "Move to shader management via crates/shaders". |
vello
should import vello_shaders
This replaces the shader preprocessing code in the vello crate with invocations to the vello_shaders crate, which supports both reading from a directory at runtime (for hot_reload) and bundlng pre-compiled shader code into the binary (which is suitable for wasm). This also moves the CPU shader code over to the vello_shaders crate behind the "cpu" feature. Resolves #467
The same preprocessor code is written twice:
crates/shaders/src/compile/preprocess.rs
src/shaders/preprocess.rs
According to Raph, this is because the vello_shaders crate was meant for Skia integration, and currently isn't used by Vello.
We should fix that and remove the duplication.
The text was updated successfully, but these errors were encountered: