[naga] Put Scalar::F16 constant in the right place.

This commit is contained in:
Jim Blandy 2025-03-22 17:19:58 -07:00 committed by Connor Fitzgerald
parent df5b45a1ab
commit e284e8055f

View File

@ -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,