pub enum GatherMode {
BroadcastFirst,
Broadcast(Handle<Expression>),
Shuffle(Handle<Expression>),
ShuffleDown(Handle<Expression>),
ShuffleUp(Handle<Expression>),
ShuffleXor(Handle<Expression>),
}
Expand description
The specific behavior of a SubgroupGather
statement.
All Handle<Expression>
values here refer to an expression in
Function::expressions
.
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<'arbitrary> Arbitrary<'arbitrary> for GatherMode
impl<'arbitrary> Arbitrary<'arbitrary> for GatherMode
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§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<'de> Deserialize<'de> for GatherMode
impl<'de> Deserialize<'de> for GatherMode
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 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§impl PartialOrd for GatherMode
impl PartialOrd for GatherMode
Source§impl Serialize for GatherMode
impl Serialize for GatherMode
impl 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<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
)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.