Skip to main content

set_file_path

Function set_file_path 

Source
pub fn set_file_path(path: PathBuf)
Expand description

Names the file the driver’s compiled pipelines are kept in between runs.

This crate renders and does not know where an application may write, so the platform backend passes the path in once, before the first device is created. Without it the cache lives and dies with the process, and every launch pays the driver’s compile again. A later call is ignored: the loaded blob and the watcher that writes it back must name one file.