Enum
VkAccelerationStructureTypeKHR
Type of acceleration structure
Values which can be set in
VkAccelerationStructureCreateInfoKHR::type
or
VkAccelerationStructureInfoNV::type
specifying the type of acceleration structure, are:
typedef enum VkAccelerationStructureTypeKHR {
VK_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_KHR = 0,
VK_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL_KHR = 1,
VK_ACCELERATION_STRUCTURE_TYPE_GENERIC_KHR = 2,
} VkAccelerationStructureTypeKHR;
pub struct AccelerationStructureTypeKHR(u32);
impl AccelerationStructureTypeKHR {
pub const TOP_LEVEL: Self = 0;
pub const BOTTOM_LEVEL: Self = 1;
pub const GENERIC: Self = 2;
}
#define VkAccelerationStructureTypeNV VkAccelerationStructureTypeKHR
const AccelerationStructureTypeNV: _ = vk::AccelerationStructureTypeKHR;
VK_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_KHRis a top-level acceleration structure containing instance data referring to bottom-level acceleration structures.VK_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL_KHRis a bottom-level acceleration structure containing the AABBs or geometry to be intersected.VK_ACCELERATION_STRUCTURE_TYPE_GENERIC_KHRis an acceleration structure whose type is determined at build time used for special circumstances. In these cases, the acceleration structure type is not known at creation time, but must be specified at build time as either top or bottom.
Type
Enum