VkDescriptorGetInfoEXT(3)
C Specification
Information about the descriptor to get is passed in a
VkDescriptorGetInfoEXT structure:
// Provided by VK_EXT_descriptor_buffer
typedef struct VkDescriptorGetInfoEXT {
VkStructureType sType;
const void* pNext;
VkDescriptorType type;
VkDescriptorDataEXT data;
} VkDescriptorGetInfoEXT;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
typeis the type of descriptor to get. -
datais a VkDescriptorDataEXT union containing the information needed to get the descriptor.
Description
-
VUID-VkDescriptorGetInfoEXT-type-08018
typemust not beVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC,VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMICorVK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK -
VUID-VkDescriptorGetInfoEXT-type-08019
IftypeisVK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, thepCombinedImageSampler->samplermember ofdatamust be a VkSampler created ondevice -
VUID-VkDescriptorGetInfoEXT-type-08020
IftypeisVK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, thepCombinedImageSampler->imageViewmember ofdatamust be a VkImageView created ondevice, or VK_NULL_HANDLE -
VUID-VkDescriptorGetInfoEXT-type-08021
IftypeisVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, thepInputAttachmentImage->imageViewmember ofdatamust be a VkImageView created ondevice -
VUID-VkDescriptorGetInfoEXT-type-08022
IftypeisVK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, and ifpSampledImageis notNULL, thepSampledImage->imageViewmember ofdatamust be a VkImageView created ondevice, or VK_NULL_HANDLE -
VUID-VkDescriptorGetInfoEXT-type-08023
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_IMAGE, and ifpStorageImageis notNULL, thepStorageImage->imageViewmember ofdatamust be a VkImageView created ondevice, or VK_NULL_HANDLE -
VUID-VkDescriptorGetInfoEXT-type-08024
IftypeisVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER,pUniformTexelBufferis notNULLandpUniformTexelBuffer->addressis not zero,pUniformTexelBuffer->addressmust be an address within a VkBuffer created ondevice -
VUID-VkDescriptorGetInfoEXT-type-08025
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER,pStorageTexelBufferis notNULLandpStorageTexelBuffer->addressis not zero,pStorageTexelBuffer->addressmust be an address within a VkBuffer created ondevice -
VUID-VkDescriptorGetInfoEXT-type-08026
IftypeisVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER,pUniformBufferis notNULLandpUniformBuffer->addressis not zero,pUniformBuffer->addressmust be an address within a VkBuffer created ondevice -
VUID-VkDescriptorGetInfoEXT-type-08027
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_BUFFER,pStorageBufferis notNULLandpStorageBuffer->addressis not zero,pStorageBuffer->addressmust be an address within a VkBuffer created ondevice -
VUID-VkDescriptorGetInfoEXT-type-09427
IftypeisVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER,pUniformBufferis notNULL, the number of texel buffer elements given by (⌊pUniformBuffer->range/ (texel block size)⌋ × (texels per block)) where texel block size and texels per block are as defined in the Compatible Formats table forpUniformBuffer->format, must be less than or equal toVkPhysicalDeviceLimits::maxTexelBufferElements -
VUID-VkDescriptorGetInfoEXT-type-09428
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER,pStorageBufferis notNULL, the number of texel buffer elements given by (⌊pStorageBuffer->range/ (texel block size)⌋ × (texels per block)) where texel block size and texels per block are as defined in the Compatible Formats table forpStorageBuffer->format, must be less than or equal toVkPhysicalDeviceLimits::maxTexelBufferElements -
VUID-VkDescriptorGetInfoEXT-type-08028
IftypeisVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHRandaccelerationStructureis not0,accelerationStructuremust contain the address of a VkAccelerationStructureKHR created ondevice -
VUID-VkDescriptorGetInfoEXT-type-08029
IftypeisVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NVandaccelerationStructureis not0,accelerationStructuremust contain the handle of a VkAccelerationStructureNV created ondevice, returned by vkGetAccelerationStructureHandleNV -
VUID-VkDescriptorGetInfoEXT-type-09701
IftypeisVK_DESCRIPTOR_TYPE_TENSOR_ARM, a VkDescriptorGetTensorInfoARM structure must be included in thepNextchain anddatais ignored -
VUID-VkDescriptorGetInfoEXT-type-12216
IftypeisVK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLERandpCombinedImageSampler->imageViewis not VK_NULL_HANDLE, thepCombinedImageSampler->imageViewmember ofdatamust have been created withVK_IMAGE_USAGE_SAMPLED_BITset -
VUID-VkDescriptorGetInfoEXT-type-12217
IftypeisVK_DESCRIPTOR_TYPE_SAMPLED_IMAGE,pSampledImageis notNULL, andpSampledImage->imageViewis not VK_NULL_HANDLE, thepSampledImage->imageViewmember ofdatamust have been created withVK_IMAGE_USAGE_SAMPLED_BITset -
VUID-VkDescriptorGetInfoEXT-type-12218
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_IMAGE,pStorageImageis notNULL, andpStorageImage->imageViewis not VK_NULL_HANDLE, thepStorageImage->imageViewmember ofdatamust have been created withVK_IMAGE_USAGE_STORAGE_BITset -
VUID-VkDescriptorGetInfoEXT-type-12219
IftypeisVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, thepInputAttachmentImage->imageViewmember ofdatamust have been created withVK_IMAGE_USAGE_INPUT_ATTACHMENT_BITset -
VUID-VkDescriptorGetInfoEXT-type-12220
IftypeisVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER,pUniformBufferis notNULLandpUniformBuffer->addressis not zero,pUniformBuffer->addressmust be a device address allocated to the application from a buffer created with theVK_BUFFER_USAGE_UNIFORM_BUFFER_BITusage flag set -
VUID-VkDescriptorGetInfoEXT-type-12221
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_BUFFER,pStorageBufferis notNULLandpStorageBuffer->addressis not zero,pStorageBuffer->addressmust be a device address allocated to the application from a buffer created with theVK_BUFFER_USAGE_STORAGE_BUFFER_BITusage flag set -
VUID-VkDescriptorGetInfoEXT-type-12222
IftypeisVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER,pUniformTexelBufferis notNULLandpUniformTexelBuffer->addressis not zero,pUniformTexelBuffer->addressmust be a device address allocated to the application from a buffer created with theVK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BITusage flag set -
VUID-VkDescriptorGetInfoEXT-type-12223
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER,pStorageTexelBufferis notNULLandpStorageTexelBuffer->addressis not zero,pStorageTexelBuffer->addressmust be a device address allocated to the application from a buffer created with theVK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BITusage flag set
-
VUID-VkDescriptorGetInfoEXT-sType-sType
sTypemust beVK_STRUCTURE_TYPE_DESCRIPTOR_GET_INFO_EXT -
VUID-VkDescriptorGetInfoEXT-pNext-pNext
pNextmust beNULLor a pointer to a valid instance of VkDescriptorGetTensorInfoARM -
VUID-VkDescriptorGetInfoEXT-sType-unique
ThesTypevalue of each structure in thepNextchain must be unique -
VUID-VkDescriptorGetInfoEXT-type-parameter
typemust be a valid VkDescriptorType value -
VUID-VkDescriptorGetInfoEXT-pSampler-parameter
IftypeisVK_DESCRIPTOR_TYPE_SAMPLER, thepSamplermember ofdatamust be a valid pointer to a valid VkSampler handle -
VUID-VkDescriptorGetInfoEXT-pCombinedImageSampler-parameter
IftypeisVK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, thepCombinedImageSamplermember ofdatamust be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pInputAttachmentImage-parameter
IftypeisVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, thepInputAttachmentImagemember ofdatamust be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pSampledImage-parameter
IftypeisVK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, and ifpSampledImageis notNULL, thepSampledImagemember ofdatamust be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pStorageImage-parameter
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_IMAGE, and ifpStorageImageis notNULL, thepStorageImagemember ofdatamust be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pUniformTexelBuffer-parameter
IftypeisVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, and ifpUniformTexelBufferis notNULL, thepUniformTexelBuffermember ofdatamust be a valid pointer to a valid VkDescriptorAddressInfoEXT structure -
VUID-VkDescriptorGetInfoEXT-pStorageTexelBuffer-parameter
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, and ifpStorageTexelBufferis notNULL, thepStorageTexelBuffermember ofdatamust be a valid pointer to a valid VkDescriptorAddressInfoEXT structure -
VUID-VkDescriptorGetInfoEXT-pUniformBuffer-parameter
IftypeisVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, and ifpUniformBufferis notNULL, thepUniformBuffermember ofdatamust be a valid pointer to a valid VkDescriptorAddressInfoEXT structure -
VUID-VkDescriptorGetInfoEXT-pStorageBuffer-parameter
IftypeisVK_DESCRIPTOR_TYPE_STORAGE_BUFFER, and ifpStorageBufferis notNULL, thepStorageBuffermember ofdatamust be a valid pointer to a valid VkDescriptorAddressInfoEXT structure -
VUID-VkDescriptorGetInfoEXT-accelerationStructure-parameter
IftypeisVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHRorVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV, theaccelerationStructuremember ofdatamust be a validVkDeviceAddressvalue
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.