[−][src]Struct luminance::shading_gate::ShadingGate
A shading gate.
This is obtained after entering a PipelineGate
.
Parametricity
B
is the backend type.
Implementations
impl<'a, B: ?Sized> ShadingGate<'a, B> where
B: ShadingGateBackend,
[src]
B: ShadingGateBackend,
pub fn shade<E, Sem, Out, Uni, F>(
&mut self,
program: &mut Program<B, Sem, Out, Uni>,
f: F
) -> Result<(), E> where
Sem: Semantics,
Uni: UniformInterface<B>,
F: for<'b> FnOnce(ProgramInterface<'b, B>, &'b Uni, RenderGate<'b, B>) -> Result<(), E>,
[src]
&mut self,
program: &mut Program<B, Sem, Out, Uni>,
f: F
) -> Result<(), E> where
Sem: Semantics,
Uni: UniformInterface<B>,
F: for<'b> FnOnce(ProgramInterface<'b, B>, &'b Uni, RenderGate<'b, B>) -> Result<(), E>,
Enter a ShadingGate
by using a shader Program
.
The argument closure is given two arguments:
- A
ProgramInterface
, that allows to pass values (viaProgramInterface::set
) to the in-use shaderProgram
and/or perform dynamic lookup of uniforms. - A
RenderGate
, allowing to create deeper nodes in the graphics pipeline.
Auto Trait Implementations
impl<'a, B: ?Sized> RefUnwindSafe for ShadingGate<'a, B> where
B: RefUnwindSafe,
[src]
B: RefUnwindSafe,
impl<'a, B: ?Sized> Send for ShadingGate<'a, B> where
B: Send,
[src]
B: Send,
impl<'a, B: ?Sized> Sync for ShadingGate<'a, B> where
B: Sync,
[src]
B: Sync,
impl<'a, B: ?Sized> Unpin for ShadingGate<'a, B>
[src]
impl<'a, B> !UnwindSafe for ShadingGate<'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>,