Skip to content

Commit 8695a67

Browse files
refactor(types): sort WEBGPU_FEATURE_{CLIP_DISTANCES,DUAL_SOURCE_BLENDING} relative to each other
1 parent 702c4ef commit 8695a67

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

wgpu-types/src/features.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,15 @@ bitflags_array! {
15171517
/// - Vulkan
15181518
const FLOAT32_BLENDABLE = WEBGPU_FEATURE_FLOAT32_BLENDABLE;
15191519

1520+
/// Allows the use of `@builtin(clip_distances)` in WGSL.
1521+
///
1522+
/// Supported platforms:
1523+
/// - Vulkan (mainly on Desktop GPUs)
1524+
/// - GL (Desktop or `GL_EXT_clip_cull_distance`)
1525+
///
1526+
/// This is a web and native feature.
1527+
const CLIP_DISTANCES = WEBGPU_FEATURE_CLIP_DISTANCES;
1528+
15201529
/// Allows two outputs from a shader to be used for blending.
15211530
/// Note that dual-source blending doesn't support multiple render targets.
15221531
///
@@ -1531,15 +1540,6 @@ bitflags_array! {
15311540
/// This is a web and native feature.
15321541
const DUAL_SOURCE_BLENDING = WEBGPU_FEATURE_DUAL_SOURCE_BLENDING;
15331542

1534-
/// Allows the use of `@builtin(clip_distances)` in WGSL.
1535-
///
1536-
/// Supported platforms:
1537-
/// - Vulkan (mainly on Desktop GPUs)
1538-
/// - GL (Desktop or `GL_EXT_clip_cull_distance`)
1539-
///
1540-
/// This is a web and native feature.
1541-
const CLIP_DISTANCES = WEBGPU_FEATURE_CLIP_DISTANCES;
1542-
15431543
/// Allows the use of immediate data: small, fast bits of memory that can be updated
15441544
/// inside a [`RenderPass`].
15451545
///

0 commit comments

Comments
 (0)