From 70154373f8668b88c43fcbdee7bee8a89816eb39 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Fri, 22 May 2020 16:23:45 -0400 Subject: [PATCH] Fix indirect buffer access flags --- wgpu-core/src/conv.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wgpu-core/src/conv.rs b/wgpu-core/src/conv.rs index 5f239c933b..b76d38ac37 100644 --- a/wgpu-core/src/conv.rs +++ b/wgpu-core/src/conv.rs @@ -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 }