From 1a2a37df7d460c92b201cfa4bc09dffb11c829fc Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Mon, 25 Nov 2019 14:30:03 -0500 Subject: [PATCH] Fix STORAGE_READ support --- wgpu-core/src/conv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/conv.rs b/wgpu-core/src/conv.rs index 4a9ef0d5cc..6bc7f182c8 100644 --- a/wgpu-core/src/conv.rs +++ b/wgpu-core/src/conv.rs @@ -35,7 +35,7 @@ pub fn map_buffer_usage( if usage.contains(W::UNIFORM) { hal_usage |= U::UNIFORM; } - if usage.contains(W::STORAGE) { + if usage.intersects(W::STORAGE | W::STORAGE_READ) { hal_usage |= U::STORAGE; } if usage.contains(W::INDIRECT) {