From ace186623e5bc76ddc74c12c94ffe62f3d5b388c Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Wed, 15 Jul 2020 22:56:30 +0200 Subject: [PATCH] Fixed storage buffer counting towards storage textures for binding validation --- wgpu-core/src/binding_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/binding_model.rs b/wgpu-core/src/binding_model.rs index aa7f0fb897..3553c67a22 100644 --- a/wgpu-core/src/binding_model.rs +++ b/wgpu-core/src/binding_model.rs @@ -147,7 +147,7 @@ impl BindingTypeMaxCountValidator { } } wgt::BindingType::StorageBuffer { dynamic, .. } => { - self.storage_textures.add(binding.visibility, count); + self.storage_buffers.add(binding.visibility, count); if dynamic { self.dynamic_storage_buffers += count; }