Skip to main content

asset_dir_for_ir

Function asset_dir_for_ir 

Source
pub fn asset_dir_for_ir(ir_path: &Path) -> PathBuf
Expand description

The directory an IR’s assets live in, derived from the IR’s own path.

A sibling rather than a path recorded inside the IR: the IR is a portable document and should not carry a filesystem location that stops being true the moment it is copied. Both dispatch surfaces already receive the IR path, so both can derive this.