Enum naga::GatherMode
source · pub enum GatherMode {
BroadcastFirst,
Broadcast(Handle<Expression>),
Shuffle(Handle<Expression>),
ShuffleDown(Handle<Expression>),
ShuffleUp(Handle<Expression>),
ShuffleXor(Handle<Expression>),
}
Variants§
BroadcastFirst
All gather from the active lane with the smallest index
Broadcast(Handle<Expression>)
All gather from the same lane at the index given by the expression
Shuffle(Handle<Expression>)
Each gathers from a different lane at the index given by the expression
ShuffleDown(Handle<Expression>)
Each gathers from their lane plus the shift given by the expression
ShuffleUp(Handle<Expression>)
Each gathers from their lane minus the shift given by the expression
ShuffleXor(Handle<Expression>)
Each gathers from their lane xored with the given by the expression
Trait Implementations§
source§impl Clone for GatherMode
impl Clone for GatherMode
source§fn clone(&self) -> GatherMode
fn clone(&self) -> GatherMode
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 Debug for GatherMode
impl Debug for GatherMode
source§impl Hash for GatherMode
impl Hash for GatherMode
source§impl Ord for GatherMode
impl Ord for GatherMode
source§fn cmp(&self, other: &GatherMode) -> Ordering
fn cmp(&self, other: &GatherMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GatherMode
impl PartialEq for GatherMode
source§fn eq(&self, other: &GatherMode) -> bool
fn eq(&self, other: &GatherMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GatherMode
impl PartialOrd for GatherMode
source§fn partial_cmp(&self, other: &GatherMode) -> Option<Ordering>
fn partial_cmp(&self, other: &GatherMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for GatherMode
impl Eq for GatherMode
impl StructuralPartialEq for GatherMode
Auto Trait Implementations§
impl Freeze for GatherMode
impl RefUnwindSafe for GatherMode
impl Send for GatherMode
impl Sync for GatherMode
impl Unpin for GatherMode
impl UnwindSafe for GatherMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.