bevy_core_pipeline::experimental::mip_generation

Function prepare_view_depth_pyramids

Source
pub fn prepare_view_depth_pyramids(
    commands: Commands<'_, '_>,
    render_device: Res<'_, RenderDevice>,
    texture_cache: ResMut<'_, TextureCache>,
    depth_pyramid_dummy_texture: Res<'_, DepthPyramidDummyTexture>,
    views: Query<'_, '_, (Entity, &ExtractedView), (With<OcclusionCulling>, Without<NoIndirectDrawing>)>,
)
Expand description

Creates depth pyramids for views that have occlusion culling enabled.