To create validation cache objects, call:
VkResult vkCreateValidationCacheEXT( VkDevice device, const VkValidationCacheCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkValidationCacheEXT* pValidationCache);
deviceis the logical device that creates the validation cache object.
pCreateInfois a pointer to a VkValidationCacheCreateInfoEXT structure containing the initial parameters for the validation cache object.
pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.
pValidationCacheis a pointer to a VkValidationCacheEXT handle in which the resulting validation cache object is returned.
Applications can track and manage the total host memory size of a
validation cache object using the
Once created, a validation cache can be passed to the
vkCreateShaderModule command by adding this object to the
If a VkShaderModuleValidationCacheCreateInfoEXT object is included in
pNext chain, and its
validationCache field is not VK_NULL_HANDLE, the implementation
will query it for possible reuse opportunities and update it with new
The use of the validation cache object in these commands is internally
synchronized, and the same validation cache object can be used in multiple
Implementations should make every effort to limit any critical sections to
the actual accesses to the cache, which is expected to be significantly
shorter than the duration of the
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.