[][src]Struct luminance::shading_gate::ShadingGate

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

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]

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]

Enter a ShadingGate by using a shader Program.

The argument closure is given two arguments:

Auto Trait Implementations

impl<'a, B: ?Sized> RefUnwindSafe for ShadingGate<'a, B> where
    B: RefUnwindSafe
[src]

impl<'a, B: ?Sized> Send for ShadingGate<'a, B> where
    B: Send
[src]

impl<'a, B: ?Sized> Sync for ShadingGate<'a, B> where
    B: Sync
[src]

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]

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.