Skip to content

Commit

Permalink
use BufferUsages::UNIFORM instead of the implicit `BufferUsages::al…
Browse files Browse the repository at this point in the history
…l()` due to the Default derive
  • Loading branch information
teoxoy committed May 20, 2022
1 parent 3a93b67 commit 85a8a3e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/bevy_pbr/src/render/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,11 +715,18 @@ pub fn queue_mesh_bind_group(
// ignoring the rest, whether they're valid for other dynamic offsets or not. This trick may
// be supported later in encase, and then we should make use of it.

#[derive(Default)]
pub struct SkinnedMeshUniform {
pub buffer: BufferVec<Mat4>,
}

impl Default for SkinnedMeshUniform {
fn default() -> Self {
Self {
buffer: BufferVec::new(BufferUsages::UNIFORM)
}
}
}

pub fn prepare_skinned_meshes(
render_device: Res<RenderDevice>,
render_queue: Res<RenderQueue>,
Expand Down

0 comments on commit 85a8a3e

Please sign in to comment.