build: make vulkan generation generic
This commit is contained in:
parent
472ebd5d7d
commit
fce250d233
5 changed files with 60 additions and 34 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue