Trait bevy::render::render_graph::RenderGraphApp

pub trait RenderGraphApp {
    // Required methods
    fn add_render_sub_graph(
        &mut self,
        sub_graph: impl RenderSubGraph
    ) -> &mut Self;
    fn add_render_graph_node<T>(
        &mut self,
        sub_graph: impl RenderSubGraph,
        node_label: impl RenderLabel
    ) -> &mut Self
       where T: Node + FromWorld;
    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

fn add_render_graph_node<T>( &mut self, sub_graph: impl RenderSubGraph, node_label: impl RenderLabel ) -> &mut Self
where 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<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

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.

Implementors§