[][src]Struct rendy_graph::Graph

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

Graph that renders whole frame.

Methods

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

pub fn run(&mut self, factory: &mut Factory<B>, aux: &mut T)[src]

Perform graph execution. Run every node of the graph and submit resulting command buffers to the queues.

Parameters

command_queues - function to get CommandQueue by QueueFamilyId and index. Graph guarantees that it will submit only command buffers allocated from the command pool associated with specified QueueFamilyId.

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

aux - auxiliary data that Nodes use.

fences - vector of fences that will be signaled after all commands are complete. Fences that are attached to last submissions of every queue are reset. This function may not use all fences. Unused fences are left in signaled state. If this function needs more fences they will be allocated from device and pushed to this Vec. So it's OK to start with empty Vec.

pub fn node_queue(&self, node: NodeId) -> QueueId[src]

Get queue that will exeute given node.

pub fn dispose(self, factory: &mut Factory<B>, data: &mut T)[src]

Dispose of the Graph.

Trait Implementations

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

Auto Trait Implementations

impl<B, T: ?Sized> Send for Graph<B, T> where
    <B as Backend>::Buffer: Send + Sync,
    <B as Backend>::Fence: Send,
    <B as Backend>::Image: Send + Sync,
    <B as Backend>::Semaphore: Send

impl<B, T: ?Sized> Sync for Graph<B, T> where
    <B as Backend>::Buffer: Send + Sync,
    <B as Backend>::Fence: Sync,
    <B as Backend>::Image: Send + Sync,
    <B as Backend>::Semaphore: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Supports for T[src]

impl<T> Erased for T