mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Merge #798
798: Fixed storage buffer counting towards storage textures for binding validation r=kvark a=Wumpf See title. (broke my group layout creation since my compute shaders need quite a few storage buffers _and_ storage textures bound... ;-)) Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
@@ -148,7 +148,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user