We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
naga::proc::overloads::utils::scalars
1 parent 804ce8d commit ca4e365Copy full SHA for ca4e365
1 file changed
naga/src/proc/overloads/utils.rs
@@ -34,6 +34,25 @@ pub fn float_scalars() -> impl Iterator<Item = ir::Scalar> + Clone {
34
.into_iter()
35
}
36
37
+/// Produce all [`ir::Scalar`]s.
38
+///
39
+/// Note that `*32` and `F16` must appear before other sizes; this is how we
40
+/// represent conversion rank.
41
+pub fn scalars() -> impl Iterator<Item = ir::Scalar> + Clone {
42
+ [
43
+ ir::Scalar::ABSTRACT_INT,
44
+ ir::Scalar::ABSTRACT_FLOAT,
45
+ ir::Scalar::I32,
46
+ ir::Scalar::U32,
47
+ ir::Scalar::F32,
48
+ ir::Scalar::F16,
49
+ ir::Scalar::I64,
50
+ ir::Scalar::U64,
51
+ ir::Scalar::F64,
52
+ ]
53
+ .into_iter()
54
+}
55
+
56
/// Produce all the floating-point [`ir::Scalar`]s, but omit
57
/// abstract types, for #7405.
58
pub fn float_scalars_unimplemented_abstract() -> impl Iterator<Item = ir::Scalar> + Clone {
0 commit comments