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, A> Freeze for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B, A> RefUnwindSafe for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B, A> Send for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B, A> Sync for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B, A> Unpin for BuildAccelerationStructureDescriptor<'a, B, A>
impl<'a, B, A> UnwindSafe for BuildAccelerationStructureDescriptor<'a, B, A>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)