Trait bevy_render::render_graph::Node[][src]

pub trait Node: Downcast + Send + Sync + 'static {
    fn update(
        &mut self,
        world: &World,
        render_context: &mut dyn RenderContext,
        input: &ResourceSlots,
        output: &mut ResourceSlots
    ); fn input(&self) -> &[ResourceSlotInfo] { ... }
fn output(&self) -> &[ResourceSlotInfo] { ... }
fn prepare(&mut self, _world: &mut World) { ... } }

Required methods

fn update(
    &mut self,
    world: &World,
    render_context: &mut dyn RenderContext,
    input: &ResourceSlots,
    output: &mut ResourceSlots
)
[src]

Run the graph node logic. This runs once per graph run after Node::prepare has been called on all nodes.

Loading content...

Provided methods

fn input(&self) -> &[ResourceSlotInfo][src]

fn output(&self) -> &[ResourceSlotInfo][src]

fn prepare(&mut self, _world: &mut World)[src]

Prepare the graph node with unique world access. This runs once per graph run before Node::update is called.

Loading content...

Implementations

impl dyn Node[src]

pub fn is<__T: Node>(&self) -> bool[src]

Returns true if the trait object wraps an object of type __T.

pub fn downcast<__T: Node>(self: Box<Self>) -> Result<Box<__T>, Box<Self>>[src]

Returns a boxed object from a boxed trait object if the underlying object is of type __T. Returns the original boxed trait if it isn’t.

pub fn downcast_rc<__T: Node>(self: Rc<Self>) -> Result<Rc<__T>, Rc<Self>>[src]

Returns an Rc-ed object from an Rc-ed trait object if the underlying object is of type __T. Returns the original Rc-ed trait if it isn’t.

pub fn downcast_ref<__T: Node>(&self) -> Option<&__T>[src]

Returns a reference to the object within the trait object if it is of type __T, or None if it isn’t.

pub fn downcast_mut<__T: Node>(&mut self) -> Option<&mut __T>[src]

Returns a mutable reference to the object within the trait object if it is of type __T, or None if it isn’t.

Implementors

impl Node for CameraNode[src]

impl Node for SharedBuffersNode[src]

impl Node for TextureCopyNode[src]

impl Node for WindowSwapChainNode[src]

impl Node for WindowTextureNode[src]

impl<Q: WorldQuery + Send + Sync + 'static> Node for PassNode<Q> where
    Q::Fetch: ReadOnlyFetch
[src]

impl<T> Node for AssetRenderResourcesNode<T> where
    T: RenderResources
[src]

impl<T> Node for RenderResourcesNode<T> where
    T: RenderResources
[src]

Loading content...