#[repr(i32)]pub enum BuildAccelerationStructureMode {
Build = 0,
Update(Arc<AccelerationStructure>),
}
Expand description
What mode an acceleration structure build command should operate in.
Variants§
Build = 0
Build a new acceleration structure from scratch.
Update(Arc<AccelerationStructure>)
Update a previously built source acceleration structure with new data, storing the updated structure in the destination. The source and destination acceleration structures may be the same, which will do the update in-place.
The destination acceleration structure must have been built with the
BuildAccelerationStructureFlags::ALLOW_UPDATE
flag.
Trait Implementations§
source§impl Clone for BuildAccelerationStructureMode
impl Clone for BuildAccelerationStructureMode
source§fn clone(&self) -> BuildAccelerationStructureMode
fn clone(&self) -> BuildAccelerationStructureMode
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 moresource§impl From<&BuildAccelerationStructureMode> for BuildAccelerationStructureModeKHR
impl From<&BuildAccelerationStructureMode> for BuildAccelerationStructureModeKHR
source§fn from(val: &BuildAccelerationStructureMode) -> Self
fn from(val: &BuildAccelerationStructureMode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BuildAccelerationStructureMode
impl Send for BuildAccelerationStructureMode
impl Sync for BuildAccelerationStructureMode
impl Unpin for BuildAccelerationStructureMode
impl !UnwindSafe for BuildAccelerationStructureMode
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