expose subgraph iterator (#25)
This commit is contained in:
parent
7bbeb11ed7
commit
30b8324672
@ -261,6 +261,18 @@ impl RenderGraph {
|
|||||||
self.nodes.values_mut()
|
self.nodes.values_mut()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn iter_sub_graphs(&self) -> impl Iterator<Item = (&str, &RenderGraph)> {
|
||||||
|
self.sub_graphs
|
||||||
|
.iter()
|
||||||
|
.map(|(name, graph)| (name.as_ref(), graph))
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn iter_sub_graphs_mut(&mut self) -> impl Iterator<Item = (&str, &mut RenderGraph)> {
|
||||||
|
self.sub_graphs
|
||||||
|
.iter_mut()
|
||||||
|
.map(|(name, graph)| (name.as_ref(), graph))
|
||||||
|
}
|
||||||
|
|
||||||
pub fn iter_node_inputs(
|
pub fn iter_node_inputs(
|
||||||
&self,
|
&self,
|
||||||
label: impl Into<NodeLabel>,
|
label: impl Into<NodeLabel>,
|
||||||
|
Loading…
Reference in New Issue
Block a user