Struct amethyst_renderer::Renderer
[−]
[src]
pub struct Renderer<R: Resources, C: CommandBuffer<R>> { /* fields omitted */ }
Manages passes and the execution of the passes over the targets. It only
contains the passes, all other data is contained in the Frame
.
Methods
impl<R, C> Renderer<R, C> where
R: Resources,
C: CommandBuffer<R>,
[src]
R: Resources,
C: CommandBuffer<R>,
fn new(cmd_buf: C) -> Renderer<R, C>
Creates a new renderer with the given command buffer.
fn load_all<F>(&mut self, factory: &mut F) where
F: Factory<R>,
F: Factory<R>,
Load all known passes into the renderer.
fn add_pass<A, T, P>(&mut self, p: P) where
P: Pass<R, Arg = A, Target = T> + 'static,
A: PassDescription,
T: Target,
P: Pass<R, Arg = A, Target = T> + 'static,
A: PassDescription,
T: Target,
Add a pass to the table of available passes.
fn submit<D>(&mut self, pipe: &Pipeline, scene: &Scene<R>, device: &mut D) where
D: Device<Resources = R, CommandBuffer = C>,
D: Device<Resources = R, CommandBuffer = C>,
Execute all passes and draw the frame.