pub enum WgslContextMethod {
LocalId,
GlobalId,
WorkgroupId,
WorkgroupBarrier,
StorageBarrier,
AtomicAdd,
AtomicLoad,
AtomicStore,
}Expand description
WGSL context method that can be inlined.
Variants§
LocalId
Thread ID within workgroup.
GlobalId
Global thread ID.
WorkgroupId
Workgroup ID.
WorkgroupBarrier
Workgroup barrier.
StorageBarrier
Storage barrier.
AtomicAdd
Atomic add.
AtomicLoad
Atomic load.
AtomicStore
Atomic store.
Implementations§
Trait Implementations§
Source§impl Clone for WgslContextMethod
impl Clone for WgslContextMethod
Source§fn clone(&self) -> WgslContextMethod
fn clone(&self) -> WgslContextMethod
Returns a duplicate 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 Debug for WgslContextMethod
impl Debug for WgslContextMethod
Source§impl PartialEq for WgslContextMethod
impl PartialEq for WgslContextMethod
impl Copy for WgslContextMethod
impl Eq for WgslContextMethod
impl StructuralPartialEq for WgslContextMethod
Auto Trait Implementations§
impl Freeze for WgslContextMethod
impl RefUnwindSafe for WgslContextMethod
impl Send for WgslContextMethod
impl Sync for WgslContextMethod
impl Unpin for WgslContextMethod
impl UnwindSafe for WgslContextMethod
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