C Specification
The VkPartitionedAccelerationStructureWriteInstanceDataNV structure is defined as:
// Provided by VK_NV_partitioned_acceleration_structure
typedef struct VkPartitionedAccelerationStructureWriteInstanceDataNV {
VkTransformMatrixKHR transform;
float explicitAABB[6];
uint32_t instanceID;
uint32_t instanceMask;
uint32_t instanceContributionToHitGroupIndex;
VkPartitionedAccelerationStructureInstanceFlagsNV instanceFlags;
uint32_t instanceIndex;
uint32_t partitionIndex;
VkDeviceAddress accelerationStructure;
} VkPartitionedAccelerationStructureWriteInstanceDataNV;
Members
-
transformis a VkTransformMatrixKHR structure describing the transformation to be applied to the instance in PTLAS. -
explicitAABBspecifies an axis aligned bounding box representing the maximum extent of any vertex within the used acceleration structure after applying the instance-to-world transformation. The partition translation is not applied to the bounding box. -
instanceIDis a user specified constant assigned to an instance in the PTLAS. -
instanceMaskis a 8-bit mask assigned to the instance that may be used to include or reject group of instances. -
instanceContributionToHitGroupIndexis a 24-bit per application specified instance value added in the indexing into the shader binding table to fetch the hit group to use. -
instanceFlagsis a bitmask of VkPartitionedAccelerationStructureInstanceFlagsNV specifying flags an instance in the PTLAS. -
instanceIndexis the index of the instance within the PTLAS. -
partitionIndexis the index of the partition to which this instance belongs. Global partitions are referred to byVK_PARTITIONED_ACCELERATION_STRUCTURE_PARTITION_INDEX_GLOBAL_NV. -
accelerationStructureis the device address of the bottom level acceleration structure or a clustered bottom level acceleration structure that is being instanced. This instance is disabled if the device address is0.
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.