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: Node + FromWorld>(
        &mut self,
        sub_graph_name: &'static str,
        node_name: &'static str
    ) -> &mut Self;
    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§

source

fn add_render_sub_graph(&mut self, sub_graph_name: &'static str) -> &mut Self

source

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

Add a Node to the RenderGraph:

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

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

source

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

Implementations on Foreign Types§

source§

impl RenderGraphApp for App

source§

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

source§

fn add_render_graph_edges( &mut self, sub_graph_name: &'static str, edges: &[&'static str] ) -> &mut Self

source§

fn add_render_graph_edge( &mut self, sub_graph_name: &'static str, output_edge: &'static str, input_edge: &'static str ) -> &mut Self

source§

fn add_render_sub_graph(&mut self, sub_graph_name: &'static str) -> &mut Self

Implementors§