Add support for experimental xx_foreign_toplevel_geometry_tracker_v1 (#1)
Co-authored-by: entailz <entail-wraps0r@icloud.com> Reviewed-on: wry/wry#1 Co-authored-by: entailz <entailzwrapped@proton.me> Co-committed-by: entailz <entailzwrapped@proton.me>
This commit is contained in:
parent
4e9b6def83
commit
f056727621
36 changed files with 497 additions and 243 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue