mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
rename TFFF::STORAGE_READ_WRITE to STORAGE_WRITE (#6622)
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user