Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Nov 11, 2023
1 parent 29d8254 commit f360662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_pbr/src/meshlet/gpu_scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ pub fn extract_meshlet_meshes(
{
gpu_scene.queue_meshlet_mesh_upload(instance, handle, &assets, instance_index as u32);

// TODO: Unload MeshletMesh asset

let transform = transform.affine();
let previous_transform = previous_transform.map(|t| t.0).unwrap_or(transform);
let mut flags = if not_shadow_receiver {
Expand Down Expand Up @@ -434,6 +432,8 @@ impl MeshletGpuScene {
let queue_meshlet_mesh = |asset_id: &AssetId<MeshletMesh>| {
let meshlet_mesh = assets.get(*asset_id).expect("TODO");

// TODO: Unload MeshletMesh asset

let vertex_data_slice = self
.vertex_data
.queue_write(Arc::clone(&meshlet_mesh.vertex_data), ());
Expand Down

0 comments on commit f360662

Please sign in to comment.