1
0
Fork 0
forked from wry/wry
This commit is contained in:
entailz 2026-04-30 03:03:17 -07:00
parent 59c2b53350
commit 8ff17aca1e
30 changed files with 222 additions and 244 deletions

View file

@ -8,33 +8,31 @@ pub struct Tree {
pub shaders: &'static [&'static str],
}
pub const TREES: &[Tree] = &[
Tree {
root: "src/gfx_apis/vulkan/shaders",
hash: "src/gfx_apis/vulkan/shaders_hash.txt",
bin: "src/gfx_apis/vulkan/shaders_bin",
shaders: &[
"fill.frag",
"fill.vert",
"tex.vert",
"tex.frag",
"out.vert",
"out.frag",
"rounded_fill.frag",
"rounded_fill.vert",
"rounded_tex.frag",
"rounded_tex.vert",
"legacy/fill.frag",
"legacy/fill.vert",
"legacy/tex.vert",
"legacy/tex.frag",
"legacy/rounded_fill.frag",
"legacy/rounded_fill.vert",
"legacy/rounded_tex.frag",
"legacy/rounded_tex.vert",
],
},
];
pub const TREES: &[Tree] = &[Tree {
root: "src/gfx_apis/vulkan/shaders",
hash: "src/gfx_apis/vulkan/shaders_hash.txt",
bin: "src/gfx_apis/vulkan/shaders_bin",
shaders: &[
"fill.frag",
"fill.vert",
"tex.vert",
"tex.frag",
"out.vert",
"out.frag",
"rounded_fill.frag",
"rounded_fill.vert",
"rounded_tex.frag",
"rounded_tex.vert",
"legacy/fill.frag",
"legacy/fill.vert",
"legacy/tex.vert",
"legacy/tex.frag",
"legacy/rounded_fill.frag",
"legacy/rounded_fill.vert",
"legacy/rounded_tex.frag",
"legacy/rounded_tex.vert",
],
}];
fn calculate_hash(tree: &Tree) -> anyhow::Result<String> {
let dir = WalkDir::new(tree.root);