1
0
Fork 0
forked from wry/wry

vulkan: include precompiled shaders

This commit is contained in:
Julian Orth 2025-09-16 09:40:52 +02:00
parent 2dc9695621
commit 51575fce39
31 changed files with 425 additions and 122 deletions

View file

@ -0,0 +1,25 @@
use {
anyhow::bail,
compile_shaders_core::{ROOT, unchanged},
std::process::Command,
};
fn main() -> anyhow::Result<()> {
println!("cargo:rerun-if-changed={}", ROOT);
if unchanged() {
return Ok(());
}
let code = Command::new("cargo")
.args([
"run",
"--manifest-path",
"compile-shaders/Cargo.toml",
"-p",
"compile-shaders-compile",
])
.status()?;
if !code.success() {
bail!("compile-shaders failed");
}
Ok(())
}