mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
Remove overly restrictive array stride check (#2215)
This commit is contained in:
1 parent
cdcfad277a
commit
1cffd236a7
1 file changed
-8
@@ -380,14 +380,6 @@ impl super::Validator {
|
||||
}
|
||||
|
||||
let base_layout = self.layouter[base];
|
||||
let expected_stride = base_layout.to_stride();
|
||||
if stride != expected_stride {
|
||||
return Err(TypeError::InvalidArrayStride {
|
||||
stride,
|
||||
expected: expected_stride,
|
||||
});
|
||||
}
|
||||
|
||||
let general_alignment = base_layout.alignment;
|
||||
let uniform_layout = match base_info.uniform_layout {
|
||||
Ok(base_alignment) => {
|
||||
|
||||
Reference in new issue
Block a user