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
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
type
is the type of descriptor to get. -
data
is a structure containing the information needed to get the descriptor.
Description
-
VUID-VkDescriptorGetInfoEXT-type-08018
type
must not beVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC
,VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC
orVK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK
-
VUID-VkDescriptorGetInfoEXT-type-08019
Iftype
isVK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
, thepCombinedImageSampler->sampler
member ofdata
must be a VkSampler created ondevice
-
VUID-VkDescriptorGetInfoEXT-type-08020
Iftype
isVK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
, thepCombinedImageSampler->imageView
member ofdata
must be a VkImageView created ondevice
, or VK_NULL_HANDLE -
VUID-VkDescriptorGetInfoEXT-type-08021
Iftype
isVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
, thepInputAttachmentImage->imageView
member ofdata
must be a VkImageView created ondevice
-
VUID-VkDescriptorGetInfoEXT-type-08022
Iftype
isVK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
, and ifpSampledImage
is notNULL
, thepSampledImage->imageView
member ofdata
must be a VkImageView created ondevice
, or VK_NULL_HANDLE -
VUID-VkDescriptorGetInfoEXT-type-08023
Iftype
isVK_DESCRIPTOR_TYPE_STORAGE_IMAGE
, and ifpStorageImage
is notNULL
, thepStorageImage->imageView
member ofdata
must be a VkImageView created ondevice
, or VK_NULL_HANDLE -
VUID-VkDescriptorGetInfoEXT-type-08024
Iftype
isVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER
,pUniformTexelBuffer
is notNULL
andpUniformTexelBuffer->address
is not zero,pUniformTexelBuffer->address
must be an address within a VkBuffer created ondevice
-
VUID-VkDescriptorGetInfoEXT-type-08025
Iftype
isVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
,pStorageTexelBuffer
is notNULL
andpStorageTexelBuffer->address
is not zero,pStorageTexelBuffer->address
must be an address within a VkBuffer created ondevice
-
VUID-VkDescriptorGetInfoEXT-type-08026
Iftype
isVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER
,pUniformBuffer
is notNULL
andpUniformBuffer->address
is not zero,pUniformBuffer->address
must be an address within a VkBuffer created ondevice
-
VUID-VkDescriptorGetInfoEXT-type-08027
Iftype
isVK_DESCRIPTOR_TYPE_STORAGE_BUFFER
,pStorageBuffer
is notNULL
andpStorageBuffer->address
is not zero,pStorageBuffer->address
must be an address within a VkBuffer created ondevice
-
VUID-VkDescriptorGetInfoEXT-type-09427
Iftype
isVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER
,pUniformBuffer
is 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
Iftype
isVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
,pStorageBuffer
is 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
Iftype
isVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
andaccelerationStructure
is not0
,accelerationStructure
must contain the address of a VkAccelerationStructureKHR created ondevice
-
VUID-VkDescriptorGetInfoEXT-type-08029
Iftype
isVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV
andaccelerationStructure
is not0
,accelerationStructure
must contain the handle of a VkAccelerationStructureNV created ondevice
, returned by vkGetAccelerationStructureHandleNV -
VUID-VkDescriptorGetInfoEXT-type-09701
Iftype
isVK_DESCRIPTOR_TYPE_TENSOR_ARM
, a VkDescriptorGetTensorInfoARM structure must be included in thepNext
chain anddata
is ignored
-
VUID-VkDescriptorGetInfoEXT-sType-sType
sType
must beVK_STRUCTURE_TYPE_DESCRIPTOR_GET_INFO_EXT
-
VUID-VkDescriptorGetInfoEXT-pNext-pNext
pNext
must beNULL
or a pointer to a valid instance of VkDescriptorGetTensorInfoARM -
VUID-VkDescriptorGetInfoEXT-sType-unique
ThesType
value of each structure in thepNext
chain must be unique -
VUID-VkDescriptorGetInfoEXT-type-parameter
type
must be a valid VkDescriptorType value -
VUID-VkDescriptorGetInfoEXT-pSampler-parameter
Iftype
isVK_DESCRIPTOR_TYPE_SAMPLER
, thepSampler
member ofdata
must be a valid pointer to a valid VkSampler handle -
VUID-VkDescriptorGetInfoEXT-pCombinedImageSampler-parameter
Iftype
isVK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
, thepCombinedImageSampler
member ofdata
must be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pInputAttachmentImage-parameter
Iftype
isVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
, thepInputAttachmentImage
member ofdata
must be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pSampledImage-parameter
Iftype
isVK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
, and ifpSampledImage
is notNULL
, thepSampledImage
member ofdata
must be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pStorageImage-parameter
Iftype
isVK_DESCRIPTOR_TYPE_STORAGE_IMAGE
, and ifpStorageImage
is notNULL
, thepStorageImage
member ofdata
must be a valid pointer to a valid VkDescriptorImageInfo structure -
VUID-VkDescriptorGetInfoEXT-pUniformTexelBuffer-parameter
Iftype
isVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER
, and ifpUniformTexelBuffer
is notNULL
, thepUniformTexelBuffer
member ofdata
must be a valid pointer to a valid VkDescriptorAddressInfoEXT structure -
VUID-VkDescriptorGetInfoEXT-pStorageTexelBuffer-parameter
Iftype
isVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
, and ifpStorageTexelBuffer
is notNULL
, thepStorageTexelBuffer
member ofdata
must be a valid pointer to a valid VkDescriptorAddressInfoEXT structure -
VUID-VkDescriptorGetInfoEXT-pUniformBuffer-parameter
Iftype
isVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER
, and ifpUniformBuffer
is notNULL
, thepUniformBuffer
member ofdata
must be a valid pointer to a valid VkDescriptorAddressInfoEXT structure -
VUID-VkDescriptorGetInfoEXT-pStorageBuffer-parameter
Iftype
isVK_DESCRIPTOR_TYPE_STORAGE_BUFFER
, and ifpStorageBuffer
is notNULL
, thepStorageBuffer
member ofdata
must be a valid pointer to a valid VkDescriptorAddressInfoEXT structure
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.