restructure this multi-crate project to use Cargo's "workspace" feature
this solves an issue in the Nix build, where managing multiple Cargo.lock files is otherwise tricky. it causes (or fails to fix?) an adjacent issue where the spirv builder doesn't seem to have everything it needs vendored.
This commit is contained in:
8
crates/spirv_backend_runner/src/lib.rs
Normal file
8
crates/spirv_backend_runner/src/lib.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
/// returns the compiled spirv module
|
||||
/// for use with e.g. `wgpu::util::make_spirv_raw`.
|
||||
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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user