[][src]Enum golem::UniformType

pub enum UniformType {
    Scalar(NumberType),
    Vector(NumberTypeDimension),
    Matrix(Dimension),
    Sampler2D,
    Array(Box<UniformType>, usize),
    UserType(String),
}

The type of the uniform in GLSL

Variants

Scalar(NumberType)

Either an int or a float

A vector, either an ivecn or a vecn with the given dimension

Matrix(Dimension)

A matrix with the given dimension

Sampler2D

A texutre binding

An array of another type

UserType(String)

A user-defined type, like a struct

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, 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.