Skip to main content

get_pipeline_cache_data

Function get_pipeline_cache_data 

Source
pub unsafe fn get_pipeline_cache_data(
    device: &Device,
    pipeline_cache: PipelineCache,
) -> Result<Vec<u8>, CallError>
Expand description

Call vkGetPipelineCacheData using this context’s cached function pointer.

§Errors

Reports a missing command, invalid slice lengths/counts or a native error.

§Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkGetPipelineCacheData valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Retries incomplete/growing results with a bounded budget; returns an error if the query does not stabilize. Allocates the returned vector.

Khronos reference: vkGetPipelineCacheData