Struct sierra::AccelerationStructureInfo
source · pub struct AccelerationStructureInfo {
pub level: AccelerationStructureLevel,
pub region: BufferRange,
}
Expand description
Information required to create an instance of AccelerationStructure
.
Fields§
§level: AccelerationStructureLevel
Acceleration structure level. Either top level that reference to bottom level structures. Or bottom level that refer to geometry.
region: BufferRange
Region of the buffer that will be used to store AccelerationStructure
.
Buffer must be created with ACCELERATION_STRUCTURE_STORAGE
usage flag.
required size can be queried using Device::get_acceleration_structure_build_sizes
Trait Implementations§
source§impl Clone for AccelerationStructureInfo
impl Clone for AccelerationStructureInfo
source§fn clone(&self) -> AccelerationStructureInfo
fn clone(&self) -> AccelerationStructureInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more