[−][src]Trait amethyst_rendy::rendy::graph::Node
The node is building block of the framegraph.
Node defines set of resources and operations to perform over them.
Read-only data for operations comes from auxiliary data source T
.
Parameters
B
- backend type.
T
- auxiliary data type.
Associated Types
type Capability: Capability
Capability required by node. Graph will execute this node on command queue that supports this capability level.
type Desc: NodeDesc<B, T>
Description type to instantiate the node.
Required methods
fn run(
&'a mut self,
ctx: &GraphContext<B>,
factory: &Factory<B>,
aux: &T,
frames: &'a Frames<B>
) -> Self::Submittables
&'a mut self,
ctx: &GraphContext<B>,
factory: &Factory<B>,
aux: &T,
frames: &'a Frames<B>
) -> Self::Submittables
Record commands required by node. Returned submits are guaranteed to be submitted within specified frame.
unsafe fn dispose(self, factory: &mut Factory<B>, aux: &T)
Provided methods
fn desc() -> Self::Desc where
Self::Desc: Default,
Self::Desc: Default,
Desc creation.
Convenient method if Self::Desc
implements Default
.
fn builder() -> DescBuilder<B, T, Self::Desc> where
Self::Desc: Default,
Self::Desc: Default,
Builder creation.