Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Oct 30, 2023
1 parent 3e044d2 commit d3c7b39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_pbr/src/meshlet/from_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl MeshletMesh {

let mut meshlets = build_meshlets(&indices, &vertices, 126, 64, 0.0);

// TODO: Parallelize
let meshlet_bounding_spheres = meshlets
.iter()
.map(|meshlet| {
Expand All @@ -55,7 +56,7 @@ impl MeshletMesh {
})
.collect();

// TODO: Meshoptimzer seems to pad the buffers themselves?
// TODO: Meshoptimizer seems to pad the buffers themselves?
// Buffer copies need to be in multiples of 4 bytes
let padding = ((meshlets.triangles.len() + 3) & !0x3) - meshlets.triangles.len();
meshlets.triangles.extend(iter::repeat(0).take(padding));
Expand Down

0 comments on commit d3c7b39

Please sign in to comment.