(&mut self)
| 453 | } |
| 454 | |
| 455 | pub(crate) fn validate_running_conditions(&mut self) -> Result<(), SpirvBuilderError> { |
| 456 | if (self.print_metadata == MetadataPrintout::Full) && self.multimodule { |
| 457 | return Err(SpirvBuilderError::MultiModuleWithPrintMetadata); |
| 458 | } |
| 459 | if !self.path_to_crate.is_dir() { |
| 460 | return Err(SpirvBuilderError::CratePathDoesntExist(std::mem::take( |
| 461 | &mut self.path_to_crate, |
| 462 | ))); |
| 463 | } |
| 464 | Ok(()) |
| 465 | } |
| 466 | |
| 467 | pub(crate) fn parse_metadata_file( |
| 468 | &self, |