[−][src]Struct rendy_graph::GraphBuilder
Build graph from nodes and resource.
Methods
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 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>, Error>
[src]
self,
factory: &mut Factory<B>,
families: &mut Families<B>,
aux: &T
) -> Result<Graph<B, T>, Error>
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: Backend, T: ?Sized> Debug for GraphBuilder<B, T>
[src]
Auto Trait Implementations
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>
impl<B, T> !RefUnwindSafe for GraphBuilder<B, T>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,