mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 12:21:31 +11:00
[vello_shaders] Move vello_shaders to crates/shaders
This commit is contained in:
parent
64020a3f77
commit
0a6a6e2c21
|
@ -2,6 +2,8 @@
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
members = [
|
members = [
|
||||||
|
"crates/shaders",
|
||||||
|
|
||||||
"integrations/vello_svg",
|
"integrations/vello_svg",
|
||||||
|
|
||||||
"examples/headless",
|
"examples/headless",
|
||||||
|
@ -9,7 +11,6 @@ members = [
|
||||||
"examples/with_bevy",
|
"examples/with_bevy",
|
||||||
"examples/run_wasm",
|
"examples/run_wasm",
|
||||||
"examples/scenes",
|
"examples/scenes",
|
||||||
"vello_shaders",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
|
|
|
@ -15,7 +15,7 @@ use compile::ShaderInfo;
|
||||||
fn main() {
|
fn main() {
|
||||||
let out_dir = env::var_os("OUT_DIR").unwrap();
|
let out_dir = env::var_os("OUT_DIR").unwrap();
|
||||||
let dest_path = Path::new(&out_dir).join("shaders.rs");
|
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.
|
// Drop the HashMap and sort by name so that we get deterministic order.
|
||||||
let mut shaders = shaders.drain().collect::<Vec<_>>();
|
let mut shaders = shaders.drain().collect::<Vec<_>>();
|
||||||
shaders.sort_by(|x, y| x.0.cmp(&y.0));
|
shaders.sort_by(|x, y| x.0.cmp(&y.0));
|
Loading…
Reference in a new issue