Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename TFFF::STORAGE_READ_WRITE to STORAGE_WRITE #6622

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wgpu-core/src/device/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand All @@ -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));
}
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