Vulkan Productivity Feature: Shader Validation Caching

Shader validation caching is a feature recently added to the Vulkan Validation Layers. It is useful because it avoids the delays involved in re-validating shaders that have already been previously validated.

Shader validation caching works by keeping a file with a hash of all shaders that have been validated by the current version of the spirv-tools shader validation code. When a Vulkan application runs with validation at CreateShaderModule time, if the hash of the shader about to be validated is in the shader validation cache file, the validation layer skips validating that shader. If the hash of the shader is not in the cache, the shader is validated, and if no problems are found, the hash of the shader is added to the cache and written to the cache file at the end of execution.

Shader validation caching is enabled by default. It can be disabled by setting VK_VALIDATION_FEATURE_DISABLE_SHADER_VALIDATION_CACHE_EXT programmatically, or in a vk_layer_settiings.txt file. The Vulkan Configurator (VkConfig) can also be used to disable it.

Featured Post

  • All Posts
  • Announcements
  • Blog
  • Presentations
  • White Papers

Latest Posts

  • All Posts
  • Announcements
  • Blog
  • Presentations
  • White Papers

LunarG Email List

Join our email list to receive important news about Vulkan SDK releases, ecosystem surveys, and more.

You have been successfully subscribed! Oops! Something went wrong, please try again.
Edit Template

Partner with LunarG to do impossible things.

The complexity of GPU software development is relentless, but every “unsolvable” problem that comes up is really an opportunity to create a stronger product.

We believe collaboration is one of the great benefits and opportunities of being part of the visual computing community, and our strength is in our shared expertise. While we focus on your GPU coding issues, you can focus on creating unforgettable visual experiences.

Together, we’ll unlock the full power and potential of today’s GPU’s to surpass your customers’ expectations. 
Successful Software Project
Edit Template

GPU software development teams often run into roadblocks they can’t move on their own. LunarG is the industry’s leading problem-solving partner for GPU programming. We provide the tools, expertise, and passion you need to keep moving forward and deliver innovative, quality products. Let us know how we can help your next project succeed.

LunarG Email List

Join our email list to receive important news about Vulkan SDK releases, ecosystem surveys, and more.

You have been successfully subscribed! Oops! Something went wrong, please try again.

© 2025 LunarG, Inc. All Rights Reserved.   |   Privacy   |   Terms   |    Follow LunarG