Trait TaskFactory

Source
pub trait TaskFactory {
    // Required method
    fn create_task(&self, cmd: &mut CommandBuffer) -> Entity;
}
Expand description

Implemented by all nodes of a TaskGraph. Has a blanket impl that should work for most TaskComponents.

Required Methods§

Source

fn create_task(&self, cmd: &mut CommandBuffer) -> Entity

Implementors§

Source§

impl<'a, T: 'static + Clone + TaskComponent<'a>> TaskFactory for T