From e284e8055f99e2f9014c183b0afddc0cd77e4c68 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 22 Mar 2025 17:19:58 -0700 Subject: [PATCH] [naga] Put `Scalar::F16` constant in the right place. --- naga/src/proc/type_methods.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/naga/src/proc/type_methods.rs b/naga/src/proc/type_methods.rs index 968cb4ce37..f38ef5dc0d 100644 --- a/naga/src/proc/type_methods.rs +++ b/naga/src/proc/type_methods.rs @@ -20,10 +20,6 @@ impl crate::ScalarKind { } impl crate::Scalar { - pub const F16: Self = Self { - kind: crate::ScalarKind::Float, - width: 2, - }; pub const I32: Self = Self { kind: crate::ScalarKind::Sint, width: 4, @@ -32,6 +28,10 @@ impl crate::Scalar { kind: crate::ScalarKind::Uint, width: 4, }; + pub const F16: Self = Self { + kind: crate::ScalarKind::Float, + width: 2, + }; pub const F32: Self = Self { kind: crate::ScalarKind::Float, width: 4,