Skip to content

Commit

Permalink
Merge gfx-rs#1140
Browse files Browse the repository at this point in the history
1140: Enable storage read/write format feature r=kvark a=Wumpf

**Connections**
gfx-rs#1112

**Description**
Use `wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE` in `get_texture_format_features`.
This has been waiting for a gfx update which was enabled by @elartista 's workaround in gfx-rs#1136 \o/

Co-authored-by: Andreas Reich <[email protected]>
  • Loading branch information
bors[bot] and Wumpf authored Jan 10, 2021
2 parents 8920e8b + 78466fb commit 5a29e01
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions wgpu-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,9 @@ impl<B: GfxBackend> Adapter<B> {
if texture_format_properties.contains(hal::format::ImageFeature::STORAGE_ATOMIC) {
flags |= wgt::TextureFormatFeatureFlags::STORAGE_ATOMICS;
}
// TODO: Hal update required. This in turn is blocked by https://github.com/zakarumych/gpu-alloc/issues/33
//if texture_format_properties.contains(hal::format::ImageFeature::STORAGE_READ_WRITE) {
// flags |= wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE;
//}
if texture_format_properties.contains(hal::format::ImageFeature::STORAGE_READ_WRITE) {
flags |= wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE;
}

wgt::TextureFormatFeatures {
allowed_usages,
Expand Down

0 comments on commit 5a29e01

Please sign in to comment.