[−][src]Struct ohm::framegraph::FrameGraphPlan
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]
&mut self,
deps: &[NodeId],
plan: P
) -> NodeId
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(&self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,