Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Oct 24, 2023
1 parent bf8a570 commit 3453478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_pbr/src/material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ where

let _mesh_bind_group = descriptor.layout.pop().unwrap();
descriptor.layout.extend_from_slice(&[
self.meshlet_layout.expect("TODO"),
self.meshlet_layout.clone().expect("TODO"),
self.material_layout.clone(),
]);

let sd = ShaderDefVal::UInt("MESHLET_BIND_GROUP".into(), 1);
descriptor.vertex.shader_defs.push(sd);
descriptor.vertex.shader_defs.push(sd.clone());
descriptor.fragment.as_mut().map(|f| f.shader_defs.push(sd));
} else {
descriptor.layout.insert(1, self.material_layout.clone());
Expand Down

0 comments on commit 3453478

Please sign in to comment.