Skip to content

Commit

Permalink
rename TFFF::STORAGE_READ_WRITE to STORAGE_WRITE (#6622)
Browse files Browse the repository at this point in the history
  • Loading branch information
atlv24 authored Dec 2, 2024
1 parent 131d08e commit d5253be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/device/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand All @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);

Expand Down
2 changes: 1 addition & 1 deletion wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d5253be

Please sign in to comment.