wgpu

Type Alias AccelerationStructureUpdateMode

Source
pub type AccelerationStructureUpdateMode = AccelerationStructureUpdateMode;
Expand description

Update mode for acceleration structure builds.

Aliased Type§

enum AccelerationStructureUpdateMode {
    Build = 0,
    PreferUpdate = 1,
}

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

Source§

fn clone(&self) -> AccelerationStructureUpdateMode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AccelerationStructureUpdateMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AccelerationStructureUpdateMode

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<AccelerationStructureUpdateMode, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for AccelerationStructureUpdateMode

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AccelerationStructureUpdateMode

Source§

fn eq(&self, other: &AccelerationStructureUpdateMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for AccelerationStructureUpdateMode

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for AccelerationStructureUpdateMode

Source§

impl Eq for AccelerationStructureUpdateMode

Source§

impl StructuralPartialEq for AccelerationStructureUpdateMode