Skip to content

Commit

Permalink
Use Vec<u8> for Draw::set_push_constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zhixing committed Mar 7, 2021
1 parent e149912 commit 8834821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub enum RenderCommand {
SetPushConstants {
stages: BindingShaderStage,
offset: u32,
data: Arc<[u8]>,
data: Vec<u8>,
},
DrawIndexed {
indices: Range<u32>,
Expand Down Expand Up @@ -115,7 +115,7 @@ impl Draw {
});
}

pub fn set_push_constants(&mut self, stages: BindingShaderStage, offset: u32, data: Arc<[u8]>) {
pub fn set_push_constants(&mut self, stages: BindingShaderStage, offset: u32, data: Vec<u8>) {
self.render_command(RenderCommand::SetPushConstants {
stages,
offset,
Expand Down

0 comments on commit 8834821

Please sign in to comment.