pub enum SystemStage {
Startup,
AssetSync,
AssetSyncDeps,
PreUpdate,
Update,
PostUpdate,
PreRender,
Render,
PostRender,
}Expand description
Determines when during a frame a system is executed.
Stages are iterated in the order defined here — Startup
runs once during App::build, all others run every App::update tick.
Variants§
Startup
Runs once at startup, before the main loop begins.
AssetSync
Upload CPU assets to the GPU backend.
AssetSyncDeps
Upload assets that depend on other GPU assets.
PreUpdate
Runs before the main update.
Update
Main game-logic update.
PostUpdate
Runs after the main update.
PreRender
Prepare rendering data before the render stage.
Render
Issue draw calls.
PostRender
Cleanup or post-processing after rendering.
Trait Implementations§
Source§impl Clone for SystemStage
impl Clone for SystemStage
Source§fn clone(&self) -> SystemStage
fn clone(&self) -> SystemStage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SystemStage
Source§impl Debug for SystemStage
impl Debug for SystemStage
impl Eq for SystemStage
Source§impl Hash for SystemStage
impl Hash for SystemStage
Source§impl Ord for SystemStage
impl Ord for SystemStage
Source§fn cmp(&self, other: &SystemStage) -> Ordering
fn cmp(&self, other: &SystemStage) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SystemStage
impl PartialEq for SystemStage
Source§impl PartialOrd for SystemStage
impl PartialOrd for SystemStage
impl StructuralPartialEq for SystemStage
Auto Trait Implementations§
impl Freeze for SystemStage
impl RefUnwindSafe for SystemStage
impl Send for SystemStage
impl Sync for SystemStage
impl Unpin for SystemStage
impl UnsafeUnpin for SystemStage
impl UnwindSafe for SystemStage
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