[spv-out] fix wrong MatrixStride for matCx2 and mat2xR

This commit is contained in:
Teodor Tanasoaia authored and Dzmitry Malyshau committed 2022-03-19 21:20:45 -07:00
1 parent f90e563c28
commit e66a66a763
1 file changed
+3 -3
+3 -3
View File
@@ -871,12 +871,12 @@ impl Writer {
ref other => other,
};
if let crate::TypeInner::Matrix {
columns,
rows: _,
columns: _,
rows,
width,
} = *member_array_subty_inner
{
let byte_stride = match columns {
let byte_stride = match rows {
crate::VectorSize::Bi => 2 * width,
crate::VectorSize::Tri | crate::VectorSize::Quad => 4 * width,
};