[−][src]Struct luminance::pipeline::Builder
An opaque type used to create pipelines.
Methods
impl<'a, C: ?Sized> Builder<'a, C> where
C: GraphicsContext,
[src]
C: GraphicsContext,
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]
&'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>),
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]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,