Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/bevy_pbr/src/render/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use bevy_mesh::{
};
use bevy_platform::collections::{hash_map::Entry, HashMap};
use bevy_render::impl_atomic_pod;
use bevy_render::mesh::allocator::SlabId;
use bevy_render::mesh::allocator::MeshSlabId;
use bevy_render::mesh::morph::{
MorphTargetImage, MorphTargetsResource, RenderMorphTargetAllocator,
};
Expand Down Expand Up @@ -3261,7 +3261,7 @@ pub enum MeshMorphTargetBindGroups {

/// Maps a morph target slab ID that the mesh allocator manages to the bind
/// groups for morph displacements in that slab.
Storage(HashMap<SlabId, MeshMorphTargetStorageBindGroups>),
Storage(HashMap<MeshSlabId, MeshMorphTargetStorageBindGroups>),
}

/// The bind groups associated with a single morph displacements slab.
Expand Down Expand Up @@ -3413,7 +3413,7 @@ pub enum MeshMorphBindGroupKey {
///
/// In this case, there's a bind group per morph displacement slab (managed
/// by the mesh allocator).
Storage(SlabId),
Storage(MeshSlabId),
}

/// Creates the per-mesh bind groups for each type of mesh and each phase.
Expand Down Expand Up @@ -3688,7 +3688,7 @@ fn prepare_mesh_morph_target_bind_groups_for_phase_using_storage(
skins_uniform: &SkinUniforms,
weights_uniform: &MorphUniforms,
mesh_allocator: &MeshAllocator,
morph_target_storage_bind_groups: &mut HashMap<SlabId, MeshMorphTargetStorageBindGroups>,
morph_target_storage_bind_groups: &mut HashMap<MeshSlabId, MeshMorphTargetStorageBindGroups>,
) {
let (skin, prev_skin) = (&skins_uniform.current_buffer, &skins_uniform.prev_buffer);
let weights = weights_uniform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ fn measure_allocator(
.store(allocator.slabs_size(), Ordering::Relaxed);
measurements
.allocations
.store(allocator.allocations(), Ordering::Relaxed);
.store(allocator.index_allocation_count(), Ordering::Relaxed);
}
1 change: 1 addition & 0 deletions crates/bevy_render/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub mod render_phase;
pub mod render_resource;
pub mod renderer;
pub mod settings;
pub mod slab_allocator;
pub mod storage;
pub mod sync_component;
pub mod sync_world;
Expand Down
Loading