Skip to content

Commit b7711e5

Browse files
ErichDonGublerjimblandy
authored andcommitted
refactor(naga): order ImplementedEnableExtension::F16 first
1 parent cd81063 commit b7711e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

naga/src/front/wgsl/parse/directive/enable_extension.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ impl EnableExtension {
9898
/// A variant of [`EnableExtension::Implemented`].
9999
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
100100
pub enum ImplementedEnableExtension {
101-
/// Enables the `blend_src` attribute in WGSL.
102-
///
103-
/// In the WGSL standard, this corresponds to [`enable dual_source_blending;`].
104-
///
105-
/// [`enable dual_source_blending;`]: https://www.w3.org/TR/WGSL/#extension-dual_source_blending
106-
DualSourceBlending,
107101
/// Enables `f16`/`half` primitive support in all shader languages.
108102
///
109103
/// In the WGSL standard, this corresponds to [`enable f16;`].
110104
///
111105
/// [`enable f16;`]: https://www.w3.org/TR/WGSL/#extension-f16
112106
F16,
107+
/// Enables the `blend_src` attribute in WGSL.
108+
///
109+
/// In the WGSL standard, this corresponds to [`enable dual_source_blending;`].
110+
///
111+
/// [`enable dual_source_blending;`]: https://www.w3.org/TR/WGSL/#extension-dual_source_blending
112+
DualSourceBlending,
113113
}
114114

115115
/// A variant of [`EnableExtension::Unimplemented`].

0 commit comments

Comments
 (0)