1
0
Fork 0
forked from wry/wry

build: make vulkan generation generic

This commit is contained in:
Julian Orth 2026-02-18 21:05:27 +01:00
parent 472ebd5d7d
commit fce250d233
5 changed files with 60 additions and 34 deletions

View file

@ -1,8 +1,6 @@
include!("../../../build/vulkan/hash.rs");
pub const BIN: &str = "src/gfx_apis/vulkan/shaders_bin";
pub fn update_hash() -> anyhow::Result<()> {
std::fs::write(HASH, calculate_hash()?)?;
pub fn update_hash(tree: &Tree) -> anyhow::Result<()> {
std::fs::write(tree.hash, calculate_hash(tree)?)?;
Ok(())
}