[][src]Struct ohm::framegraph::FrameGraphPlan

pub struct FrameGraphPlan<B: Backend> { /* fields omitted */ }

Plan for building or making changes to the frame graph.

Methods

impl<B: Backend> FrameGraphPlan<B>[src]

pub fn new() -> FrameGraphPlan<B>[src]

Create a new frame graph plan. Does the same thing as FrameGraph::plan does.

pub fn add_node<P: Into<AnyNodePlan<B>>>(
    &mut self,
    deps: &[NodeId],
    plan: P
) -> NodeId
[src]

Add a new node to the plan with specified dependencies.

Returns ID of the newly created node.

pub fn commit(&mut self, fg: &mut FrameGraph<B>)[src]

Commit changes to the framegraph allocating or just updating resources for planned nodes.

After that, plan is cleared and can (and should) be used again next frame to reduce memory allocation count. If you want to commit the same plan twice, you can .clone() it.

Trait Implementations

impl<B: Backend> Default for FrameGraphPlan<B>[src]

impl<B: Clone + Backend> Clone for FrameGraphPlan<B>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<B> Send for FrameGraphPlan<B>

impl<B> !Sync for FrameGraphPlan<B>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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 for T where
    T: ?Sized
[src]

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

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

impl<T> Supports for T[src]