[−][src]Struct rendy_graph::GraphBuilder
Build graph from nodes and resource.
Implementations
impl<B, T> GraphBuilder<B, T> where
B: Backend,
T: ?Sized,
[src]
B: Backend,
T: ?Sized,
pub fn new() -> Self
[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: Level,
format: Format,
clear: Option<ClearValue>
) -> ImageId
[src]
&mut self,
kind: Kind,
levels: Level,
format: Format,
clear: Option<ClearValue>
) -> ImageId
Create new image owned by graph.
pub fn add_node<N: NodeBuilder<B, T> + 'static>(&mut self, builder: N) -> NodeId
[src]
Add node to the graph.
pub fn add_dyn_node(
&mut self,
builder: Box<dyn NodeBuilder<B, T> + 'static>
) -> NodeId
[src]
&mut self,
builder: Box<dyn NodeBuilder<B, T> + 'static>
) -> NodeId
Add boxed node to the graph.
pub fn with_frames_in_flight(self, frames_in_flight: u32) -> Self
[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>, GraphBuildError>
[src]
self,
factory: &mut Factory<B>,
families: &mut Families<B>,
aux: &T
) -> Result<Graph<B, T>, GraphBuildError>
Build Graph
.
Parameters
frames
- maximum number of frames Graph
will render simultaneously.
families
- Iterator
of B::QueueFamily
s.
device
- Device<B>
implementation. Device<B>
or wrapper.
aux
- auxiliary data that Node
s use.
Trait Implementations
impl<B, T> Debug for GraphBuilder<B, T> where
B: Backend,
T: ?Sized,
[src]
B: Backend,
T: ?Sized,
impl<B, T> Default for GraphBuilder<B, T> where
B: Backend,
T: ?Sized,
[src]
B: Backend,
T: ?Sized,
Auto Trait Implementations
impl<B, T> !RefUnwindSafe for GraphBuilder<B, T>
impl<B, T> !Send for GraphBuilder<B, T>
impl<B, T> !Sync for GraphBuilder<B, T>
impl<B, T: ?Sized> Unpin for GraphBuilder<B, T>
impl<B, T> !UnwindSafe for GraphBuilder<B, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,