pub struct AccelerationStructureIndirectUpdateInfo {
pub dst_accel_struct: AnyAccelerationStructureNode,
pub range_base: DeviceAddress,
pub range_stride: u32,
pub scratch_addr: DeviceOrHostAddress,
pub src_accel_struct: AnyAccelerationStructureNode,
pub update_data: AccelerationStructureGeometryInfo<AccelerationStructureGeometry>,
}Expand description
Specifies the information and data used to update an acceleration structure with some parameters sourced on the device.
See VkAccelerationStructureBuildGeometryInfoKHR for more information.
Fields§
§dst_accel_struct: AnyAccelerationStructureNodeThe acceleration structure to be written.
range_base: DeviceAddressA buffer device addresses which points to data.geometry.len()
[vk::VkAccelerationStructureBuildRangeInfoKHR] structures defining dynamic offsets to the
addresses where geometry data is stored.
range_stride: u32Byte stride between elements of [range].
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>Specifies the geometry data to use when building the acceleration structure.
Implementations§
Source§impl AccelerationStructureIndirectUpdateInfo
impl AccelerationStructureIndirectUpdateInfo
Sourcepub fn new(
src_accel_struct: impl Into<AnyAccelerationStructureNode>,
dst_accel_struct: impl Into<AnyAccelerationStructureNode>,
update_data: AccelerationStructureGeometryInfo<AccelerationStructureGeometry>,
range_base: DeviceAddress,
range_stride: u32,
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>, range_base: DeviceAddress, range_stride: u32, scratch_addr: impl Into<DeviceOrHostAddress>, ) -> Self
Constructs new acceleration structure indirect update information.
Trait Implementations§
Source§impl Clone for AccelerationStructureIndirectUpdateInfo
impl Clone for AccelerationStructureIndirectUpdateInfo
Source§fn clone(&self) -> AccelerationStructureIndirectUpdateInfo
fn clone(&self) -> AccelerationStructureIndirectUpdateInfo
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 AccelerationStructureIndirectUpdateInfo
impl RefUnwindSafe for AccelerationStructureIndirectUpdateInfo
impl Send for AccelerationStructureIndirectUpdateInfo
impl Sync for AccelerationStructureIndirectUpdateInfo
impl Unpin for AccelerationStructureIndirectUpdateInfo
impl UnwindSafe for AccelerationStructureIndirectUpdateInfo
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