pub struct AccelerationStructureUpdateInfo {
pub dst_accel_struct: AnyAccelerationStructureNode,
pub scratch_addr: DeviceOrHostAddress,
pub src_accel_struct: AnyAccelerationStructureNode,
pub update_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>,
}Expand description
Specifies the information and data used to update an acceleration structure.
See VkAccelerationStructureBuildGeometryInfoKHR for more information.
Fields§
§dst_accel_struct: AnyAccelerationStructureNodeThe acceleration structure to be written.
scratch_addr: DeviceOrHostAddressThe temporary buffer or host address (with enough capacity per AccelerationStructure::size_of).
src_accel_struct: AnyAccelerationStructureNodeThe source acceleration structure to be read.
update_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>Specifies the geometry data to use when updating the acceleration structure.
Implementations§
Source§impl AccelerationStructureUpdateInfo
impl AccelerationStructureUpdateInfo
Sourcepub fn new(
src_accel_struct: impl Into<AnyAccelerationStructureNode>,
dst_accel_struct: impl Into<AnyAccelerationStructureNode>,
update_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>,
scratch_addr: impl Into<DeviceOrHostAddress>,
) -> Self
pub fn new( src_accel_struct: impl Into<AnyAccelerationStructureNode>, dst_accel_struct: impl Into<AnyAccelerationStructureNode>, update_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>, scratch_addr: impl Into<DeviceOrHostAddress>, ) -> Self
Constructs new acceleration structure update information.
Trait Implementations§
Source§impl Clone for AccelerationStructureUpdateInfo
impl Clone for AccelerationStructureUpdateInfo
Source§fn clone(&self) -> AccelerationStructureUpdateInfo
fn clone(&self) -> AccelerationStructureUpdateInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AccelerationStructureUpdateInfo
impl RefUnwindSafe for AccelerationStructureUpdateInfo
impl Send for AccelerationStructureUpdateInfo
impl Sync for AccelerationStructureUpdateInfo
impl Unpin for AccelerationStructureUpdateInfo
impl UnwindSafe for AccelerationStructureUpdateInfo
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