pub enum AccelerationStructureGeometryData {
AABBs {
stride: DeviceSize,
},
Instances {
array_of_pointers: bool,
data: DeviceOrHostAddress,
},
Triangles {
index_data: DeviceOrHostAddress,
index_type: IndexType,
max_vertex: u32,
transform_data: Option<DeviceOrHostAddress>,
vertex_data: DeviceOrHostAddress,
vertex_format: Format,
vertex_stride: DeviceSize,
},
}Expand description
Specifies acceleration structure geometry data.
See VkAccelerationStructureGeometryDataKHR for more information.
Variants
AABBs
Fields
stride: DeviceSizeStride in bytes between each entry in data.
The stride must be a multiple of 8.
Axis-aligned bounding box geometry in a bottom-level acceleration structure.
See VkAccelerationStructureGeometryAabbsDataKHR for more information.
Instances
Fields
array_of_pointers: boolSpecifies whether data is used as an array of addresses or just an array.
data: DeviceOrHostAddressEither the address of an array of device referencing individual
VkAccelerationStructureInstanceKHR structures or packed motion instance information as
described in
motion instances
if array_of_pointers is true, or the address of an array of
VkAccelerationStructureInstanceKHR structures.
Addresses and VkAccelerationStructureInstanceKHR structures are tightly packed.
Geometry consisting of instances of other acceleration structures.
See VkAccelerationStructureGeometryInstancesDataKHR for more information.
Triangles
Fields
index_data: DeviceOrHostAddressA device or host address to memory containing index data for this geometry.
index_type: IndexTypeThe VkIndexType of each index element.
max_vertex: u32The highest index of a vertex that will be addressed by a build command using this structure.
transform_data: Option<DeviceOrHostAddress>A device or host address to memory containing an optional reference to a VkTransformMatrixKHR structure describing a transformation from the space in which the vertices in this geometry are described to the space in which the acceleration structure is defined.
vertex_data: DeviceOrHostAddressA device or host address to memory containing vertex data for this geometry.
vertex_stride: DeviceSizeThe stride in bytes between each vertex.
A triangle geometry in a bottom-level acceleration structure.
See VkAccelerationStructureGeometryTrianglesDataKHR for more information.
Trait Implementations
sourceimpl Clone for AccelerationStructureGeometryData
impl Clone for AccelerationStructureGeometryData
sourcefn clone(&self) -> AccelerationStructureGeometryData
fn clone(&self) -> AccelerationStructureGeometryData
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more