Struct hecs_schedule::Schedule
source · pub struct Schedule { /* private fields */ }
Expand description
A shedule represents a collections of system which will run with effects in a determined order.
Implementations§
source§impl Schedule
impl Schedule
sourcepub fn batch_info(&self) -> BatchInfo<'_>
pub fn batch_info(&self) -> BatchInfo<'_>
Returns information of how the schedule was split into batches
sourcepub fn builder() -> ScheduleBuilder
pub fn builder() -> ScheduleBuilder
Creates a new ScheduleBuilder
sourcepub fn execute_seq<D: IntoData<CommandBuffer>>(&mut self, data: D) -> Result<()>
pub fn execute_seq<D: IntoData<CommandBuffer>>(&mut self, data: D) -> Result<()>
Executes the systems inside the schedule sequentially using the provided data, which is a tuple of mutable references. Returns Err if any system fails.
A commandbuffer is always available and will be flushed at the end.
sourcepub fn execute<D: IntoData<CommandBuffer> + Send + Sync>(
&mut self,
data: D
) -> Result<()>
pub fn execute<D: IntoData<CommandBuffer> + Send + Sync>( &mut self, data: D ) -> Result<()>
Executes the systems inside the schedule ina parallel using the provided data, which is a tuple of mutable references. Returns Err if any system fails
A commandbuffer is always available and will be flushed at the end.
sourcepub fn cmd(&self) -> &CommandBuffer
pub fn cmd(&self) -> &CommandBuffer
Get a reference to the schedule’s cmd.
sourcepub fn cmd_mut(&mut self) -> &mut CommandBuffer
pub fn cmd_mut(&mut self) -> &mut CommandBuffer
Get a mutable reference to the schedule’s cmd.
Auto Trait Implementations§
impl !RefUnwindSafe for Schedule
impl Send for Schedule
impl !Sync for Schedule
impl Unpin for Schedule
impl !UnwindSafe for Schedule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more