Improve check

This commit is contained in:
hodasemi 2024-03-22 07:10:24 +01:00
parent c6e0b36923
commit 0ce12f2c7d

View file

@ -270,15 +270,8 @@ impl DescriptorSet {
{
assert!(writes.len() <= self.pool.descriptor_set_layout.bindings().len());
for (i, binding) in self
.pool
.descriptor_set_layout
.bindings()
.iter()
.enumerate()
{
if let Some(write) = writes.get(i) {
assert_eq!(write.binding, binding.binding);
for binding in self.pool.descriptor_set_layout.bindings().iter() {
if let Some(write) = writes.iter().find(|write| write.binding == binding.binding) {
assert_eq!(write.descriptor_type, binding.desc_type);
}
}