Structures

VkWriteDescriptorSetAccelerationStructureKHR

Structure specifying acceleration structure descriptor information

The VkWriteDescriptorSetAccelerationStructureKHR structure is defined as:

typedef struct VkWriteDescriptorSetAccelerationStructureKHR {
    VkStructureType sType;
    const void* pNext;
    uint32_t accelerationStructureCount;
    const VkAccelerationStructureKHR* pAccelerationStructures;
} VkWriteDescriptorSetAccelerationStructureKHR;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • accelerationStructureCount is the number of elements in pAccelerationStructures.
  • pAccelerationStructures is a pointer to an array of VkAccelerationStructureKHR structures specifying the acceleration structures to update.

Valid Usage

VUID-VkWriteDescriptorSetAccelerationStructureKHR-accelerationStructureCount-02236

accelerationStructureCount must be equal to descriptorCount in the extended structure

VUID-VkWriteDescriptorSetAccelerationStructureKHR-pAccelerationStructures-03579

Each acceleration structure in pAccelerationStructures must have been created with a type of VK_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_KHR or VK_ACCELERATION_STRUCTURE_TYPE_GENERIC_KHR

VUID-VkWriteDescriptorSetAccelerationStructureKHR-pAccelerationStructures-03580

If the nullDescriptor feature is not enabled, each element of pAccelerationStructures must not be VK_NULL_HANDLE

Valid Usage (Implicit)

VUID-VkWriteDescriptorSetAccelerationStructureKHR-sType-sType

sType must be VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR

VUID-VkWriteDescriptorSetAccelerationStructureKHR-pAccelerationStructures-parameter

pAccelerationStructures must be a valid pointer to an array of accelerationStructureCount valid or VK_NULL_HANDLE VkAccelerationStructureKHR handles