mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
fix(core): Align limit when clamping at u32 for indirect validation (#9698)
This commit is contained in:
1 parent
336cda7372
commit
e55f061770
1 file changed
+3
-2
@@ -625,8 +625,9 @@ impl Instance {
|
||||
limits.max_buffer_size = limits.max_buffer_size.min(u32::MAX as u64);
|
||||
limits.max_uniform_buffer_binding_size =
|
||||
limits.max_uniform_buffer_binding_size.min(u32::MAX as u64);
|
||||
limits.max_storage_buffer_binding_size =
|
||||
limits.max_storage_buffer_binding_size.min(u32::MAX as u64);
|
||||
limits.max_storage_buffer_binding_size = limits
|
||||
.max_storage_buffer_binding_size
|
||||
.min(u32::MAX as u64 & !(wgt::STORAGE_BINDING_SIZE_ALIGNMENT as u64 - 1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user