Skip to content

Commit

Permalink
Renumber bitflags sort (#6709)
Browse files Browse the repository at this point in the history
  • Loading branch information
atlv24 authored Dec 12, 2024
1 parent fe07d6d commit 55d5d26
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
28 changes: 14 additions & 14 deletions wgpu-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1541,37 +1541,37 @@ bitflags!(
const SAMPLED_MINMAX = 1 << 2;

/// Format can be used as storage with read-only access.
const STORAGE_READ_ONLY = 1 << 16;
const STORAGE_READ_ONLY = 1 << 3;
/// Format can be used as storage with write-only access.
const STORAGE_WRITE_ONLY = 1 << 3;
const STORAGE_WRITE_ONLY = 1 << 4;
/// Format can be used as storage with both read and write access.
const STORAGE_READ_WRITE = 1 << 4;
const STORAGE_READ_WRITE = 1 << 5;
/// Format can be used as storage with atomics.
const STORAGE_ATOMIC = 1 << 5;
const STORAGE_ATOMIC = 1 << 6;

/// Format can be used as color and input attachment.
const COLOR_ATTACHMENT = 1 << 6;
const COLOR_ATTACHMENT = 1 << 7;
/// Format can be used as color (with blending) and input attachment.
const COLOR_ATTACHMENT_BLEND = 1 << 7;
const COLOR_ATTACHMENT_BLEND = 1 << 8;
/// Format can be used as depth-stencil and input attachment.
const DEPTH_STENCIL_ATTACHMENT = 1 << 8;
const DEPTH_STENCIL_ATTACHMENT = 1 << 9;

/// Format can be multisampled by x2.
const MULTISAMPLE_X2 = 1 << 9;
const MULTISAMPLE_X2 = 1 << 10;
/// Format can be multisampled by x4.
const MULTISAMPLE_X4 = 1 << 10;
const MULTISAMPLE_X4 = 1 << 11;
/// Format can be multisampled by x8.
const MULTISAMPLE_X8 = 1 << 11;
const MULTISAMPLE_X8 = 1 << 12;
/// Format can be multisampled by x16.
const MULTISAMPLE_X16 = 1 << 12;
const MULTISAMPLE_X16 = 1 << 13;

/// Format can be used for render pass resolve targets.
const MULTISAMPLE_RESOLVE = 1 << 13;
const MULTISAMPLE_RESOLVE = 1 << 14;

/// Format can be copied from.
const COPY_SRC = 1 << 14;
const COPY_SRC = 1 << 15;
/// Format can be copied to.
const COPY_DST = 1 << 15;
const COPY_DST = 1 << 16;
}
);

Expand Down
8 changes: 4 additions & 4 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2369,15 +2369,15 @@ bitflags::bitflags! {
const MULTISAMPLE_RESOLVE = 1 << 5;
/// When used as a STORAGE texture, then a texture with this format can be bound with
/// [`StorageTextureAccess::ReadOnly`].
const STORAGE_READ_ONLY = 1 << 8;
const STORAGE_READ_ONLY = 1 << 6;
/// When used as a STORAGE texture, then a texture with this format can be bound with
/// [`StorageTextureAccess::WriteOnly`].
const STORAGE_WRITE_ONLY = 1 << 6;
const STORAGE_WRITE_ONLY = 1 << 7;
/// When used as a STORAGE texture, then a texture with this format can be bound with
/// [`StorageTextureAccess::ReadWrite`].
const STORAGE_READ_WRITE = 1 << 9;
const STORAGE_READ_WRITE = 1 << 8;
/// If not present, the texture can't be blended into the render target.
const BLENDABLE = 1 << 7;
const BLENDABLE = 1 << 9;
}
}

Expand Down

0 comments on commit 55d5d26

Please sign in to comment.