mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix indirect buffer access flags
This commit is contained in:
committed by
Dzmitry Malyshau
parent
a203333c3e
commit
70154373f8
@@ -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