[][src]Trait rendy::graph::NodeBuilder

pub trait NodeBuilder<B, T>: Debug where
    B: Backend,
    T: ?Sized
{ fn family(
        &self,
        factory: &mut Factory<B>,
        families: &[Family<B, QueueType>]
    ) -> Option<FamilyId>;
fn buffers(&self) -> Vec<(BufferId, BufferAccess)>;
fn images(&self) -> Vec<(ImageId, ImageAccess)>;
fn dependencies(&self) -> Vec<NodeId>;
fn build(
        self: Box<Self>,
        ctx: &GraphContext<B>,
        factory: &mut Factory<B>,
        family: &mut Family<B, QueueType>,
        queue: usize,
        aux: &T,
        buffers: Vec<NodeBuffer>,
        images: Vec<NodeImage>
    ) -> Result<Box<dyn DynNode<B, T> + 'static>, Error>; }

Dynamic node builder that emits DynNode.

Required methods

fn family(
    &self,
    factory: &mut Factory<B>,
    families: &[Family<B, QueueType>]
) -> Option<FamilyId>

Pick family for this node to be executed onto.

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

Get buffer accessed by the node.

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

Get images accessed by the node.

fn dependencies(&self) -> Vec<NodeId>

Indices of nodes this one dependes on.

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

Build node.

Loading content...

Implementors

impl<B, T> NodeBuilder<B, T> for PresentBuilder<B> where
    B: Backend,
    T: ?Sized
[src]

impl<B, T> NodeBuilder<B, T> for RenderPassNodeBuilder<B, T> where
    B: Backend,
    T: 'static + ?Sized
[src]

impl<B, T, N> NodeBuilder<B, T> for DescBuilder<B, T, N> where
    B: Backend,
    N: NodeDesc<B, T>,
    T: ?Sized
[src]

Loading content...