Skip to content

Commit 6e2d321

Browse files
committed
cap immediate size to 256
1 parent 3147295 commit 6e2d321

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wgpu-hal/src/auxil/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ pub(crate) fn adjust_raw_limits(mut limits: wgt::Limits) -> wgt::Limits {
187187
limits.max_compute_workgroup_size_z = z.min(m);
188188
limits.max_compute_invocations_per_workgroup = m.min(x.saturating_mul(y).saturating_mul(z));
189189

190+
limits.max_immediate_size = limits.max_immediate_size.min(256);
191+
190192
limits
191193
}
192194

0 commit comments

Comments
 (0)