Fix flipped assert condition in pipeline layout (#2392)

This commit is contained in:
Rua 2023-11-01 17:20:40 +01:00 committed by GitHub
parent 4e79d5dcc6
commit 14005458a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,7 +295,7 @@ impl PipelineLayout {
#[inline]
pub fn is_compatible_with(&self, other: &PipelineLayout, num_sets: u32) -> bool {
let num_sets = num_sets as usize;
assert!(num_sets >= self.set_layouts.len());
assert!(num_sets <= self.set_layouts.len());
if self == other {
return true;