MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / validate_running_conditions

Method validate_running_conditions

crates/spirv-builder/src/lib.rs:455–465  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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,

Callers 2

buildMethod · 0.80
watchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected