Fixed storage buffer counting towards storage textures for binding validation

This commit is contained in:
Andreas Reich
2020-07-15 22:56:30 +02:00
parent fc4baa3107
commit ace186623e

View File

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