From d5253be7fde446743ca354a3dee1649bb6483046 Mon Sep 17 00:00:00 2001 From: atlv Date: Sun, 1 Dec 2024 23:26:47 -0500 Subject: [PATCH] rename TFFF::STORAGE_READ_WRITE to STORAGE_WRITE (#6622) --- wgpu-core/src/device/resource.rs | 4 ++-- wgpu-core/src/instance.rs | 2 +- wgpu-types/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index 0dec93127e..a89bf0b6c2 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -2494,7 +2494,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)); } @@ -2504,7 +2504,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 b640513fbd..16278e16f8 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 e56aa31d2f..546a3fde0d 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; }