mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Remove unused STORAGE_ATOMICS flag (#3539)
This commit is contained in:
parent
5a0b1a401e
commit
2a3a9bf013
@ -234,10 +234,6 @@ impl<A: HalApi> Adapter<A> {
|
||||
);
|
||||
|
||||
let mut flags = wgt::TextureFormatFeatureFlags::empty();
|
||||
flags.set(
|
||||
wgt::TextureFormatFeatureFlags::STORAGE_ATOMICS,
|
||||
caps.contains(Tfc::STORAGE_ATOMIC),
|
||||
);
|
||||
flags.set(
|
||||
wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE,
|
||||
caps.contains(Tfc::STORAGE_READ_WRITE),
|
||||
|
||||
@ -230,7 +230,7 @@ mod inner {
|
||||
}
|
||||
}
|
||||
|
||||
println!("\tTexture Format Features: ┌──────────┬──────────┬──────────Allowed┬Usages───────────┬───────────────────┐ ┌────────────┬────────────────┬────────────────┬─────────Feature┬Flags────────────────┬────────────────────┬─────────────────┬───────────┐");
|
||||
println!("\tTexture Format Features: ┌──────────┬──────────┬──────────Allowed┬Usages───────────┬───────────────────┐ ┌────────────┬────────────────┬────────────────┬─────────Feature┬Flags────────────┬─────────────────────┬────────────────────┬───────────┐");
|
||||
for format in TEXTURE_FORMAT_LIST {
|
||||
let features = adapter.get_texture_format_features(format);
|
||||
let format_name = match format {
|
||||
@ -274,7 +274,7 @@ mod inner {
|
||||
|
||||
println!(" │");
|
||||
}
|
||||
println!("\t └──────────┴──────────┴─────────────────┴─────────────────┴───────────────────┘ └────────────┴────────────────┴────────────────┴────────────────┴─────────────────────┴────────────────────┴─────────────────┴───────────┘");
|
||||
println!("\t └──────────┴──────────┴─────────────────┴─────────────────┴───────────────────┘ └────────────┴────────────────┴────────────────┴────────────────┴─────────────────┴─────────────────────┴────────────────────┴───────────┘");
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
|
||||
@ -1744,11 +1744,8 @@ bitflags::bitflags! {
|
||||
/// 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;
|
||||
/// When used as a STORAGE texture, then a texture with this format can be written to with atomics.
|
||||
// TODO: No access flag exposed as of writing
|
||||
const STORAGE_ATOMICS = 1 << 7;
|
||||
/// If not present, the texture can't be blended into the render target.
|
||||
const BLENDABLE = 1 << 8;
|
||||
const BLENDABLE = 1 << 7;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user