pub struct BuildAccelerationStructureDescriptor<'a, A: Api> {
pub entries: &'a AccelerationStructureEntries<'a, A>,
pub mode: AccelerationStructureBuildMode,
pub flags: AccelerationStructureBuildFlags,
pub source_acceleration_structure: Option<&'a A::AccelerationStructure>,
pub destination_acceleration_structure: &'a A::AccelerationStructure,
pub scratch_buffer: &'a A::Buffer,
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, A>
§mode: AccelerationStructureBuildMode
§flags: AccelerationStructureBuildFlags
§source_acceleration_structure: Option<&'a A::AccelerationStructure>
§destination_acceleration_structure: &'a A::AccelerationStructure
§scratch_buffer: &'a A::Buffer
§scratch_buffer_offset: BufferAddress
Trait Implementations§
Source§impl<'a, A: Clone + Api> Clone for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A: Clone + Api> Clone for BuildAccelerationStructureDescriptor<'a, A>
Source§fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, A>
fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, 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, A> Freeze for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> RefUnwindSafe for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> Send for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> Sync for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> Unpin for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> UnwindSafe for BuildAccelerationStructureDescriptor<'a, 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
)