mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Explain where rendering is (#11018)
It was not easy to find. Add some pointers to the comment.
This commit is contained in:
parent
ec14e946b8
commit
dfa1a5e547
2 changed files with 18 additions and 0 deletions
|
@ -23,6 +23,17 @@ use bevy_ecs::{
|
|||
/// * [`Update`]
|
||||
/// * [`PostUpdate`]
|
||||
/// * [`Last`]
|
||||
///
|
||||
/// # Rendering
|
||||
///
|
||||
/// Note rendering is not executed in the main schedule by default.
|
||||
/// Instead, rendering is performed in a separate [`SubApp`](crate::app::SubApp)
|
||||
/// which exchanges data with the main app in between the main schedule runs.
|
||||
///
|
||||
/// See [`RenderPlugin`] and [`PipelinedRenderingPlugin`] for more details.
|
||||
///
|
||||
/// [`RenderPlugin`]: https://docs.rs/bevy/latest/bevy/render/struct.RenderPlugin.html
|
||||
/// [`PipelinedRenderingPlugin`]: https://docs.rs/bevy/latest/bevy/render/pipelined_rendering/struct.PipelinedRenderingPlugin.html
|
||||
#[derive(ScheduleLabel, Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct Main;
|
||||
|
||||
|
|
|
@ -67,6 +67,13 @@ use std::{
|
|||
};
|
||||
|
||||
/// Contains the default Bevy rendering backend based on wgpu.
|
||||
///
|
||||
/// Rendering is done in a [`SubApp`], which exchanges data with the main app
|
||||
/// between main schedule iterations.
|
||||
///
|
||||
/// Rendering can be executed between iterations of the main schedule,
|
||||
/// or it can be executed in parallel with main schedule when
|
||||
/// [`PipelinedRenderingPlugin`](pipelined_rendering::PipelinedRenderingPlugin) is enabled.
|
||||
#[derive(Default)]
|
||||
pub struct RenderPlugin {
|
||||
pub render_creation: RenderCreation,
|
||||
|
|
Loading…
Reference in a new issue