Structures

VkPipelineBinaryKeyKHR

Structure specifying a key to a pipeline binary

The VkPipelineBinaryKeyKHR structure is defined as:

typedef struct VkPipelineBinaryKeyKHR {
    VkStructureType sType;
    void* pNext;
    uint32_t keySize;
    uint8_t key[VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR];
} VkPipelineBinaryKeyKHR;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • keySize is the size, in bytes, of valid data returned in key.
  • key is a buffer of opaque data specifying a pipeline binary key.

Any returned values beyond the first keySize bytes are undefined:. Implementations must return a keySize greater than 0, and less-or-equal to VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR.

Two keys are considered equal if keySize is equal and the first keySize bytes of key compare equal.

Implementations may return a different keySize for different binaries.

Implementations should ensure that keySize is large enough to uniquely identify a pipeline binary.

Valid Usage (Implicit)

VUID-VkPipelineBinaryKeyKHR-sType-sType

sType must be VK_STRUCTURE_TYPE_PIPELINE_BINARY_KEY_KHR