[−][src]Struct rendy_graph::DescBuilder
Builder for the node.
Methods
impl<B, T, N> DescBuilder<B, T, N> where
B: Backend,
T: ?Sized,
[src]
B: Backend,
T: ?Sized,
pub fn add_buffer(&mut self, buffer: BufferId) -> &mut Self
[src]
Add buffer to the node. This method must be called for each buffer node uses.
pub fn with_buffer(self, buffer: BufferId) -> Self
[src]
Add buffer to the node. This method must be called for each buffer node uses.
pub fn add_image(&mut self, image: ImageId) -> &mut Self
[src]
Add image to the node. This method must be called for each image node uses.
pub fn with_image(self, image: ImageId) -> Self
[src]
Add image to the node. This method must be called for each image node uses.
pub fn add_dependency(&mut self, dependency: NodeId) -> &mut Self
[src]
Add dependency. Node will be placed after its dependencies.
pub fn with_dependency(self, dependency: NodeId) -> Self
[src]
Add dependency. Node will be placed after its dependencies.
Trait Implementations
impl<B, T, D> RenderGroupBuilder<B, T> for DescBuilder<B, T, D> where
B: Backend,
T: ?Sized,
D: RenderGroupDesc<B, T>,
[src]
B: Backend,
T: ?Sized,
D: RenderGroupDesc<B, T>,
fn colors(&self) -> usize
[src]
fn depth(&self) -> bool
[src]
fn buffers(&self) -> Vec<(BufferId, BufferAccess)>
[src]
fn images(&self) -> Vec<(ImageId, ImageAccess)>
[src]
fn dependencies(&self) -> Vec<NodeId>
[src]
fn build<'a>(
self: Box<Self>,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
queue: QueueId,
aux: &T,
framebuffer_width: u32,
framebuffer_height: u32,
subpass: Subpass<B>,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>
) -> Result<Box<dyn RenderGroup<B, T>>, Error>
[src]
self: Box<Self>,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
queue: QueueId,
aux: &T,
framebuffer_width: u32,
framebuffer_height: u32,
subpass: Subpass<B>,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>
) -> Result<Box<dyn RenderGroup<B, T>>, Error>
fn into_subpass(self) -> SubpassBuilder<B, T> where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
impl<B, T, N> NodeBuilder<B, T> for DescBuilder<B, T, N> where
B: Backend,
T: ?Sized,
N: NodeDesc<B, T>,
[src]
B: Backend,
T: ?Sized,
N: NodeDesc<B, T>,
fn family(
&self,
_factory: &mut Factory<B>,
families: &[Family<B>]
) -> Option<FamilyId>
[src]
&self,
_factory: &mut Factory<B>,
families: &[Family<B>]
) -> Option<FamilyId>
fn buffers(&self) -> Vec<(BufferId, BufferAccess)>
[src]
fn images(&self) -> Vec<(ImageId, ImageAccess)>
[src]
fn dependencies(&self) -> Vec<NodeId>
[src]
fn build<'a>(
self: Box<Self>,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
family: &mut Family<B>,
queue: usize,
aux: &T,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>
) -> Result<Box<dyn DynNode<B, T>>, Error>
[src]
self: Box<Self>,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
family: &mut Family<B>,
queue: usize,
aux: &T,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>
) -> Result<Box<dyn DynNode<B, T>>, Error>
impl<B: Backend, T: ?Sized, N> Debug for DescBuilder<B, T, N> where
N: Debug,
[src]
N: Debug,
Auto Trait Implementations
impl<B, T: ?Sized, N> Send for DescBuilder<B, T, N> where
N: Send,
N: Send,
impl<B, T: ?Sized, N> Sync for DescBuilder<B, T, N> where
N: Sync,
N: Sync,
impl<B, T: ?Sized, N> Unpin for DescBuilder<B, T, N> where
N: Unpin,
N: Unpin,
impl<B, T: ?Sized, N> UnwindSafe for DescBuilder<B, T, N> where
N: UnwindSafe,
N: UnwindSafe,
impl<B, T: ?Sized, N> RefUnwindSafe for DescBuilder<B, T, N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
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,