Trait bevy_render::render_graph::RenderGraphApp
source · pub trait RenderGraphApp {
// Required methods
fn add_render_sub_graph(
&mut self,
sub_graph: impl RenderSubGraph
) -> &mut Self;
fn add_render_graph_node<T: Node + FromWorld>(
&mut self,
sub_graph: impl RenderSubGraph,
node_label: impl RenderLabel
) -> &mut Self;
fn add_render_graph_edges<const N: usize>(
&mut self,
sub_graph: impl RenderSubGraph,
edges: impl IntoRenderNodeArray<N>
) -> &mut Self;
fn add_render_graph_edge(
&mut self,
sub_graph: impl RenderSubGraph,
output_node: impl RenderLabel,
input_node: impl RenderLabel
) -> &mut Self;
}
Expand description
Adds common RenderGraph
operations to SubApp
(and App
).
Required Methods§
fn add_render_sub_graph(&mut self, sub_graph: impl RenderSubGraph) -> &mut Self
sourcefn add_render_graph_node<T: Node + FromWorld>(
&mut self,
sub_graph: impl RenderSubGraph,
node_label: impl RenderLabel
) -> &mut Self
fn add_render_graph_node<T: Node + FromWorld>( &mut self, sub_graph: impl RenderSubGraph, node_label: impl RenderLabel ) -> &mut Self
Add a Node
to the RenderGraph
:
sourcefn add_render_graph_edges<const N: usize>(
&mut self,
sub_graph: impl RenderSubGraph,
edges: impl IntoRenderNodeArray<N>
) -> &mut Self
fn add_render_graph_edges<const N: usize>( &mut self, sub_graph: impl RenderSubGraph, edges: impl IntoRenderNodeArray<N> ) -> &mut Self
Automatically add the required node edges based on the given ordering
sourcefn add_render_graph_edge(
&mut self,
sub_graph: impl RenderSubGraph,
output_node: impl RenderLabel,
input_node: impl RenderLabel
) -> &mut Self
fn add_render_graph_edge( &mut self, sub_graph: impl RenderSubGraph, output_node: impl RenderLabel, input_node: impl RenderLabel ) -> &mut Self
Add node edge to the specified graph
Object Safety§
This trait is not object safe.