pub trait GraphicsSystemTrait: Send + Sync {
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
fn new_system<L>(gfx_queue: Arc<Queue>, subpass: Subpass<L>) -> GraphicsSystem where
Self: Sized,
L: RenderPassAbstract + Sync + Send + 'static,
fn new_system<L>(gfx_queue: Arc<Queue>, subpass: Subpass<L>) -> GraphicsSystem where
Self: Sized,
L: RenderPassAbstract + Sync + Send + 'static,
Creates a new system
fn get_system_num(&self) -> usize
fn get_system_num(&self) -> usize
Returns the index of the system.
fn 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