Skip to main content

camera_driver

Function camera_driver 

Source
pub fn camera_driver(world: &mut World)
Expand description

The default entry point for camera driven rendering added to the root bevy_render::renderer::RenderGraph schedule. This system iterates over all cameras in the world, executing their associated rendering schedules defined by the bevy_render::camera::CameraRenderGraph component.

After executing all camera schedules, it submits any pending command buffers to the GPU and clears any swap chains that were not covered by a camera. Users can order any additional operations (e.g. one-off compute passes) before or after this system in the root render graph schedule.