pub struct SubgroupCaps {
pub supports_subgroup: bool,
pub supports_subgroup_vertex: bool,
pub subgroup_size: u32,
}Expand description
Subgroup capability record shared by validation and optimizers.
Fields§
§supports_subgroup: boolNative subgroup operations are available for compute.
supports_subgroup_vertex: boolSubgroup operations are available in vertex-stage contexts.
subgroup_size: u32Subgroup size in lanes; 0 means unknown.
Implementations§
Source§impl SubgroupCaps
impl SubgroupCaps
Sourcepub const fn native(subgroup_size: u32) -> Self
pub const fn native(subgroup_size: u32) -> Self
Capability record for native subgroup intrinsics.
Trait Implementations§
Source§impl Clone for SubgroupCaps
impl Clone for SubgroupCaps
Source§fn clone(&self) -> SubgroupCaps
fn clone(&self) -> SubgroupCaps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubgroupCaps
Source§impl Debug for SubgroupCaps
impl Debug for SubgroupCaps
Source§impl Default for SubgroupCaps
impl Default for SubgroupCaps
Source§fn default() -> SubgroupCaps
fn default() -> SubgroupCaps
Returns the “default value” for a type. Read more
impl Eq for SubgroupCaps
Source§impl PartialEq for SubgroupCaps
impl PartialEq for SubgroupCaps
Source§fn eq(&self, other: &SubgroupCaps) -> bool
fn eq(&self, other: &SubgroupCaps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubgroupCaps
Auto Trait Implementations§
impl Freeze for SubgroupCaps
impl RefUnwindSafe for SubgroupCaps
impl Send for SubgroupCaps
impl Sync for SubgroupCaps
impl Unpin for SubgroupCaps
impl UnsafeUnpin for SubgroupCaps
impl UnwindSafe for SubgroupCaps
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.