Trait amethyst_renderer::pipe::pass::Pass [] [src]

pub trait Pass: for<'a> PassData<'a> {
    fn compile(&self, effect: NewEffect) -> Result<Effect>;
fn apply<'a, 'b: 'a>(
        &'a mut self,
        encoder: &mut Encoder,
        effect: &mut Effect,
        factory: Factory,
        data: Self::Data
    ); }

Structures implementing this provide a renderer pass.

Required Methods

The pass is given an opportunity to compile shaders and store them in an Effect which is then passed to the pass in apply.

Called whenever the renderer is ready to apply the pass. Feed commands into the encoder here.

Implementors