C Specification
The data graph pipeline cache header is defined as:
// Provided by VK_QCOM_data_graph_model
typedef struct VkPipelineCacheHeaderVersionDataGraphQCOM {
uint32_t headerSize;
VkPipelineCacheHeaderVersion headerVersion;
VkDataGraphModelCacheTypeQCOM cacheType;
uint32_t cacheVersion;
uint32_t toolchainVersion[VK_DATA_GRAPH_MODEL_TOOLCHAIN_VERSION_LENGTH_QCOM];
} VkPipelineCacheHeaderVersionDataGraphQCOM;
Members
-
headerSizeis the length in bytes of the pipeline cache header. -
headerVersionis a VkPipelineCacheHeaderVersion value specifying the version of the header. A consumer of the pipeline cache should use the cache version to interpret the remainder of the cache header.headerVersionmust be written as exactly 4 bytes. -
cacheTypeis the VkDataGraphModelCacheTypeQCOM type of data graph cache encoded in the data. -
cacheVersionis the version of the encoding of the data graph cache. -
toolchainVersionis a null-terminated UTF-8 string specifying the version of the compiler that built the data graph cache.
Description
The application should verify that the header info is compatible with the VkDataGraphProcessingEngineCreateInfoARM passed during pipeline creation. Implementations may return VK_PIPELINE_COMPILE_REQUIRED_EXT from vkCreateDataGraphPipelinesARM if the cache is not compatible.
|
Note
|
This cache type is built using offline compilation, therefore Vulkan does not define engine compatibility. The application should refer to the offline compiler used to create the cache for guidance on compatibility. |
Unlike most structures declared by the Vulkan API, all fields of this structure are written with the least significant byte first, regardless of host byte-order.
The C language specification does not define the packing of structure members. This layout assumes tight structure member packing, with members laid out in the order listed in the structure, and the intended size of the structure is 28 bytes. If a compiler produces code that diverges from that pattern, applications must employ another method to set values at the correct offsets.
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.