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 4, 2021
1 parent 53d979f commit 074cb8c
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 @@ -39,7 +39,7 @@ pub enum RenderCommand {
SetPushConstants {
stages: BindingShaderStage,
offset: u32,
data: Arc<[u8]>,
data: Vec<u8>,
},
DrawIndexed {
indices: Range<u32>,
Expand Down Expand Up @@ -112,7 +112,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 074cb8c

Please sign in to comment.