pub enum WGSLBuiltinFunction {
Show 105 variants
Abs,
Acos,
Acosh,
Asin,
Asinh,
Atan,
Atanh,
Atan2,
Ceil,
Clamp,
Cos,
Cosh,
Cross,
Degrees,
Distance,
Dot,
Exp,
Exp2,
FaceForward,
Floor,
Fma,
Fract,
Frexp,
InverseSqrt,
Ldexp,
Length,
Log,
Log2,
Max,
Min,
Mix,
Modf,
Normalize,
Pow,
Quantize,
Radians,
Reflect,
Refract,
Round,
Saturate,
Sign,
Sin,
Sinh,
Smoothstep,
Sqrt,
Step,
Tan,
Tanh,
Transpose,
Trunc,
CountLeadingZeros,
CountOneBits,
CountTrailingZeros,
ExtractBits,
FirstLeadingBit,
FirstTrailingBit,
InsertBits,
ReverseBits,
TextureDimensions,
TextureGather,
TextureGatherCompare,
TextureLoad,
TextureNumLayers,
TextureNumLevels,
TextureNumSamples,
TextureSample,
TextureSampleBias,
TextureSampleCompare,
TextureSampleCompareLevel,
TextureSampleGrad,
TextureSampleLevel,
TextureStore,
Dpdx,
Dpdxcoarse,
Dpdxfine,
Dpdy,
Dpdycoarse,
Dpdyfine,
Fwidth,
FwidthCoarse,
FwidthFine,
AtomicLoad,
AtomicStore,
AtomicAdd,
AtomicSub,
AtomicMax,
AtomicMin,
AtomicAnd,
AtomicOr,
AtomicXor,
AtomicExchange,
AtomicCompareExchangeWeak,
WorkgroupBarrier,
StorageBarrier,
TextureBarrier,
Pack2x16float,
Pack2x16snorm,
Pack2x16unorm,
Pack4x8snorm,
Pack4x8unorm,
Unpack2x16float,
Unpack2x16snorm,
Unpack2x16unorm,
Unpack4x8snorm,
Unpack4x8unorm,
}Expand description
Standard WGSL built-in functions for code generation helpers.
Variants§
Abs
Acos
Acosh
Asin
Asinh
Atan
Atanh
Atan2
Ceil
Clamp
Cos
Cosh
Cross
Degrees
Distance
Dot
Exp
Exp2
FaceForward
Floor
Fma
Fract
Frexp
InverseSqrt
Ldexp
Length
Log
Log2
Max
Min
Mix
Modf
Normalize
Pow
Quantize
Radians
Reflect
Refract
Round
Saturate
Sign
Sin
Sinh
Smoothstep
Sqrt
Step
Tan
Tanh
Transpose
Trunc
CountLeadingZeros
CountOneBits
CountTrailingZeros
ExtractBits
FirstLeadingBit
FirstTrailingBit
InsertBits
ReverseBits
TextureDimensions
TextureGather
TextureGatherCompare
TextureLoad
TextureNumLayers
TextureNumLevels
TextureNumSamples
TextureSample
TextureSampleBias
TextureSampleCompare
TextureSampleCompareLevel
TextureSampleGrad
TextureSampleLevel
TextureStore
Dpdx
Dpdxcoarse
Dpdxfine
Dpdy
Dpdycoarse
Dpdyfine
Fwidth
FwidthCoarse
FwidthFine
AtomicLoad
AtomicStore
AtomicAdd
AtomicSub
AtomicMax
AtomicMin
AtomicAnd
AtomicOr
AtomicXor
AtomicExchange
AtomicCompareExchangeWeak
WorkgroupBarrier
StorageBarrier
TextureBarrier
Pack2x16float
Pack2x16snorm
Pack2x16unorm
Pack4x8snorm
Pack4x8unorm
Unpack2x16float
Unpack2x16snorm
Unpack2x16unorm
Unpack4x8snorm
Unpack4x8unorm
Implementations§
Trait Implementations§
Source§impl Clone for WGSLBuiltinFunction
impl Clone for WGSLBuiltinFunction
Source§fn clone(&self) -> WGSLBuiltinFunction
fn clone(&self) -> WGSLBuiltinFunction
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 WGSLBuiltinFunction
impl Debug for WGSLBuiltinFunction
Source§impl Hash for WGSLBuiltinFunction
impl Hash for WGSLBuiltinFunction
Source§impl PartialEq for WGSLBuiltinFunction
impl PartialEq for WGSLBuiltinFunction
impl Eq for WGSLBuiltinFunction
impl StructuralPartialEq for WGSLBuiltinFunction
Auto Trait Implementations§
impl Freeze for WGSLBuiltinFunction
impl RefUnwindSafe for WGSLBuiltinFunction
impl Send for WGSLBuiltinFunction
impl Sync for WGSLBuiltinFunction
impl Unpin for WGSLBuiltinFunction
impl UnsafeUnpin for WGSLBuiltinFunction
impl UnwindSafe for WGSLBuiltinFunction
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