bevy_render::render_graph

Trait 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

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.

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§