mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-out] put matrix decorations on arrays of matrices (#712)
This commit is contained in:
@@ -886,11 +886,17 @@ impl Writer {
|
||||
}
|
||||
}
|
||||
|
||||
// The matrix decorations also go on arrays of matrices,
|
||||
// so lets check this first.
|
||||
let member_array_subty_inner = match arena[member.ty].inner {
|
||||
crate::TypeInner::Array { base, .. } => &arena[base].inner,
|
||||
ref other => other,
|
||||
};
|
||||
if let crate::TypeInner::Matrix {
|
||||
columns,
|
||||
rows: _,
|
||||
width,
|
||||
} = arena[member.ty].inner
|
||||
} = *member_array_subty_inner
|
||||
{
|
||||
let byte_stride = match columns {
|
||||
crate::VectorSize::Bi => 2 * width,
|
||||
|
||||
Reference in New Issue
Block a user