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
@@ -671,48 +670,7 @@ error: Function [1] 'main' is invalid
671
670
= Requires 1 arguments, but 0 are provided
672
671
673
672
",
674
-
),
675
-
(
676
-
"\
677
-
@compute @workgroup_size(1, 1)
678
-
fn main() {
679
-
// Bad: `9001` isn't a `bool`.
680
-
_ = select(1, 2, 9001);
681
-
}
682
-
",
683
-
"\
684
-
error: Entry point main at Compute is invalid
685
-
┌─ wgsl:4:9
686
-
│
687
-
4 │ _ = select(1, 2, 9001);
688
-
│ ^^^^^^ naga::ir::Expression [3]
689
-
│
690
-
= Expression [3] is invalid
691
-
= Expected selection condition to be a boolean value, got Scalar(Scalar { kind: Sint, width: 4 })
692
-
693
-
",
694
-
),
695
-
(
696
-
"\
697
-
@compute @workgroup_size(1, 1)
698
-
fn main() {
699
-
// Bad: `bool` and abstract int args. don't match.
700
-
_ = select(true, 1, false);
701
-
}
702
-
",
703
-
"\
704
-
error: Entry point main at Compute is invalid
705
-
┌─ wgsl:4:9
706
-
│
707
-
4 │ _ = select(true, 1, false);
708
-
│ ^^^^^^ naga::ir::Expression [3]
709
-
│
710
-
= Expression [3] is invalid
711
-
= 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 })
712
-
713
-
",
714
-
),
715
-
];
673
+
)];
716
674
717
675
for(source, expected_err)in cases {
718
676
let module = naga::front::wgsl::parse_str(source).unwrap();
0 commit comments