Remove overly restrictive array stride check (#2215)

This commit is contained in:
Jonathan Behrens authored and GitHub committed 2023-01-18 16:28:38 +01:00
1 parent cdcfad277a
commit 1cffd236a7
1 file changed
-8
-8
View File
@@ -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) => {