diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs index 124f23cf4a..dd86a2f621 100644 --- a/wgpu-hal/src/lib.rs +++ b/wgpu-hal/src/lib.rs @@ -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; } ); diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 9e60070cd6..a366681ddf 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -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; } }