From 88f8750b0260a5f329e8a72ca0d702e358c17475 Mon Sep 17 00:00:00 2001 From: Mateusz Antkiewicz Date: Fri, 9 Jun 2023 11:07:56 +0200 Subject: [PATCH] Fix stupid bug Thanks NVidia... --- src/renderer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer.rs b/src/renderer.rs index 9369b5e..685dffe 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -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::() as u32, }; @@ -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,