You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: naga/tests/validation.rs
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -644,13 +644,13 @@ fn main() {
644
644
",
645
645
"\
646
646
error: Entry point main at Compute is invalid
647
-
┌─ wgsl:4:9
647
+
┌─ wgsl:4:22
648
648
│
649
649
4 │ _ = select(1, 2, 9001);
650
-
│ ^^^^^^^^^^^^^^^^^^ naga::ir::Expression [3]
650
+
│ ^^^^ this is of type Scalar(Scalar { kind: Sint, width: 4 })
651
651
│
652
652
= Expression [3] is invalid
653
-
= Expected selection condition to be a boolean value, got Scalar(Scalar { kind: Sint, width: 4 })
653
+
= Expected selection condition [2] to be a boolean value
654
654
655
655
",
656
656
),
@@ -664,13 +664,15 @@ fn main() {
664
664
",
665
665
"\
666
666
error: Entry point main at Compute is invalid
667
-
┌─ wgsl:4:9
667
+
┌─ wgsl:4:16
668
668
│
669
669
4 │ _ = select(true, 1, false);
670
-
│ ^^^^^^^^^^^^^^^^^^^^^^ naga::ir::Expression [3]
670
+
│ ^^^^ ^ accept value of type Scalar(Scalar { kind: Sint, width: 4 })
671
+
│ │
672
+
│ reject value of type Scalar(Scalar { kind: Bool, width: 1 })
671
673
│
672
674
= Expression [3] is invalid
673
-
= Expected selection argument types to match, but reject value of type Scalar(Scalar { kind: Bool, width: 1 }) does not match accept value of value Scalar(Scalar { kind: Sint, width: 4 })
675
+
= Expected selection reject and accept values ([1] and [0], respectively) to match, but they have different types
0 commit comments