[][src]Struct luminance::shader::program::Uniform

pub struct Uniform<T> { /* fields omitted */ }

A contravariant shader uniform. Uniform<T> doesn’t hold any value. It’s more like a mapping between the host code and the shader the uniform was retrieved from.

Methods

impl<T> Uniform<T> where
    T: Uniformable
[src]

pub fn update(&self, x: T)[src]

Update the value pointed by this uniform.

Trait Implementations

impl<T: Debug> Debug for Uniform<T>[src]

Auto Trait Implementations

impl<T> !Send for Uniform<T>

impl<T> Unpin for Uniform<T>

impl<T> !Sync for Uniform<T>

impl<T> UnwindSafe for Uniform<T> where
    T: RefUnwindSafe

impl<T> RefUnwindSafe for Uniform<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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