mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
Fix STORAGE_READ support
This commit is contained in:
1 parent
d08118b535
commit
1a2a37df7d
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user