Fix indirect buffer access flags

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2020-05-22 16:25:09 -04:00
1 parent a203333c3e
commit 70154373f8
1 file changed
+3
+3
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
}