[][src]Struct luminance::shader::ProgramInterface

pub struct ProgramInterface<'a, B: ?Sized> where
    B: Shader
{ /* fields omitted */ }

Interact with the UniformInterface carried by a Program and/or perform dynamic uniform lookup.

This type allows to set — ProgramInterface::set – uniforms for a Program.

In the case where you don’t have a uniform interface or need to dynamically lookup uniforms, you can use the ProgramInterface::query method.

Parametricity

B is the backend type.

Implementations

impl<'a, B: ?Sized> ProgramInterface<'a, B> where
    B: Shader
[src]

pub fn set<T>(&mut self, uniform: &Uniform<T>, value: T) where
    T: Uniformable<B>, 
[src]

Set a value on a Uniform.

pub fn query(&mut self) -> Result<UniformBuilder<'a, B>, ProgramError>[src]

Get back a UniformBuilder to dynamically access Uniform objects.

Auto Trait Implementations

impl<'a, B: ?Sized> RefUnwindSafe for ProgramInterface<'a, B> where
    <B as Shader>::ProgramRepr: RefUnwindSafe

impl<'a, B: ?Sized> Send for ProgramInterface<'a, B> where
    <B as Shader>::ProgramRepr: Send

impl<'a, B: ?Sized> Sync for ProgramInterface<'a, B> where
    <B as Shader>::ProgramRepr: Sync

impl<'a, B: ?Sized> Unpin for ProgramInterface<'a, B>

impl<'a, B> !UnwindSafe for ProgramInterface<'a, B>

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.