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§
Sourcefn new_system<L>(gfx_queue: Arc<Queue>, subpass: Subpass<L>) -> GraphicsSystem
fn new_system<L>(gfx_queue: Arc<Queue>, subpass: Subpass<L>) -> GraphicsSystem
Creates a new system
Sourcefn get_system_num(&self) -> usize
fn get_system_num(&self) -> usize
Returns the index of the system.
Sourcefn pass<'b, 'p: 'b>(
&self,
pass_builder: &'b mut PassBuilder<'p>,
gfx_system: GraphicsSystem,
)
fn pass<'b, 'p: 'b>( &self, pass_builder: &'b mut PassBuilder<'p>, gfx_system: GraphicsSystem, )
Executes the system