mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
snapshots::convert_spv: Print input name before processing. (#2467)
When `convert_spv` fails, this makes it easier to tell which file it was trying to process.
This commit is contained in:
@@ -653,6 +653,7 @@ fn convert_spv(name: &str, adjust_coordinate_space: bool, targets: Targets) {
|
||||
|
||||
let root = env!("CARGO_MANIFEST_DIR");
|
||||
|
||||
println!("Processing '{name}'");
|
||||
let module = naga::front::spv::parse_u8_slice(
|
||||
&fs::read(format!("{root}/{BASE_DIR_IN}/spv/{name}.spv")).expect("Couldn't find spv file"),
|
||||
&naga::front::spv::Options {
|
||||
|
||||
Reference in New Issue
Block a user