VkPipelineCache
VkPipelineCache is a Vulkan object that caches VkPipeline objects. It allows applications to store and retrieve pre-compiled pipeline state objects, which can significantly reduce application startup times and improve performance, especially when creating many pipelines.
A VkPipelineCache is created using vkCreatePipelineCache and destroyed with vkDestroyPipelineCache. It can be created empty, or
When creating a VkPipeline object using vkCreateGraphicsPipelines or vkCreateComputePipelines, an application can provide a VkPipelineCache object.
The cache can be serialized to a binary format, allowing it to be saved to disk and
Using VkPipelineCache effectively requires careful consideration of when and how to create, load, and save caches.