[−][src]Struct rendy_graph::Graph
Graph that renders whole frame.
Methods
impl<B, T> Graph<B, T> where
B: Backend,
T: ?Sized,
[src]
B: Backend,
T: ?Sized,
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 Node
s 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
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,
<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,
<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]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,