[−][src]Struct luminance::shader::UniformBuilder
A builder of Uniform
.
A UniformBuilder
is an important type as it’s the only one that allows to safely create
Uniform
values.
Parametricity
B
is the backend type. It must implement theShader
trait.
Implementations
impl<'a, B: ?Sized> UniformBuilder<'a, B> where
B: Shader,
[src]
B: Shader,
pub fn ask<T, N>(&mut self, name: N) -> Result<Uniform<T>, UniformWarning> where
N: AsRef<str>,
T: Uniformable<B>,
[src]
N: AsRef<str>,
T: Uniformable<B>,
Ask the creation of a Uniform
, identified by its name
.
pub fn ask_or_unbound<T, N>(&mut self, name: N) -> Uniform<T> where
N: AsRef<str>,
T: Uniformable<B>,
[src]
N: AsRef<str>,
T: Uniformable<B>,
Auto Trait Implementations
impl<'a, B: ?Sized> RefUnwindSafe for UniformBuilder<'a, B> where
<B as Shader>::UniformBuilderRepr: RefUnwindSafe,
[src]
<B as Shader>::UniformBuilderRepr: RefUnwindSafe,
impl<'a, B: ?Sized> Send for UniformBuilder<'a, B> where
<B as Shader>::UniformBuilderRepr: Send,
[src]
<B as Shader>::UniformBuilderRepr: Send,
impl<'a, B: ?Sized> Sync for UniformBuilder<'a, B> where
<B as Shader>::UniformBuilderRepr: Sync,
[src]
<B as Shader>::UniformBuilderRepr: Sync,
impl<'a, B: ?Sized> Unpin for UniformBuilder<'a, B> where
<B as Shader>::UniformBuilderRepr: Unpin,
[src]
<B as Shader>::UniformBuilderRepr: Unpin,
impl<'a, B> !UnwindSafe for UniformBuilder<'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>,