Enum naga::MathFunction[][src]

pub enum MathFunction {
    Abs,
    Min,
    Max,
    Clamp,
    Cos,
    Cosh,
    Sin,
    Sinh,
    Tan,
    Tanh,
    Acos,
    Asin,
    Atan,
    Atan2,
    Ceil,
    Floor,
    Round,
    Fract,
    Trunc,
    Modf,
    Frexp,
    Ldexp,
    Exp,
    Exp2,
    Log,
    Log2,
    Pow,
    Dot,
    Outer,
    Cross,
    Distance,
    Length,
    Normalize,
    FaceForward,
    Reflect,
    Sign,
    Fma,
    Mix,
    Step,
    SmoothStep,
    Sqrt,
    InverseSqrt,
    Transpose,
    Determinant,
    CountOneBits,
    ReverseBits,
}

Built-in shader function for math.

Variants

Abs
Min
Max
Clamp
Cos
Cosh
Sin
Sinh
Tan
Tanh
Acos
Asin
Atan
Atan2
Ceil
Floor
Round
Fract
Trunc
Modf
Frexp
Ldexp
Exp
Exp2
Log
Log2
Pow
Dot
Outer
Cross
Distance
Length
Normalize
FaceForward
Reflect
Sign
Fma
Mix
Step
SmoothStep
Sqrt
InverseSqrt
Transpose
Determinant
CountOneBits
ReverseBits

Implementations

impl MathFunction[src]

pub fn argument_count(&self) -> usize[src]

Trait Implementations

impl Clone for MathFunction[src]

impl Copy for MathFunction[src]

impl Debug for MathFunction[src]

impl Eq for MathFunction[src]

impl Hash for MathFunction[src]

impl Ord for MathFunction[src]

impl PartialEq<MathFunction> for MathFunction[src]

impl PartialOrd<MathFunction> for MathFunction[src]

impl StructuralEq for MathFunction[src]

impl StructuralPartialEq for MathFunction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.