#[repr(u8)]pub enum AccelerationStructureUpdateMode {
Build = 0,
PreferUpdate = 1,
}
Expand description
Update mode for acceleration structure builds.
Variants§
Build = 0
Always perform a full build.
PreferUpdate = 1
If possible, perform an incremental update.
Not advised for major topology changes. (Useful for e.g. skinning)
Trait Implementations§
source§impl Clone for AccelerationStructureUpdateMode
impl Clone for AccelerationStructureUpdateMode
source§fn clone(&self) -> AccelerationStructureUpdateMode
fn clone(&self) -> AccelerationStructureUpdateMode
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<'de> Deserialize<'de> for AccelerationStructureUpdateMode
impl<'de> Deserialize<'de> for AccelerationStructureUpdateMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for AccelerationStructureUpdateMode
impl PartialEq for AccelerationStructureUpdateMode
source§fn eq(&self, other: &AccelerationStructureUpdateMode) -> bool
fn eq(&self, other: &AccelerationStructureUpdateMode) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for AccelerationStructureUpdateMode
impl Eq for AccelerationStructureUpdateMode
impl StructuralPartialEq for AccelerationStructureUpdateMode
Auto Trait Implementations§
impl Freeze for AccelerationStructureUpdateMode
impl RefUnwindSafe for AccelerationStructureUpdateMode
impl Send for AccelerationStructureUpdateMode
impl Sync for AccelerationStructureUpdateMode
impl Unpin for AccelerationStructureUpdateMode
impl UnwindSafe for AccelerationStructureUpdateMode
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
)