pub enum WgslIntrinsic {
Show 65 variants
LocalInvocationIdX,
LocalInvocationIdY,
LocalInvocationIdZ,
WorkgroupIdX,
WorkgroupIdY,
WorkgroupIdZ,
GlobalInvocationIdX,
GlobalInvocationIdY,
GlobalInvocationIdZ,
NumWorkgroupsX,
NumWorkgroupsY,
NumWorkgroupsZ,
WorkgroupSizeX,
WorkgroupSizeY,
WorkgroupSizeZ,
WorkgroupBarrier,
StorageBarrier,
AtomicAdd,
AtomicSub,
AtomicMin,
AtomicMax,
AtomicExchange,
AtomicCompareExchangeWeak,
AtomicLoad,
AtomicStore,
Sqrt,
InverseSqrt,
Abs,
Floor,
Ceil,
Round,
Sin,
Cos,
Tan,
Exp,
Log,
Pow,
Min,
Max,
Clamp,
Fma,
Mix,
SubgroupInvocationId,
SubgroupSize,
SubgroupAll,
SubgroupAny,
SubgroupBallot,
SubgroupElect,
SubgroupShuffle,
SubgroupShuffleUp,
SubgroupShuffleDown,
SubgroupShuffleXor,
SubgroupBroadcast,
SubgroupBroadcastFirst,
SubgroupAdd,
SubgroupMul,
SubgroupMin,
SubgroupMax,
SubgroupAnd,
SubgroupOr,
SubgroupXor,
SubgroupInclusiveAdd,
SubgroupExclusiveAdd,
SubgroupInclusiveMul,
SubgroupExclusiveMul,
}Expand description
WGSL intrinsic operations.
Variants§
LocalInvocationIdX
LocalInvocationIdY
LocalInvocationIdZ
WorkgroupIdX
WorkgroupIdY
WorkgroupIdZ
GlobalInvocationIdX
GlobalInvocationIdY
GlobalInvocationIdZ
NumWorkgroupsX
NumWorkgroupsY
NumWorkgroupsZ
WorkgroupSizeX
WorkgroupSizeY
WorkgroupSizeZ
WorkgroupBarrier
StorageBarrier
AtomicAdd
AtomicSub
AtomicMin
AtomicMax
AtomicExchange
AtomicCompareExchangeWeak
AtomicLoad
AtomicStore
Sqrt
InverseSqrt
Abs
Floor
Ceil
Round
Sin
Cos
Tan
Exp
Log
Pow
Min
Max
Clamp
Fma
Mix
SubgroupInvocationId
SubgroupSize
SubgroupAll
SubgroupAny
SubgroupBallot
SubgroupElect
SubgroupShuffle
SubgroupShuffleUp
SubgroupShuffleDown
SubgroupShuffleXor
SubgroupBroadcast
SubgroupBroadcastFirst
SubgroupAdd
SubgroupMul
SubgroupMin
SubgroupMax
SubgroupAnd
SubgroupOr
SubgroupXor
SubgroupInclusiveAdd
SubgroupExclusiveAdd
SubgroupInclusiveMul
SubgroupExclusiveMul
Implementations§
Source§impl WgslIntrinsic
impl WgslIntrinsic
Sourcepub fn requires_subgroup_extension(&self) -> bool
pub fn requires_subgroup_extension(&self) -> bool
Check if this intrinsic requires the subgroup extension.
Sourcepub fn is_subgroup_builtin(&self) -> bool
pub fn is_subgroup_builtin(&self) -> bool
Check if this is a subgroup builtin variable (not a function).
Trait Implementations§
Source§impl Clone for WgslIntrinsic
impl Clone for WgslIntrinsic
Source§fn clone(&self) -> WgslIntrinsic
fn clone(&self) -> WgslIntrinsic
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 WgslIntrinsic
impl Debug for WgslIntrinsic
Source§impl PartialEq for WgslIntrinsic
impl PartialEq for WgslIntrinsic
impl Copy for WgslIntrinsic
impl Eq for WgslIntrinsic
impl StructuralPartialEq for WgslIntrinsic
Auto Trait Implementations§
impl Freeze for WgslIntrinsic
impl RefUnwindSafe for WgslIntrinsic
impl Send for WgslIntrinsic
impl Sync for WgslIntrinsic
impl Unpin for WgslIntrinsic
impl UnwindSafe for WgslIntrinsic
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