Trait bevy_render::render_graph::Node [−][src]
Required methods
fn update(
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
input: &ResourceSlots,
output: &mut ResourceSlots
)
[src]
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
input: &ResourceSlots,
output: &mut ResourceSlots
)
Run the graph node logic. This runs once per graph run after Node::prepare has been called on all nodes.
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.
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]
fn update(
&mut self,
_world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
[src]
&mut self,
_world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
impl Node for SharedBuffersNode
[src]
fn update(
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
[src]
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
impl Node for TextureCopyNode
[src]
fn update(
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
[src]
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
impl Node for WindowSwapChainNode
[src]
fn output(&self) -> &[ResourceSlotInfo]
[src]
fn update(
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
output: &mut ResourceSlots
)
[src]
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
output: &mut ResourceSlots
)
impl Node for WindowTextureNode
[src]
fn output(&self) -> &[ResourceSlotInfo]
[src]
fn update(
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
output: &mut ResourceSlots
)
[src]
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
output: &mut ResourceSlots
)
impl<Q: WorldQuery + Send + Sync + 'static> Node for PassNode<Q> where
Q::Fetch: ReadOnlyFetch,
[src]
Q::Fetch: ReadOnlyFetch,
fn input(&self) -> &[ResourceSlotInfo]
[src]
fn prepare(&mut self, world: &mut World)
[src]
fn update(
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
input: &ResourceSlots,
_output: &mut ResourceSlots
)
[src]
&mut self,
world: &World,
render_context: &mut dyn RenderContext,
input: &ResourceSlots,
_output: &mut ResourceSlots
)
impl<T> Node for AssetRenderResourcesNode<T> where
T: RenderResources,
[src]
T: RenderResources,
fn update(
&mut self,
_world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
[src]
&mut self,
_world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
impl<T> Node for RenderResourcesNode<T> where
T: RenderResources,
[src]
T: RenderResources,
fn update(
&mut self,
_world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)
[src]
&mut self,
_world: &World,
render_context: &mut dyn RenderContext,
_input: &ResourceSlots,
_output: &mut ResourceSlots
)