[naga] Reorder the WGSL forms of Scalar types.

In the implementation of `TryToWgsl` for `Scalar`, order types within
each representation from smallest to largest. This is just a cleanup;
the change has no effect on behavior.
This commit is contained in:
Jim Blandy
2025-03-20 17:16:05 -07:00
committed by Connor Fitzgerald
parent 6dcccc40a1
commit df5b45a1ab

View File

@@ -268,9 +268,9 @@ impl TryToWgsl for crate::Scalar {
use crate::Scalar;
Some(match self {
Scalar::F64 => "f64",
Scalar::F32 => "f32",
Scalar::F16 => "f16",
Scalar::F32 => "f32",
Scalar::F64 => "f64",
Scalar::I32 => "i32",
Scalar::U32 => "u32",
Scalar::I64 => "i64",