From 14005458a1069a61873a96cc7e27c17a5ed5aa1a Mon Sep 17 00:00:00 2001 From: Rua Date: Wed, 1 Nov 2023 17:20:40 +0100 Subject: [PATCH] Fix flipped assert condition in pipeline layout (#2392) --- vulkano/src/pipeline/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkano/src/pipeline/layout.rs b/vulkano/src/pipeline/layout.rs index e687d208..a1e53e39 100644 --- a/vulkano/src/pipeline/layout.rs +++ b/vulkano/src/pipeline/layout.rs @@ -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;