Fix STORAGE_READ support

This commit is contained in:
Dzmitry Malyshau committed 2019-11-25 14:30:03 -05:00
1 parent d08118b535
commit 1a2a37df7d
1 file changed
+1 -1
+1 -1
View File
@@ -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) {