diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index 618cfb6ea8..d6c2586351 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -2498,7 +2498,7 @@ impl Device { if !view .format_features .flags - .contains(wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE) + .contains(wgt::TextureFormatFeatureFlags::STORAGE_WRITE) { return Err(Error::StorageReadNotSupported(view.desc.format)); } @@ -2508,7 +2508,7 @@ impl Device { if !view .format_features .flags - .contains(wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE) + .contains(wgt::TextureFormatFeatureFlags::STORAGE_WRITE) { return Err(Error::StorageReadNotSupported(view.desc.format)); } diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index 89b37c78a7..43eaa6f2f8 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -521,7 +521,7 @@ impl Adapter { let mut flags = wgt::TextureFormatFeatureFlags::empty(); flags.set( - wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE, + wgt::TextureFormatFeatureFlags::STORAGE_WRITE, caps.contains(Tfc::STORAGE_READ_WRITE), ); diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 1d5f6ef2df..d4113de7e0 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -2382,7 +2382,7 @@ 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`] or [`StorageTextureAccess::ReadWrite`]. - const STORAGE_READ_WRITE = 1 << 6; + const STORAGE_WRITE = 1 << 6; /// If not present, the texture can't be blended into the render target. const BLENDABLE = 1 << 7; }