pub fn build(self) -> Result<PathBuf, SpirvBuilderError> {
        let spirv_module = invoke_rustc(&self)?;
        let env_var = spirv_module.file_name().unwrap().to_str().unwrap();
        if self.print_metadata {
            println!("cargo:rustc-env={}={}", env_var, spirv_module.display());
        }
        Ok(spirv_module)
    }
/// Builds the module. Returns the path to the built spir-v file. If print_metadata is true,
/// you usually don't have to inspect the path, as the environment variable will already be
/// set.
Builds the module. Returns the path to the built spir-v file. If print_metadata is true,
you usually don't have to inspect the path, as the environment variable will already be
set.
Builds the module . Returns the path to the built spir - v file . If print_metadata is true you usually don ' t have to inspect the path as the environment variable will already be set .
pub fn build(self) -> Result<PathBuf, SpirvBuilderError> {
        let spirv_module = invoke_rustc(&self)?;
        let env_var = spirv_module.file_name().unwrap().to_str().unwrap();
        if self.print_metadata {
            println!("cargo:rustc-env={}={}", env_var, spirv_module.display());
        }
        Ok(spirv_module)
    }
pub fn build ( self ) -> Result < PathBuf , SpirvBuilderError > { let spirv_module = invoke_rustc ( & self ) ? ; let env_var = spirv_module . file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) ; if self . print_metadata { println ! ( " " env_var spirv_module display ( ) ) ; } Ok ( spirv_module ) }
Builds the module.
Builds the module .
self
self