diff --git a/lyra-game/src/render/graph/mod.rs b/lyra-game/src/render/graph/mod.rs index ba50510..21fe746 100644 --- a/lyra-game/src/render/graph/mod.rs +++ b/lyra-game/src/render/graph/mod.rs @@ -132,6 +132,11 @@ impl RenderGraph { // if there is a slot of the same name slot.id = *id; } else { + debug_assert!(!self.slots.contains_key(&slot.id), + "Reuse of id detected in render graph! Pass: {}, slot: {}", + desc.name, slot.name, + ); + let res_slot = ResourcedSlot { name: slot.name.clone(), ty: slot.ty,