From 5ea3ea7b5542c9666d465f0ae2f47dee5ec49671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Kocsis?= Date: Fri, 28 Aug 2020 07:23:38 +0200 Subject: [PATCH] fix for mixed STORAGE_STORE and STORAGE_LOAD --- wgpu-core/src/device/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index ff81df1ba..9e09d6d5c 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -2009,9 +2009,9 @@ impl Global { } => ( wgt::BufferUsage::STORAGE, if readonly { - resource::BufferUse::STORAGE_STORE - } else { resource::BufferUse::STORAGE_LOAD + } else { + resource::BufferUse::STORAGE_STORE }, min_binding_size, dynamic,