Function let_engine::resources::load_pipeline_cache
source · pub unsafe fn load_pipeline_cache(data: &[u8]) -> Result<()>
Expand description
Merges a pipeline cache into the resources potentially making the creation of materials faster.
§Safety
Unsafe because vulkan blindly trusts that this data comes from the get_pipeline_binary
function.
The program will panic if the data provided is not right.
The binary given to the function must be made with the same hardware and vulkan driver version.