Struct hecs_schedule::ScheduleBuilder
source · [−]pub struct ScheduleBuilder { /* private fields */ }
Expand description
Builder for incrementally constructing a schedule.
Implementations
Creates a new ScheduleBuilder
pub fn add_system<Args, Ret, S>(&mut self, system: S) -> &mut Self where
S: 'static + System<Args, Ret> + Send,
pub fn add_system<Args, Ret, S>(&mut self, system: S) -> &mut Self where
S: 'static + System<Args, Ret> + Send,
Add a system to the builder
Append all system from other
into self, leaving other
empty.
This allows constructing smaller schedules in different modules and then
joining them together. Work will be paralellized between the two
schedules.
Inserts a barrier that will divide the schedule pararell execution in two dependant halves.
Usually this is not required, as the borrows of the system automatically creates dependencies, but sometimes a manual dependency is needed for things such as interior mutability or channels.
Flush the commandbuffer and apply the commands to the world
Trait Implementations
Returns the “default value” for a type. Read more