Trait AnyPipeline

Source
pub trait AnyPipeline:
    Any
    + Debug
    + Send
    + Sync {
    // Required methods
    fn append(&mut self, data: &dyn Any, layer: u8);
    fn prepare(
        &mut self,
        driver: &Driver,
        encoder: &mut CommandEncoder,
        config: &SurfaceConfiguration,
    );
    fn draw(&mut self, driver: &Driver, pass: &mut RenderPass<'_>, layer: u8);
}

Required Methods§

Source

fn append(&mut self, data: &dyn Any, layer: u8)

Source

fn prepare( &mut self, driver: &Driver, encoder: &mut CommandEncoder, config: &SurfaceConfiguration, )

Source

fn draw(&mut self, driver: &Driver, pass: &mut RenderPass<'_>, layer: u8)

Implementors§

Source§

impl<T: Pipeline + Debug + Send + Sync + 'static> AnyPipeline for T