rename TFFF::STORAGE_READ_WRITE to STORAGE_WRITE (#6622)

This commit is contained in:
atlv authored and GitHub committed 2024-12-01 23:26:47 -05:00
1 parent 131d08e6e1
commit d5253be7fd
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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));
}
+1 -1
View File
@@ -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),
);
+1 -1
View File
@@ -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;
}