Skip to content

Commit

Permalink
Added Vec append to BufferVec - Issue bevyengine#3531
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor-McMillin committed May 9, 2023
1 parent 1530f63 commit 4374415
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_render/src/render_resource/buffer_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ impl<T: Pod> BufferVec<T> {
index
}

fn append(&mut self, other: &mut BufferVec<T>) {
self.values.append(&mut other.values);
}

pub fn set_label(&mut self, label: Option<&str>) {
let label = label.map(str::to_string);

Expand Down

0 comments on commit 4374415

Please sign in to comment.