VkPhysicalDeviceAccelerationStructurePropertiesKHR
The VkPhysicalDeviceAccelerationStructurePropertiesKHR structure is
defined as:
typedef struct VkPhysicalDeviceAccelerationStructurePropertiesKHR {
VkStructureType sType;
void* pNext;
uint64_t maxGeometryCount;
uint64_t maxInstanceCount;
uint64_t maxPrimitiveCount;
uint32_t maxPerStageDescriptorAccelerationStructures;
uint32_t maxPerStageDescriptorUpdateAfterBindAccelerationStructures;
uint32_t maxDescriptorSetAccelerationStructures;
uint32_t maxDescriptorSetUpdateAfterBindAccelerationStructures;
uint32_t minAccelerationStructureScratchOffsetAlignment;
} VkPhysicalDeviceAccelerationStructurePropertiesKHR;
pub struct PhysicalDeviceAccelerationStructurePropertiesKHR {
s_type: vk::StructureType,
p_next: *mut c_void,
max_geometry_count: u64,
max_instance_count: u64,
max_primitive_count: u64,
max_per_stage_descriptor_acceleration_structures: u32,
max_per_stage_descriptor_update_after_bind_acceleration_structures: u32,
max_descriptor_set_acceleration_structures: u32,
max_descriptor_set_update_after_bind_acceleration_structures: u32,
min_acceleration_structure_scratch_offset_alignment: u32,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.- LIMITS MAXGEOMETRYCOUNT
maxGeometryCountis the maximum number of geometries in the bottom level acceleration structure. - LIMITS MAXINSTANCECOUNT
maxInstanceCountis the maximum number of instances in the top level acceleration structure. - LIMITS MAXPRIMITIVECOUNT
maxPrimitiveCountis the maximum number of triangles or AABBs in all geometries in the bottom level acceleration structure. - LIMITS MAXPERSTAGEDESCRIPTORACCELERATIONSTRUCTURES
maxPerStageDescriptorAccelerationStructuresis the maximum number of acceleration structure bindings that can be accessible to a single shader stage in a pipeline layout. Descriptor bindings with a descriptor type ofVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHRcount against this limit. Only descriptor bindings in descriptor set layouts created without theVK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BITbit set count against this limit. - LIMITS MAXPERSTAGEDESCRIPTORUPDATEAFTERBINDACCELERATIONSTRUCTURES
maxPerStageDescriptorUpdateAfterBindAccelerationStructuresis similar tomaxPerStageDescriptorAccelerationStructuresbut counts descriptor bindings from descriptor sets created with or without theVK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BITbit set. - LIMITS MAXDESCRIPTORSETACCELERATIONSTRUCTURES
maxDescriptorSetAccelerationStructuresis the maximum number of acceleration structure descriptors that can be included in descriptor bindings in a pipeline layout across all pipeline shader stages and descriptor set numbers. Descriptor bindings with a descriptor type ofVK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHRcount against this limit. Only descriptor bindings in descriptor set layouts created without theVK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BITbit set count against this limit. - LIMITS MAXDESCRIPTORSETUPDATEAFTERBINDACCELERATIONSTRUCTURES
maxDescriptorSetUpdateAfterBindAccelerationStructuresis similar tomaxDescriptorSetAccelerationStructuresbut counts descriptor bindings from descriptor sets created with or without theVK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BITbit set. - LIMITS MINACCELERATIONSTRUCTURESCRATCHOFFSETALIGNMENT
minAccelerationStructureScratchOffsetAlignmentis the minimum required alignment, in bytes, for scratch data passed in to an acceleration structure build command. The value must be a power of two.
Due to the fact that the geometry, instance, and primitive counts are
specified at acceleration structure creation as 32-bit values,
maxGeometryCount,
maxInstanceCount, and
maxPrimitiveCount must not exceed
232-1.
If the VkPhysicalDeviceAccelerationStructurePropertiesKHR structure is included in the pNext chain of the
VkPhysicalDeviceProperties2 structure passed to
vkGetPhysicalDeviceProperties2, it is filled in with each
corresponding implementation-dependent property.
Limits specified by this structure must match those specified with the same name in VkPhysicalDeviceRayTracingPropertiesNV.
Valid Usage (Implicit)
VUID-VkPhysicalDeviceAccelerationStructurePropertiesKHR-sType-sType
sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR