GraphicsSystemTrait

Trait GraphicsSystemTrait 

Source
pub trait GraphicsSystemTrait: Send + Sync {
    // Required methods
    fn new_system<L>(
        gfx_queue: Arc<Queue>,
        subpass: Subpass<L>,
    ) -> GraphicsSystem
       where Self: Sized,
             L: RenderPassAbstract + Sync + Send + 'static;
    fn get_system_num(&self) -> usize;
    fn pass<'b, 'p: 'b>(
        &self,
        pass_builder: &'b mut PassBuilder<'p>,
        gfx_system: GraphicsSystem,
    );
}
Expand description

Contains the necessary facilities to execute a Graphics system.

Required Methods§

Source

fn new_system<L>(gfx_queue: Arc<Queue>, subpass: Subpass<L>) -> GraphicsSystem
where Self: Sized, L: RenderPassAbstract + Sync + Send + 'static,

Creates a new system

Source

fn get_system_num(&self) -> usize

Returns the index of the system.

Source

fn pass<'b, 'p: 'b>( &self, pass_builder: &'b mut PassBuilder<'p>, gfx_system: GraphicsSystem, )

Executes the system

Implementors§