[][src]Struct amethyst_rendy::rendy::graph::GraphBuilder

pub struct GraphBuilder<B, T> where
    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() -> GraphBuilder<B, T>[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: u8,
    format: Format,
    clear: Option<ClearValue>
) -> ImageId
[src]

Create new image owned by graph.

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

Add node to the graph.

pub fn with_frames_in_flight(self, frames_in_flight: u32) -> GraphBuilder<B, T>[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>, Error>
[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> Debug for GraphBuilder<B, T> where
    B: Backend,
    T: ?Sized
[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

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

impl<T> Erased for T[src]

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Any for T where
    T: Any
[src]