pub trait RenderGraphApp {
// Required methods
fn add_render_sub_graph(
&mut self,
sub_graph_name: &'static str,
) -> &mut Self;
fn add_render_graph_node<T>(
&mut self,
sub_graph_name: &'static str,
node_name: &'static str,
) -> &mut Self
where T: Node + FromWorld;
fn add_render_graph_edges(
&mut self,
sub_graph_name: &'static str,
edges: &[&'static str],
) -> &mut Self;
fn add_render_graph_edge(
&mut self,
sub_graph_name: &'static str,
output_edge: &'static str,
input_edge: &'static str,
) -> &mut Self;
}Expand description
Adds common RenderGraph operations to App.
Required Methods§
fn add_render_sub_graph(&mut self, sub_graph_name: &'static str) -> &mut Self
Sourcefn add_render_graph_node<T>(
&mut self,
sub_graph_name: &'static str,
node_name: &'static str,
) -> &mut Self
fn add_render_graph_node<T>( &mut self, sub_graph_name: &'static str, node_name: &'static str, ) -> &mut Self
Add a Node to the RenderGraph:
Sourcefn add_render_graph_edges(
&mut self,
sub_graph_name: &'static str,
edges: &[&'static str],
) -> &mut Self
fn add_render_graph_edges( &mut self, sub_graph_name: &'static str, edges: &[&'static str], ) -> &mut Self
Automatically add the required node edges based on the given ordering
Sourcefn add_render_graph_edge(
&mut self,
sub_graph_name: &'static str,
output_edge: &'static str,
input_edge: &'static str,
) -> &mut Self
fn add_render_graph_edge( &mut self, sub_graph_name: &'static str, output_edge: &'static str, input_edge: &'static str, ) -> &mut Self
Add node edge to the specified graph
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.