pub struct AccelerationStructureIndirectBuildInfo {
pub accel_struct: AnyAccelerationStructureNode,
pub build_data: AccelerationStructureGeometryInfo<AccelerationStructureGeometry>,
pub range_base: DeviceAddress,
pub range_stride: u32,
pub scratch_data: DeviceOrHostAddress,
}Expand description
Specifies the information and data used to build an acceleration structure with some parameters sourced on the device.
See VkAccelerationStructureBuildGeometryInfoKHR for more information.
Fields§
§accel_struct: AnyAccelerationStructureNodeThe acceleration structure to be written.
build_data: AccelerationStructureGeometryInfo<AccelerationStructureGeometry>Specifies the geometry data to use when building the acceleration structure.
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_data: DeviceOrHostAddressThe temporary buffer or host address (with enough capacity per AccelerationStructure::size_of).
Implementations§
Source§impl AccelerationStructureIndirectBuildInfo
impl AccelerationStructureIndirectBuildInfo
Sourcepub fn new(
accel_struct: impl Into<AnyAccelerationStructureNode>,
build_data: AccelerationStructureGeometryInfo<AccelerationStructureGeometry>,
range_base: DeviceAddress,
range_stride: u32,
scratch_data: impl Into<DeviceOrHostAddress>,
) -> Self
pub fn new( accel_struct: impl Into<AnyAccelerationStructureNode>, build_data: AccelerationStructureGeometryInfo<AccelerationStructureGeometry>, range_base: DeviceAddress, range_stride: u32, scratch_data: impl Into<DeviceOrHostAddress>, ) -> Self
Constructs new acceleration structure indirect build information.
Trait Implementations§
Source§impl Clone for AccelerationStructureIndirectBuildInfo
impl Clone for AccelerationStructureIndirectBuildInfo
Source§fn clone(&self) -> AccelerationStructureIndirectBuildInfo
fn clone(&self) -> AccelerationStructureIndirectBuildInfo
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 AccelerationStructureIndirectBuildInfo
impl RefUnwindSafe for AccelerationStructureIndirectBuildInfo
impl Send for AccelerationStructureIndirectBuildInfo
impl Sync for AccelerationStructureIndirectBuildInfo
impl Unpin for AccelerationStructureIndirectBuildInfo
impl UnwindSafe for AccelerationStructureIndirectBuildInfo
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