Improve check
This commit is contained in:
parent
c6e0b36923
commit
0ce12f2c7d
1 changed files with 2 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue