Struct wgpu_types::CreateBlasDescriptor
source · #[repr(C)]pub struct CreateBlasDescriptor<L> {
pub label: L,
pub flags: AccelerationStructureFlags,
pub update_mode: AccelerationStructureUpdateMode,
}
Expand description
Descriptor for creating a bottom level acceleration structure.
Fields§
§label: L
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>
impl<L> CreateBlasDescriptor<L>
sourcepub fn map_label<K>(&self, fun: impl FnOnce(&L) -> K) -> CreateBlasDescriptor<K>
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> Clone for CreateBlasDescriptor<L>
impl<L: Clone> Clone for CreateBlasDescriptor<L>
source§fn clone(&self) -> CreateBlasDescriptor<L>
fn clone(&self) -> CreateBlasDescriptor<L>
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<L: Debug> Debug for CreateBlasDescriptor<L>
impl<L: Debug> Debug for CreateBlasDescriptor<L>
source§impl<'de, L> Deserialize<'de> for CreateBlasDescriptor<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for CreateBlasDescriptor<L>where
L: Deserialize<'de>,
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<L: Hash> Hash for CreateBlasDescriptor<L>
impl<L: Hash> Hash for CreateBlasDescriptor<L>
source§impl<L: PartialEq> PartialEq for CreateBlasDescriptor<L>
impl<L: PartialEq> PartialEq for CreateBlasDescriptor<L>
source§impl<L> Serialize for CreateBlasDescriptor<L>where
L: Serialize,
impl<L> Serialize for CreateBlasDescriptor<L>where
L: Serialize,
impl<L: Eq> Eq for CreateBlasDescriptor<L>
impl<L> StructuralPartialEq for CreateBlasDescriptor<L>
Auto Trait Implementations§
impl<L> Freeze for CreateBlasDescriptor<L>where
L: Freeze,
impl<L> RefUnwindSafe for CreateBlasDescriptor<L>where
L: RefUnwindSafe,
impl<L> Send for CreateBlasDescriptor<L>where
L: Send,
impl<L> Sync for CreateBlasDescriptor<L>where
L: Sync,
impl<L> Unpin for CreateBlasDescriptor<L>where
L: Unpin,
impl<L> UnwindSafe for CreateBlasDescriptor<L>where
L: UnwindSafe,
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
)