VkPipelineCacheCreateInfo
The VkPipelineCacheCreateInfo structure is defined as:
typedef struct VkPipelineCacheCreateInfo {
VkStructureType sType;
const void* pNext;
VkPipelineCacheCreateFlags flags;
size_t initialDataSize;
const void* pInitialData;
} VkPipelineCacheCreateInfo;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.flagsis a bitmask of VkPipelineCacheCreateFlagBits specifying the behavior of the pipeline cache.initialDataSizeis the number of bytes inpInitialData. IfinitialDataSizeis zero, the pipeline cache will initially be empty.pInitialDatais a pointer to previously retrieved pipeline cache data. If the pipeline cache data is incompatible (as defined below) with the device, the pipeline cache will be initially empty. IfinitialDataSizeis zero,pInitialDatais ignored.
Valid Usage
VUID-VkPipelineCacheCreateInfo-initialDataSize-00768
If initialDataSize is not 0, it must be equal to the size of
pInitialData, as returned by vkGetPipelineCacheData when
pInitialData was originally retrieved
VUID-VkPipelineCacheCreateInfo-initialDataSize-00769
If initialDataSize is not 0, pInitialData must have been
retrieved from a previous call to vkGetPipelineCacheData
VUID-VkPipelineCacheCreateInfo-pipelineCreationCacheControl-02892
If the pipelineCreationCacheControl feature is not enabled, flagsmust not include
VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT
VUID-VkPipelineCacheCreateInfo-maintenance8-10200
If the maintenance8 feature is not
enabled, flags must not include
VK_PIPELINE_CACHE_CREATE_INTERNALLY_SYNCHRONIZED_MERGE_BIT_KHR
VUID-VkPipelineCacheCreateInfo-flags-10201
If flags includes
VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT, it must not
include
VK_PIPELINE_CACHE_CREATE_INTERNALLY_SYNCHRONIZED_MERGE_BIT_KHR
Valid Usage (Implicit)
VUID-VkPipelineCacheCreateInfo-sType-sType
sType must be VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO
VUID-VkPipelineCacheCreateInfo-pNext-pNext
pNext must be NULL
VUID-VkPipelineCacheCreateInfo-flags-parameter
flags must be a valid combination of VkPipelineCacheCreateFlagBits values
VUID-VkPipelineCacheCreateInfo-pInitialData-parameter
If initialDataSize is not 0, pInitialData must be a valid pointer to an array of initialDataSize bytes