Fix indirect buffer access flags

This commit is contained in:
Dzmitry Malyshau
2020-05-22 16:23:45 -04:00
committed by Dzmitry Malyshau
parent a203333c3e
commit 70154373f8

View File

@@ -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
}