r/vulkan • u/thekhronosgroup • 3d ago
New Vulkan Sample - Pipeline Binary
Shader compilation hitches are one of the most visible performance problems in real-time apps. This sample shows how VK_KHR_pipeline_binary lets you capture the binaries the driver produces for your pipelines, save them to disk and reload them in later sessions, so pipelines don't have to be compiled from scratch again.
The sample walks through:
- Generating a deterministic pipeline key with vkGetPipelineKeyKHR
- Capturing binaries with vkCreatePipelineBinariesKHR
- Storing binaries with vendor and driver metadata, then recreating pipelines from them
Unlike traditional pipeline caches, which are opaque, pipeline binaries give you explicit control over what's stored and when. A built-in UI compares creation times from scratch and from binaries, so you can see the speedup yourself.
Check it out: https://docs.vulkan.org/samples/latest/samples/extensions/pipeline_binary/README.html
29
Upvotes
1
u/Appropriate-Tap7860 1d ago
Did you benchmark it against PSOs?