createValidationCacheEXT :: MonadIO io=> Devicedeviceis the logical device that creates the validation cache object.-> ValidationCacheCreateInfoEXTpCreateInfois a pointer to a ValidationCacheCreateInfoEXT structure containing the initial parameters for the validation cache object.->"allocator"
::: Maybe AllocationCallbackspAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.-> io ValidationCacheEXT
vkCreateValidationCacheEXT - Creates a new validation cache
Description
Applications can track and manage the total host memory size of a
validation cache object using the pAllocator. Applications can limit
the amount of data retrieved from a validation cache object in
getValidationCacheDataEXT. Implementations should not internally
limit the total number of entries added to a validation cache object or
the total host memory consumed.
Once created, a validation cache can be passed to the
createShaderModule command by adding this object
to the ShaderModuleCreateInfo structure’s pNext
chain. If a ShaderModuleValidationCacheCreateInfoEXT object is
included in the ShaderModuleCreateInfo::pNext
chain, and its validationCache field is not
NULL_HANDLE, the implementation will query
it for possible reuse opportunities and update it with new content. The
use of the validation cache object in these commands is internally
synchronized, and the same validation cache object can be used in
multiple threads simultaneously.
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 createShaderModule command.
Valid Usage (Implicit)
devicemust be a valid Device handle
pCreateInfomust be a valid pointer to a valid ValidationCacheCreateInfoEXT structureIf
pAllocatoris notNULL,pAllocatormust be a valid pointer to a valid AllocationCallbacks structurepValidationCachemust be a valid pointer to a ValidationCacheEXT handleThe device must have been created with at least
1queue
Return Codes
See Also
VK_EXT_validation_cache, AllocationCallbacks, Device, ValidationCacheCreateInfoEXT, ValidationCacheEXT