[−][src]Struct luminance::shader::ProgramInterface
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]
B: Shader,
pub fn set<T>(&mut self, uniform: &Uniform<T>, value: T) where
T: Uniformable<B>,
[src]
T: Uniformable<B>,
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,
[src]
<B as Shader>::ProgramRepr: RefUnwindSafe,
impl<'a, B: ?Sized> Send for ProgramInterface<'a, B> where
<B as Shader>::ProgramRepr: Send,
[src]
<B as Shader>::ProgramRepr: Send,
impl<'a, B: ?Sized> Sync for ProgramInterface<'a, B> where
<B as Shader>::ProgramRepr: Sync,
[src]
<B as Shader>::ProgramRepr: Sync,
impl<'a, B: ?Sized> Unpin for ProgramInterface<'a, B>
[src]
impl<'a, B> !UnwindSafe for ProgramInterface<'a, B>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,