pub struct BuildAccelerationStructureDescriptor<'a, B: DynBuffer + ?Sized, A: DynAccelerationStructure + ?Sized> {
pub entries: &'a AccelerationStructureEntries<'a, B>,
pub mode: AccelerationStructureBuildMode,
pub flags: AccelerationStructureBuildFlags,
pub source_acceleration_structure: Option<&'a A>,
pub destination_acceleration_structure: &'a A,
pub scratch_buffer: &'a B,
pub scratch_buffer_offset: BufferAddress,
}
Expand description
Updates use source_acceleration_structure if present, else the update will be performed in place. For updates, only the data is allowed to change (not the meta data or sizes).
Fields§
§entries: &'a AccelerationStructureEntries<'a, B>
§mode: AccelerationStructureBuildMode
§flags: AccelerationStructureBuildFlags
§source_acceleration_structure: Option<&'a A>
§destination_acceleration_structure: &'a A
§scratch_buffer: &'a B
§scratch_buffer_offset: BufferAddress
Trait Implementations§
source§impl<'a, B: Clone + DynBuffer + ?Sized, A: Clone + DynAccelerationStructure + ?Sized> Clone for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B: Clone + DynBuffer + ?Sized, A: Clone + DynAccelerationStructure + ?Sized> Clone for BuildAccelerationStructureDescriptor<'a, B, A>
source§fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, B, A>
fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, B, A>
Returns a copy 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<'a, B: ?Sized, A: ?Sized> RefUnwindSafe for BuildAccelerationStructureDescriptor<'a, B, A>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<'a, B: ?Sized, A: ?Sized> Send for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B: ?Sized, A: ?Sized> Sync for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B: ?Sized, A: ?Sized> Unpin for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B: ?Sized, A: ?Sized> UnwindSafe for BuildAccelerationStructureDescriptor<'a, B, A>where
A: RefUnwindSafe,
B: RefUnwindSafe,
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