Skip to content

Commit 5a29e01

Browse files
bors[bot]Wumpf
andauthored
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]>
2 parents 8920e8b + 78466fb commit 5a29e01

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: wgpu-core/src/instance.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,9 @@ impl<B: GfxBackend> Adapter<B> {
281281
if texture_format_properties.contains(hal::format::ImageFeature::STORAGE_ATOMIC) {
282282
flags |= wgt::TextureFormatFeatureFlags::STORAGE_ATOMICS;
283283
}
284-
// TODO: Hal update required. This in turn is blocked by https://github.com/zakarumych/gpu-alloc/issues/33
285-
//if texture_format_properties.contains(hal::format::ImageFeature::STORAGE_READ_WRITE) {
286-
// flags |= wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE;
287-
//}
284+
if texture_format_properties.contains(hal::format::ImageFeature::STORAGE_READ_WRITE) {
285+
flags |= wgt::TextureFormatFeatureFlags::STORAGE_READ_WRITE;
286+
}
288287

289288
wgt::TextureFormatFeatures {
290289
allowed_usages,

0 commit comments

Comments
 (0)