[][src]Struct rendy_graph::GraphBuilder

pub struct GraphBuilder<B: Backend, T: ?Sized> { /* fields omitted */ }

Build graph from nodes and resource.

Methods

impl<B, T> GraphBuilder<B, T> where
    B: Backend,
    T: ?Sized
[src]

pub fn new() -> Self[src]

Create new GraphBuilder

pub fn create_buffer(&mut self, size: u64) -> BufferId[src]

Create new buffer owned by graph.

pub fn create_image(
    &mut self,
    kind: Kind,
    levels: Level,
    format: Format,
    clear: Option<ClearValue>
) -> ImageId
[src]

Create new image owned by graph.

pub fn add_node<N: NodeBuilder<B, T> + 'static>(&mut self, builder: N) -> NodeId[src]

Add node to the graph.

pub fn add_dyn_node(
    &mut self,
    builder: Box<dyn NodeBuilder<B, T> + 'static>
) -> NodeId
[src]

Add boxed node to the graph.

pub fn with_frames_in_flight(self, frames_in_flight: u32) -> Self[src]

Choose number of frames in flight for the graph

pub fn build(
    self,
    factory: &mut Factory<B>,
    families: &mut Families<B>,
    aux: &T
) -> Result<Graph<B, T>, GraphBuildError>
[src]

Build Graph.

Parameters

frames - maximum number of frames Graph will render simultaneously.

families - Iterator of B::QueueFamilys.

device - Device<B> implementation. Device<B> or wrapper.

aux - auxiliary data that Nodes use.

Trait Implementations

impl<B, T> Default for GraphBuilder<B, T> where
    B: Backend,
    T: ?Sized
[src]

impl<B, T> Debug for GraphBuilder<B, T> where
    B: Backend,
    T: ?Sized
[src]

Auto Trait Implementations

impl<B, T> !Send for GraphBuilder<B, T>

impl<B, T> !Sync for GraphBuilder<B, T>

impl<B, T: ?Sized> Unpin for GraphBuilder<B, T>

impl<B, T> !UnwindSafe for GraphBuilder<B, T>

impl<B, T> !RefUnwindSafe for GraphBuilder<B, T>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]