Skip to content

Commit

Permalink
Fix stupid bug
Browse files Browse the repository at this point in the history
Thanks NVidia...
  • Loading branch information
GameWin221 committed Jun 9, 2023
1 parent a558aa8 commit 88f8750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl Renderer {
});

let push_constant_range = wgpu::PushConstantRange {
stages: wgpu::ShaderStages::VERTEX,
stages: wgpu::ShaderStages::VERTEX | wgpu::ShaderStages::FRAGMENT,
range: 0..std::mem::size_of::<PushConstants>() as u32,
};

Expand Down Expand Up @@ -404,7 +404,7 @@ impl Renderer {

render_pass.set_bind_group(0, &self.colors_bind_group, &[]);

render_pass.set_push_constants(wgpu::ShaderStages::VERTEX, 0, bytemuck::bytes_of(&PushConstants{
render_pass.set_push_constants(wgpu::ShaderStages::VERTEX | wgpu::ShaderStages::FRAGMENT, 0, bytemuck::bytes_of(&PushConstants{
proj_view: proj_view.into(),
particle_sharpness,
particle_radius,
Expand Down

0 comments on commit 88f8750

Please sign in to comment.