wgpu

Type Alias CreateBlasDescriptor

Source
pub type CreateBlasDescriptor<'a> = CreateBlasDescriptor<Label<'a>>;
Expand description

Descriptor to create bottom level acceleration structures.

Aliased Type§

struct CreateBlasDescriptor<'a> {
    pub label: Option<&'a str>,
    pub flags: AccelerationStructureFlags,
    pub update_mode: AccelerationStructureUpdateMode,
}

Fields§

§label: Option<&'a str>

Label for the bottom level acceleration structure.

§flags: AccelerationStructureFlags

Flags for the bottom level acceleration structure.

§update_mode: AccelerationStructureUpdateMode

Update mode for the bottom level acceleration structure.

Implementations

Source§

impl<L> CreateBlasDescriptor<L>

Source

pub fn map_label<K>(&self, fun: impl FnOnce(&L) -> K) -> CreateBlasDescriptor<K>

Takes a closure and maps the label of the blas descriptor into another.

Trait Implementations

Source§

impl<L> Clone for CreateBlasDescriptor<L>
where L: Clone,

Source§

fn clone(&self) -> CreateBlasDescriptor<L>

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<L> Debug for CreateBlasDescriptor<L>
where L: Debug,

Source§

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

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

impl<'de, L> Deserialize<'de> for CreateBlasDescriptor<L>
where L: Deserialize<'de>,

Source§

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

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

impl<L> Hash for CreateBlasDescriptor<L>
where L: Hash,

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<L> PartialEq for CreateBlasDescriptor<L>
where L: PartialEq,

Source§

fn eq(&self, other: &CreateBlasDescriptor<L>) -> 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<L> Serialize for CreateBlasDescriptor<L>
where L: Serialize,

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<L> Eq for CreateBlasDescriptor<L>
where L: Eq,

Source§

impl<L> StructuralPartialEq for CreateBlasDescriptor<L>