Implement a Render Graph #16

Merged
SeanOMik merged 20 commits from feature/render-graph into main 2024-06-15 22:54:47 +00:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit bb21805278 - Show all commits

View File

@ -132,6 +132,11 @@ impl RenderGraph {
// if there is a slot of the same name // if there is a slot of the same name
slot.id = *id; slot.id = *id;
} else { } 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 { let res_slot = ResourcedSlot {
name: slot.name.clone(), name: slot.name.clone(),
ty: slot.ty, ty: slot.ty,