File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
examples/features/src/ray_shadows Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ impl crate::framework::Example for Example {
116
116
117
117
fn required_limits ( ) -> wgpu:: Limits {
118
118
wgpu:: Limits {
119
- max_push_constant_size : 12 ,
119
+ max_push_constant_size : 16 ,
120
120
..wgpu:: Limits :: default ( )
121
121
}
122
122
}
@@ -209,7 +209,7 @@ impl crate::framework::Example for Example {
209
209
bind_group_layouts : & [ & bind_group_layout] ,
210
210
push_constant_ranges : & [ wgpu:: PushConstantRange {
211
211
stages : wgpu:: ShaderStages :: FRAGMENT ,
212
- range : 0 ..12 ,
212
+ range : 0 ..16 ,
213
213
} ] ,
214
214
} ) ;
215
215
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ var acc_struct: acceleration_structure;
35
35
36
36
struct PushConstants {
37
37
light : vec3 <f32 >,
38
+ padding : f32 ,
38
39
}
39
40
var <push_constant > pc : PushConstants ;
40
41
You can’t perform that action at this time.
0 commit comments