vkGetShaderModuleIdentifierEXT
Shader modules have unique identifiers associated with them. To query an implementation provided identifier, call:
void vkGetShaderModuleIdentifierEXT(
VkDevice device,
VkShaderModule shaderModule,
VkShaderModuleIdentifierEXT* pIdentifier);
deviceis the logical device that created the shader module.shaderModuleis the handle of the shader module.pIdentifieris a pointer to the returned VkShaderModuleIdentifierEXT.
The identifier returned by the implementation must only depend on
shaderIdentifierAlgorithmUUID and information provided in the
VkShaderModuleCreateInfo which created shaderModule.
The implementation may return equal identifiers for two different
VkShaderModuleCreateInfo structures if the difference does not affect
pipeline compilation.
Identifiers are only meaningful on different VkDevice objects if the
device the identifier was queried from had the same
shaderModuleIdentifierAlgorithmUUID as the device consuming the
identifier.
Valid Usage
VUID-vkGetShaderModuleIdentifierEXT-shaderModuleIdentifier-06884
shaderModuleIdentifier
feature must be enabled
Valid Usage (Implicit)
VUID-vkGetShaderModuleIdentifierEXT-device-parameter
device must be a valid VkDevice handle
VUID-vkGetShaderModuleIdentifierEXT-shaderModule-parameter
shaderModule must be a valid VkShaderModule handle
VUID-vkGetShaderModuleIdentifierEXT-pIdentifier-parameter
pIdentifier must be a valid pointer to a VkShaderModuleIdentifierEXT structure
VUID-vkGetShaderModuleIdentifierEXT-shaderModule-parent
shaderModule must have been created, allocated, or retrieved from device