From df5b45a1ab8c9cfd00940c834c5d5baced6d8a07 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 20 Mar 2025 17:16:05 -0700 Subject: [PATCH] [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. --- naga/src/common/wgsl/to_wgsl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/naga/src/common/wgsl/to_wgsl.rs b/naga/src/common/wgsl/to_wgsl.rs index 82fe7c5925..15221230cd 100644 --- a/naga/src/common/wgsl/to_wgsl.rs +++ b/naga/src/common/wgsl/to_wgsl.rs @@ -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",