VkPipelineBinaryInfoKHR
The VkPipelineBinaryInfoKHR
structure is defined as:
typedef struct VkPipelineBinaryInfoKHR {
VkStructureType sType;
const void* pNext;
uint32_t binaryCount;
const VkPipelineBinaryKHR* pPipelineBinaries;
} VkPipelineBinaryInfoKHR;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.binaryCount
is the number of elements in thepPipelineBinaries
array.pPipelineBinaries
is a pointer to an array of VkPipelineBinaryKHR handles.
If a VkPipelineBinaryInfoKHR
structure with a binaryCount
greater than 0 is included in the pNext
chain of any
Vk*PipelineCreateInfo
structure when creating a pipeline,
implementations must use the data in pPipelineBinaries
instead of
recalculating it.
Any shader module identifiers or shader modules declared in
VkPipelineShaderStageCreateInfo instances are ignored.
If this structure is not included in the pNext
chain, it is equivalent
to specifying this structure with a binaryCount
of 0
.
Valid Usage
VUID-VkPipelineBinaryInfoKHR-binaryCount-09603
binaryCount
and the order of the elements in
pPipelineBinaries
must exactly match that returned by
vkCreatePipelineBinariesKHR for the matching
Vk*PipelineCreateInfo
structure and its pNext
chain,
ignoring the presence of the VkPipelineBinaryInfoKHR
structure,
the presence of the VK_PIPELINE_CREATE_2_CAPTURE_DATA_BIT_KHR
flag, and absence of any shader module identifiers or shader modules,
for the same global pipeline key, from either:- VkPipelineBinaryCreateInfoKHR::pPipelineCreateInfo
, or
- VkPipelineBinaryCreateInfoKHR::
pipeline
::
Valid Usage (Implicit)
VUID-VkPipelineBinaryInfoKHR-sType-sType
sType
must be VK_STRUCTURE_TYPE_PIPELINE_BINARY_INFO_KHR
VUID-VkPipelineBinaryInfoKHR-pPipelineBinaries-parameter
If binaryCount
is not 0
, pPipelineBinaries
must be a valid pointer to an array of binaryCount
valid VkPipelineBinaryKHR handles
::