bevy_render::view::visibility

Function extract_visibility_ranges

Source
pub fn extract_visibility_ranges(
    render_visibility_ranges: ResMut<'_, RenderVisibilityRanges>,
    visibility_ranges_query: Extract<'_, '_, Query<'_, '_, (Entity, &VisibilityRange)>>,
    changed_ranges_query: Extract<'_, '_, Query<'_, '_, Entity, Changed<VisibilityRange>>>,
    removed_visibility_ranges: Extract<'_, '_, RemovedComponents<'_, '_, VisibilityRange>>,
)
Expand description

Extracts all VisibilityRange components from the main world to the render world and inserts them into RenderVisibilityRanges.