[vello_shaders] Move vello_shaders to crates/shaders

This commit is contained in:
Arman Uguray 2023-03-29 12:24:28 -07:00
parent 64020a3f77
commit 0a6a6e2c21
10 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,8 @@
resolver = "2"
members = [
"crates/shaders",
"integrations/vello_svg",
"examples/headless",
@ -9,7 +11,6 @@ members = [
"examples/with_bevy",
"examples/run_wasm",
"examples/scenes",
"vello_shaders",
]
[workspace.package]

View file

@ -15,7 +15,7 @@ use compile::ShaderInfo;
fn main() {
let out_dir = env::var_os("OUT_DIR").unwrap();
let dest_path = Path::new(&out_dir).join("shaders.rs");
let mut shaders = compile::ShaderInfo::from_dir("../shader");
let mut shaders = compile::ShaderInfo::from_dir("../../shader");
// Drop the HashMap and sort by name so that we get deterministic order.
let mut shaders = shaders.drain().collect::<Vec<_>>();
shaders.sort_by(|x, y| x.0.cmp(&y.0));