Struct softrender::render::pipeline::Pipeline
[−]
[src]
pub struct Pipeline<U, P> where
P: Pixel,
U: Send + Sync, { /* fields omitted */ }
Starting point for the rendering pipeline.
By itself, it only holds the framebuffer and global uniforms, but it spawns the first shader stage using those.
Methods
impl<U, P> Pipeline<U, P> where
U: Send + Sync,
P: Pixel,
[src]
U: Send + Sync,
P: Pixel,
fn new(framebuffer: FrameBuffer<P>, uniforms: U) -> Pipeline<U, P>
Create a new rendering pipeline instance
fn render_mesh<V>(&mut self, mesh: Arc<Mesh<V>>) -> VertexShader<V, U, P> where
V: Send + Sync,
V: Send + Sync,
Start the shading pipeline for a given mesh
fn uniforms(&self) -> &U
Returns a reference to the uniforms value
fn uniforms_mut(&mut self) -> &mut U
Returns a mutable reference to the uniforms value
fn framebuffer(&self) -> &FrameBuffer<P>
Returns a reference to the framebuffer
fn framebuffer_mut(&mut self) -> &mut FrameBuffer<P>
Returns a mutable reference to the framebuffer