mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Report per-entry point translation errors in the MSL output snapshots (#808)
This commit is contained in:
@@ -164,7 +164,13 @@ fn check_output_msl(
|
||||
allow_point_size: true,
|
||||
};
|
||||
|
||||
let (string, _) = msl::write_string(module, info, options, &pipeline_options).unwrap();
|
||||
let (string, tr_info) = msl::write_string(module, info, options, &pipeline_options).unwrap();
|
||||
|
||||
for (ep, result) in module.entry_points.iter().zip(tr_info.entry_point_names) {
|
||||
if let Err(error) = result {
|
||||
panic!("Failed to translate '{}': {}", ep.name, error);
|
||||
}
|
||||
}
|
||||
|
||||
fs::write(destination.with_extension("msl"), string).unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user