Also add length test

This commit is contained in:
hodasemi 2023-04-21 10:49:46 +02:00
parent 21c2256975
commit fc23d9c0e7

View file

@ -268,6 +268,8 @@ impl DescriptorSet {
#[cfg(debug_assertions)]
{
assert!(writes.len() <= self.pool.descriptor_set_layout.bindings().len());
for (i, binding) in self
.pool
.descriptor_set_layout