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§

source

fn add_render_sub_graph(&mut self, sub_graph: impl RenderSubGraph) -> &mut Self

source

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:

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

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

source

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.

Implementations on Foreign Types§

source§

impl RenderGraphApp for App

source§

fn add_render_graph_node<T: Node + FromWorld>( &mut self, sub_graph: impl RenderSubGraph, node_label: impl RenderLabel ) -> &mut Self

source§

fn add_render_graph_edge( &mut self, sub_graph: impl RenderSubGraph, output_node: impl RenderLabel, input_node: impl RenderLabel ) -> &mut Self

source§

fn add_render_graph_edges<const N: usize>( &mut self, sub_graph: impl RenderSubGraph, edges: impl IntoRenderNodeArray<N> ) -> &mut Self

source§

fn add_render_sub_graph(&mut self, sub_graph: impl RenderSubGraph) -> &mut Self

source§

impl RenderGraphApp for SubApp

source§

fn add_render_graph_node<T: Node + FromWorld>( &mut self, sub_graph: impl RenderSubGraph, node_label: impl RenderLabel ) -> &mut Self

source§

fn add_render_graph_edges<const N: usize>( &mut self, sub_graph: impl RenderSubGraph, edges: impl IntoRenderNodeArray<N> ) -> &mut Self

source§

fn add_render_graph_edge( &mut self, sub_graph: impl RenderSubGraph, output_node: impl RenderLabel, input_node: impl RenderLabel ) -> &mut Self

source§

fn add_render_sub_graph(&mut self, sub_graph: impl RenderSubGraph) -> &mut Self

Implementors§