[][src]Trait rendy_graph::NodeBuilder

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

Dynamic node builder that emits DynNode.

Required methods

fn family(
    &self,
    factory: &mut Factory<B>,
    families: &Families<B>
) -> 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<'a>(
    self: Box<Self>,
    ctx: &GraphContext<B>,
    factory: &mut Factory<B>,
    family: &mut Family<B>,
    queue: usize,
    aux: &T,
    buffers: Vec<NodeBuffer>,
    images: Vec<NodeImage>
) -> Result<Box<dyn DynNode<B, T>>, NodeBuildError>

Build node.

Loading content...

Implementors

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

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

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

Loading content...