mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix type resolves of matrix by vectors
This commit is contained in:
committed by
Dzmitry Malyshau
parent
f03a99d6a3
commit
2a5c478b21
@@ -255,24 +255,24 @@ impl Typifier {
|
||||
} else if let crate::TypeInner::Scalar { .. } = *ty_right {
|
||||
self.resolutions[left.index()].clone()
|
||||
} else if let crate::TypeInner::Matrix {
|
||||
columns,
|
||||
rows: _,
|
||||
columns: _,
|
||||
rows,
|
||||
width,
|
||||
} = *ty_left
|
||||
{
|
||||
Resolution::Value(crate::TypeInner::Vector {
|
||||
size: columns,
|
||||
size: rows,
|
||||
kind: crate::ScalarKind::Float,
|
||||
width,
|
||||
})
|
||||
} else if let crate::TypeInner::Matrix {
|
||||
columns: _,
|
||||
rows,
|
||||
columns,
|
||||
rows: _,
|
||||
width,
|
||||
} = *ty_right
|
||||
{
|
||||
Resolution::Value(crate::TypeInner::Vector {
|
||||
size: rows,
|
||||
size: columns,
|
||||
kind: crate::ScalarKind::Float,
|
||||
width,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user