C Specification
The VkPipelineCacheCreateInfo structure is defined as:
// Provided by VK_VERSION_1_0
typedef struct VkPipelineCacheCreateInfo {
VkStructureType sType;
const void* pNext;
VkPipelineCacheCreateFlags flags;
size_t initialDataSize;
const void* pInitialData;
} VkPipelineCacheCreateInfo;
Members
-
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. -
pInitialDatais a pointer to pipeline cache data that has been generated offline. If the pipeline cache data is incompatible (as defined below) with the device,VK_ERROR_INVALID_PIPELINE_CACHE_DATAis returned. IfVK_PIPELINE_CACHE_CREATE_USE_APPLICATION_STORAGE_BITis set inflags,pInitialDatamay only be accessed by the implementation during commands using the VkPipelineCache object.
Description
|
Note
|
If ename:VK_PIPELINE_CACHE_CREATE_USE_APPLICATION_STORAGE_BIT is set the memory pointed to by pname:pInitialData can: be modified or released by the application only after any pipeline cache objects created using it have been destroyed. |
Document Notes
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.