Skip to content

Commit 6bfbea2

Browse files
committed
Fix lints harder
1 parent 66ad4e0 commit 6bfbea2

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

crates/bevy_render/src/camera.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -814,13 +814,13 @@ impl DirtySpecializations {
814814
}))
815815
}
816816

817-
/// Iterates over all meshes that should have cached pipeline data cleared
818-
/// for them.
817+
/// Iterates over all renderables that should be removed from the phase.
819818
///
820-
/// This includes both meshes that became invisible this frame and those
821-
/// that are in [`DirtySpecializations::entities`]. If this view must itself
822-
/// be re-specialized, this will iterate over all visible entities in
823-
/// addition to those that became invisible.
819+
/// This includes renderables that became invisible this frame, renderables
820+
/// that are in [`DirtySpecializations::changed_renderables`], and
821+
/// renderables that are in [`DirtySpecializations::removed_renderables`].
822+
/// If this view must itself be re-specialized, this will iterate over all
823+
/// visible entities in addition to those that became invisible.
824824
pub fn iter_to_dequeue<'a>(
825825
&'a self,
826826
view: RetainedViewEntity,
@@ -851,11 +851,11 @@ impl DirtySpecializations {
851851
})
852852
}
853853

854-
/// Iterates over all meshes that potentially need to be re-queued.
854+
/// Iterates over all renderables that potentially need to be re-queued.
855855
///
856-
/// This includes both meshes that became visible and those that are in
857-
/// [`DirtySpecializations::entities`]. If this view must itself be
858-
/// re-specialized, this will iterate over all visible entities.
856+
/// This includes both renderables that became visible and those that are in
857+
/// [`DirtySpecializations::changed_renderables`]. If this view must itself
858+
/// be re-specialized, this will iterate over all visible renderables.
859859
///
860860
/// `last_frame_view_pending_queues` should be the contents of the
861861
/// [`ViewPendingQueues::prev_frame`] list.

crates/bevy_render/src/render_phase/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ where
156156

157157
/// The batch and bin key for each entity.
158158
///
159-
/// We retain these so that, when the entity changes,
160-
/// [`Self::sweep_old_entities`] can quickly find the bin it was located in
161-
/// and remove it.
159+
/// We retain these so that, when the entity changes, the methods that
160+
/// remove items from bins can quickly find the bin each entity was located
161+
/// in in order to remove it.
162162
cached_entity_bin_keys: MainEntityHashMap<CachedBinnedEntity<BPI>>,
163163

164164
/// The gpu preprocessing mode configured for the view this phase is associated

examples/shader_advanced/manual_material.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use bevy::{
1717
platform::collections::hash_map::Entry,
1818
prelude::*,
1919
render::{
20-
camera::DirtySpecializations,
20+
camera::{DirtySpecializationSystems, DirtySpecializations},
2121
erased_render_asset::{ErasedRenderAsset, ErasedRenderAssetPlugin, PrepareAssetError},
2222
render_asset::RenderAssets,
2323
render_phase::DrawFunctions,
@@ -34,7 +34,6 @@ use bevy::{
3434
},
3535
utils::Parallel,
3636
};
37-
use bevy_render::camera::DirtySpecializationSystems;
3837
use std::{any::TypeId, sync::Arc};
3938

4039
const SHADER_ASSET_PATH: &str = "shaders/manual_material.wgsl";

0 commit comments

Comments
 (0)