Skip to main content

bundled_runtime_cache_path

Function bundled_runtime_cache_path 

Source
pub fn bundled_runtime_cache_path() -> Option<PathBuf>
Expand description

The runtime cache segment a bundle ships, read-only. cn export warms it with the shader binaries a first launch would otherwise compile; because those artifacts are backend IR (DXBC / SPIR-V) rather than machine code, one warmed at package time is valid on any machine.

Resolves against the content root, so it stays readable on a read-only install. That is also the only layout where this differs from runtime_cache_path: a bundle the player can write to has one segment serving both roles.