pub struct AccelerationStructureBuildInfo {
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.
See VkAccelerationStructureBuildGeometryInfoKHR for more information.
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 AccelerationStructureBuildInfo
impl AccelerationStructureBuildInfo
Sourcepub fn new(
accel_struct: impl Into<AnyAccelerationStructureNode>,
build_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>,
scratch_addr: impl Into<DeviceOrHostAddress>,
) -> Self
pub fn new( accel_struct: impl Into<AnyAccelerationStructureNode>, build_data: AccelerationStructureGeometryInfo<(AccelerationStructureGeometry, AccelerationStructureBuildRangeInfoKHR)>, scratch_addr: impl Into<DeviceOrHostAddress>, ) -> Self
Constructs new acceleration structure build information.
Trait Implementations§
Source§impl Clone for AccelerationStructureBuildInfo
impl Clone for AccelerationStructureBuildInfo
Source§fn clone(&self) -> AccelerationStructureBuildInfo
fn clone(&self) -> AccelerationStructureBuildInfo
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 AccelerationStructureBuildInfo
impl RefUnwindSafe for AccelerationStructureBuildInfo
impl Send for AccelerationStructureBuildInfo
impl Sync for AccelerationStructureBuildInfo
impl Unpin for AccelerationStructureBuildInfo
impl UnwindSafe for AccelerationStructureBuildInfo
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