pub struct SubgroupSimulator { /* private fields */ }Expand description
Deterministic CPU model of a hardware subgroup/wave.
Implementations§
Source§impl SubgroupSimulator
impl SubgroupSimulator
Sourcepub fn ballot<const N: usize>(&self, mask: &[bool; N]) -> u32
pub fn ballot<const N: usize>(&self, mask: &[bool; N]) -> u32
Encode lane predicates as a ballot bitmask.
Sourcepub fn ballot_slice(&self, mask: &[bool]) -> u32
pub fn ballot_slice(&self, mask: &[bool]) -> u32
Encode an arbitrary lane predicate slice as a ballot bitmask.
Trait Implementations§
Source§impl Clone for SubgroupSimulator
impl Clone for SubgroupSimulator
Source§fn clone(&self) -> SubgroupSimulator
fn clone(&self) -> SubgroupSimulator
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 SubgroupSimulator
impl Debug for SubgroupSimulator
Source§impl Default for SubgroupSimulator
impl Default for SubgroupSimulator
Source§impl PartialEq for SubgroupSimulator
impl PartialEq for SubgroupSimulator
impl Copy for SubgroupSimulator
impl Eq for SubgroupSimulator
impl StructuralPartialEq for SubgroupSimulator
Auto Trait Implementations§
impl Freeze for SubgroupSimulator
impl RefUnwindSafe for SubgroupSimulator
impl Send for SubgroupSimulator
impl Sync for SubgroupSimulator
impl Unpin for SubgroupSimulator
impl UnsafeUnpin for SubgroupSimulator
impl UnwindSafe for SubgroupSimulator
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§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.