mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 02:24:35 +01:00
[spv-out] fix wrong MatrixStride for matCx2 and mat2xR
This commit is contained in:
1 parent
f90e563c28
commit
e66a66a763
1 file changed
+3
-3
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user