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

fn add_render_graph_node<T>( &mut self, sub_graph_name: &'static str, node_name: &'static str ) -> &mut Selfwhere T: Node + FromWorld,

Add a Node to the RenderGraph:

  • Create the Node using the FromWorld implementation
  • Add it to the graph

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

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

Implementors§