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,
) { ... }
}