[][src]Trait rendy::graph::NodeDesc

pub trait NodeDesc<B, T>: 'static + Debug where
    B: Backend,
    T: ?Sized
{ type Node: Node<B, T>; fn build(
        self,
        ctx: &GraphContext<B>,
        factory: &mut Factory<B>,
        family: &mut Family<B, QueueType>,
        queue: usize,
        aux: &T,
        buffers: Vec<NodeBuffer>,
        images: Vec<NodeImage>
    ) -> Result<Self::Node, Error>; fn builder(self) -> DescBuilder<B, T, Self> { ... }
fn buffers(&self) -> Vec<BufferAccess> { ... }
fn images(&self) -> Vec<ImageAccess> { ... } }

Description of the node. Implementation of the builder type provide framegraph with static information about node that is used for building the node.

Associated Types

type Node: Node<B, T>

Node this builder builds.

Loading content...

Required methods

fn build(
    self,
    ctx: &GraphContext<B>,
    factory: &mut Factory<B>,
    family: &mut Family<B, QueueType>,
    queue: usize,
    aux: &T,
    buffers: Vec<NodeBuffer>,
    images: Vec<NodeImage>
) -> Result<Self::Node, Error>

Build the node.

Parameters

factory - factory instance. aux - auxiliary data. family - id of the family this node will be executed on. resources - set of transient resources managed by graph. with barriers required for interface resources.

Loading content...

Provided methods

fn builder(self) -> DescBuilder<B, T, Self>

Make node builder.

fn buffers(&self) -> Vec<BufferAccess>

Get set or buffer resources the node uses.

fn images(&self) -> Vec<ImageAccess>

Get set or image resources the node uses.

Loading content...

Implementors

Loading content...