Skip to content

Commit

Permalink
wgpu: Fix crash when not using push constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone committed Jul 15, 2023
1 parent 34c0d41 commit cd2d01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render/wgpu/src/layouts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl BindLayouts {
let color_transforms = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
binding: 0,
visibility: wgpu::ShaderStages::FRAGMENT,
visibility: wgpu::ShaderStages::VERTEX_FRAGMENT,
ty: wgpu::BindingType::Buffer {
ty: wgpu::BufferBindingType::Uniform,
has_dynamic_offset: true,
Expand Down

0 comments on commit cd2d01b

Please sign in to comment.