Skip to content

Commit 234e75b

Browse files
committed
Fixes min_push_constant_size in ray_shadows example.
1 parent 030ac24 commit 234e75b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/features/src/ray_shadows/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl crate::framework::Example for Example {
116116

117117
fn required_limits() -> wgpu::Limits {
118118
wgpu::Limits {
119-
max_push_constant_size: 12,
119+
max_push_constant_size: 16,
120120
..wgpu::Limits::default()
121121
}
122122
}
@@ -209,7 +209,7 @@ impl crate::framework::Example for Example {
209209
bind_group_layouts: &[&bind_group_layout],
210210
push_constant_ranges: &[wgpu::PushConstantRange {
211211
stages: wgpu::ShaderStages::FRAGMENT,
212-
range: 0..12,
212+
range: 0..16,
213213
}],
214214
});
215215

examples/features/src/ray_shadows/shader.wgsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var acc_struct: acceleration_structure;
3535

3636
struct PushConstants {
3737
light: vec3<f32>,
38+
padding: f32,
3839
}
3940
var<push_constant> pc: PushConstants;
4041

0 commit comments

Comments
 (0)