mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
Merge #383
383: Fix STORAGE_READ support r=kvark a=kvark Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
commit
b51053dc2d
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