Trait Pipeline

Source
pub trait Pipeline:
    Any
    + Debug
    + Send
    + Sync {
    type Data: 'static;

    // Required methods
    fn append(&mut self, data: &Self::Data, layer: u8);
    fn draw(&mut self, driver: &Driver, pass: &mut RenderPass<'_>, layer: u8);

    // Provided method
    fn prepare(
        &mut self,
        driver: &Driver,
        encoder: &mut CommandEncoder,
        config: &SurfaceConfiguration,
    ) { ... }
}

Required Associated Types§

Source

type Data: 'static

Required Methods§

Source

fn append(&mut self, data: &Self::Data, layer: u8)

Source

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

Provided Methods§

Source

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

Implementors§

Source§

impl<const KIND: u8> Pipeline for Shape<KIND>