Struct luminance::pipeline::Pipeline
[−]
[src]
pub struct Pipeline<'a, L, D, CS, DS> where L: 'a + Layerable,
D: 'a + Dimensionable,
D::Size: Copy,
CS: 'a + ColorSlot<L, D>,
DS: 'a + DepthSlot<L, D> { /* fields omitted */ }
A dynamic rendering pipeline. A 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 several transient objects:
- a clear color, used to clear the framebuffer
- a texture set, used to make textures available in subsequent structures
- a buffer set, used to make uniform buffers available in subsequent structures
Methods
impl<'a, L, D, CS, DS> Pipeline<'a, L, D, CS, DS> where L: 'a + Layerable,
D: 'a + Dimensionable,
D::Size: Copy,
CS: 'a + ColorSlot<L, D>,
DS: 'a + DepthSlot<L, D>
[src]
D: 'a + Dimensionable,
D::Size: Copy,
CS: 'a + ColorSlot<L, D>,
DS: 'a + DepthSlot<L, D>
fn new(framebuffer: &'a Framebuffer<L, D, CS, DS>,
clear_color: [f32; 4],
texture_set: &'a [&'a RawTexture],
buffer_set: &'a [&'a RawBuffer],
shading_commands: &'a [Pipe<'a, ShadingCommand<'a>>])
-> Self
clear_color: [f32; 4],
texture_set: &'a [&'a RawTexture],
buffer_set: &'a [&'a RawBuffer],
shading_commands: &'a [Pipe<'a, ShadingCommand<'a>>])
-> Self
Create a new pipeline.
fn run(self)
Run a Pipeline
.
Trait Implementations
impl<'a, L: Clone, D: Clone, CS: Clone, DS: Clone> Clone for Pipeline<'a, L, D, CS, DS> where L: 'a + Layerable,
D: 'a + Dimensionable,
D::Size: Copy,
CS: 'a + ColorSlot<L, D>,
DS: 'a + DepthSlot<L, D>
[src]
D: 'a + Dimensionable,
D::Size: Copy,
CS: 'a + ColorSlot<L, D>,
DS: 'a + DepthSlot<L, D>
fn clone(&self) -> Pipeline<'a, L, D, CS, DS>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more