pub struct BuildAccelerationStructureInfo {
pub accel_struct: AnyAccelerationStructureNode,
pub build_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>,
pub scratch_addr: DeviceOrHostAddress,
}Expand description
Specifies the information and data used to build an acceleration structure.
Fields§
§accel_struct: AnyAccelerationStructureNodeThe acceleration structure to be written.
build_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>Specifies the geometry data to use when building the acceleration structure.
scratch_addr: DeviceOrHostAddressThe temporary buffer or host address (with enough capacity per
AccelerationStructure::size_of).
Implementations§
Source§impl BuildAccelerationStructureInfo
impl BuildAccelerationStructureInfo
Sourcepub fn new(
accel_struct: impl Into<AnyAccelerationStructureNode>,
scratch_addr: impl Into<DeviceOrHostAddress>,
build_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>,
) -> Self
pub fn new( accel_struct: impl Into<AnyAccelerationStructureNode>, scratch_addr: impl Into<DeviceOrHostAddress>, build_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>, ) -> Self
Constructs new acceleration structure build information.
Trait Implementations§
Source§impl Clone for BuildAccelerationStructureInfo
impl Clone for BuildAccelerationStructureInfo
Source§fn clone(&self) -> BuildAccelerationStructureInfo
fn clone(&self) -> BuildAccelerationStructureInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BuildAccelerationStructureInfo
impl RefUnwindSafe for BuildAccelerationStructureInfo
impl Send for BuildAccelerationStructureInfo
impl Sync for BuildAccelerationStructureInfo
impl Unpin for BuildAccelerationStructureInfo
impl UnsafeUnpin for BuildAccelerationStructureInfo
impl UnwindSafe for BuildAccelerationStructureInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more