Enable storage read/write format feature

This commit is contained in:
Andreas Reich
2021-01-10 22:12:09 +01:00
parent 8920e8b2ba
commit 78466fbb31

View File

@@ -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,