[][src]Struct luminance::pipeline::Builder

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

An opaque type used to create pipelines.

Methods

impl<'a, C: ?Sized> Builder<'a, C> where
    C: GraphicsContext
[src]

pub fn new(ctx: &'a mut C) -> Self[src]

Create a new Builder.

Even though you call this function by yourself, you’re likely to prefer using GraphicsContext::pipeline_builder instead.

pub fn pipeline<'b, L, D, CS, DS, F>(
    &'b mut self,
    framebuffer: &Framebuffer<L, D, CS, DS>,
    clear_color: [f32; 4],
    f: F
) where
    L: Layerable,
    D: Dimensionable,
    CS: ColorSlot<L, D>,
    DS: DepthSlot<L, D>,
    F: FnOnce(Pipeline<'b>, ShadingGate<'b, C>), 
[src]

Create a new Pipeline and consume it immediately.

A dynamic rendering pipeline is responsible of rendering into a Framebuffer.

L refers to the Layering of the underlying Framebuffer.

D refers to the Dim of the underlying Framebuffer.

CS and DS are – respectively – the color and depth Slot(s) of the underlying Framebuffer.

Pipelines also have a clear color, used to clear the framebuffer.

Auto Trait Implementations

impl<'a, C> !Send for Builder<'a, C>

impl<'a, C: ?Sized> Unpin for Builder<'a, C>

impl<'a, C> !Sync for Builder<'a, C>

impl<'a, C> !UnwindSafe for Builder<'a, C>

impl<'a, C> !RefUnwindSafe for Builder<'a, C>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]