mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[naga] Put Scalar::F16 constant in the right place.
This commit is contained in:
parent
df5b45a1ab
commit
e284e8055f
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user