[]Trait geng::prelude::ugli::AsUniform

pub trait AsUniform {
    type Uniform: Uniform;
    fn as_uniform(&self) -> &Self::Uniform;
}

Associated Types

Loading content...

Required methods

fn as_uniform(&self) -> &Self::Uniform

Loading content...

Implementations on Foreign Types

impl<'a, U> AsUniform for &'a U where
    U: Uniform

type Uniform = U

Loading content...

Implementors

impl AsUniform for Color<f32>

type Uniform = [f32; 4]

impl<'a, U> AsUniform for Ref<'a, U> where
    U: Uniform

type Uniform = U

impl<U> AsUniform for Vec2<U> where
    [U; 2]: Uniform

type Uniform = [U; 2]

impl<U> AsUniform for Vec3<U> where
    [U; 3]: Uniform

type Uniform = [U; 3]

impl<U> AsUniform for Vec4<U> where
    [U; 4]: Uniform

type Uniform = [U; 4]

Loading content...