Struct bones_lib::render::prelude::SystemStages
source · pub struct SystemStages {
pub stages: Vec<Box<dyn SystemStage + 'static, Global>, Global>,
}Expand description
An ordered collection of SystemStages.
Fields§
§stages: Vec<Box<dyn SystemStage + 'static, Global>, Global>The stages in the collection, in the order that they will be run.
Implementations§
source§impl SystemStages
impl SystemStages
sourcepub fn initialize_systems(&mut self, world: &mut World)
pub fn initialize_systems(&mut self, world: &mut World)
sourcepub fn run(&mut self, world: &mut World) -> Result<(), Error>
pub fn run(&mut self, world: &mut World) -> Result<(), Error>
Execute the systems on the given world.
Note: You must call
initialize_systems()once before callingrun()one or more times.
sourcepub fn with_core_stages() -> SystemStages
pub fn with_core_stages() -> SystemStages
Create a SystemStages collection, initialized with a stage for each CoreStage.
sourcepub fn add_system_to_stage<Args, S, L>(
&mut self,
label: L,
system: S
) -> &mut SystemStageswhere
S: IntoSystem<Args, ()>,
L: StageLabel,
pub fn add_system_to_stage<Args, S, L>(
&mut self,
label: L,
system: S
) -> &mut SystemStageswhere
S: IntoSystem<Args, ()>,
L: StageLabel,
Add a System to the stage with the given label.
sourcepub fn insert_stage_before<L, S>(&mut self, label: L, stage: S)where
L: StageLabel,
S: SystemStage + 'static,
pub fn insert_stage_before<L, S>(&mut self, label: L, stage: S)where
L: StageLabel,
S: SystemStage + 'static,
Insert a new stage, before another existing stage
sourcepub fn insert_stage_after<L, S>(&mut self, label: L, stage: S)where
L: StageLabel,
S: SystemStage + 'static,
pub fn insert_stage_after<L, S>(&mut self, label: L, stage: S)where
L: StageLabel,
S: SystemStage + 'static,
Insert a new stage, after another existing stage