mirror of
https://github.com/bevyengine/bevy
synced 2024-11-28 23:50:20 +00:00
expose subgraph iterator (#25)
This commit is contained in:
parent
7bbeb11ed7
commit
30b8324672
1 changed files with 12 additions and 0 deletions
|
@ -261,6 +261,18 @@ impl RenderGraph {
|
|||
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(
|
||||
&self,
|
||||
label: impl Into<NodeLabel>,
|
||||
|
|
Loading…
Reference in a new issue