From 78466fbb31266210be1073dc57a9c2abadbb442b Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Sun, 10 Jan 2021 22:12:09 +0100 Subject: [PATCH] Enable storage read/write format feature --- wgpu-core/src/instance.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index 19783199c5..0f3e3e4d30 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -281,10 +281,9 @@ impl Adapter { 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,