mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
add more tests for operators
This commit is contained in:
@@ -670,7 +670,6 @@ impl super::Validator {
|
||||
Some(Sk::Uint) | Some(Sk::Sint) | Some(Sk::Float) => true,
|
||||
Some(Sk::Bool) | None => false,
|
||||
};
|
||||
//TODO: should we be more restrictive here? I.e. expect scalar only to the left.
|
||||
let types_match = match (left_inner, right_inner) {
|
||||
(&Ti::Scalar { kind: kind1, .. }, &Ti::Scalar { kind: kind2, .. })
|
||||
| (&Ti::Vector { kind: kind1, .. }, &Ti::Scalar { kind: kind2, .. })
|
||||
|
||||
Reference in New Issue
Block a user