mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
Fix indirect buffer access flags
This commit is contained in:
1 parent
a203333c3e
commit
70154373f8
1 file changed
+3
@@ -515,6 +515,9 @@ pub(crate) fn map_buffer_state(usage: resource::BufferUse) -> hal::buffer::State
|
||||
if usage.contains(W::STORAGE_STORE) {
|
||||
access |= A::SHADER_WRITE;
|
||||
}
|
||||
if usage.contains(W::INDIRECT) {
|
||||
access |= A::INDIRECT_COMMAND_READ;
|
||||
}
|
||||
|
||||
access
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user