fix up the builder so that this works as a nix expression

This commit is contained in:
2022-07-05 22:58:32 -07:00
parent 5b99d30cda
commit de7da0540d
5 changed files with 111 additions and 40 deletions

View File

@@ -3,6 +3,6 @@
pub fn spirv_module() -> &'static [u8] {
// we specifically include the bytes into this binary, for ease of packaging (v.s. attempting
// to locate the compiled result at runtime).
include_bytes!("../../../target/spirv-builder/spirv-unknown-vulkan1.1/release/deps/spirv_backend.spv.dir/module")
include_bytes!(std::env!("SPIRV_MODULE_PATH"))
}