pub struct DescBuilder<B: Backend, T: ?Sized, N> { /* private fields */ }
Expand description
Builder for the node.
Implementations§
Source§impl<B, T, N> DescBuilder<B, T, N>
impl<B, T, N> DescBuilder<B, T, N>
Sourcepub fn add_buffer(&mut self, buffer: BufferId) -> &mut Self
pub fn add_buffer(&mut self, buffer: BufferId) -> &mut Self
Add buffer to the node. This method must be called for each buffer node uses.
Sourcepub fn with_buffer(self, buffer: BufferId) -> Self
pub fn with_buffer(self, buffer: BufferId) -> Self
Add buffer to the node. This method must be called for each buffer node uses.
Sourcepub fn add_image(&mut self, image: ImageId) -> &mut Self
pub fn add_image(&mut self, image: ImageId) -> &mut Self
Add image to the node. This method must be called for each image node uses.
Sourcepub fn with_image(self, image: ImageId) -> Self
pub fn with_image(self, image: ImageId) -> Self
Add image to the node. This method must be called for each image node uses.
Sourcepub fn add_dependency(&mut self, dependency: NodeId) -> &mut Self
pub fn add_dependency(&mut self, dependency: NodeId) -> &mut Self
Add dependency. Node will be placed after its dependencies.
Sourcepub fn with_dependency(self, dependency: NodeId) -> Self
pub fn with_dependency(self, dependency: NodeId) -> Self
Add dependency. Node will be placed after its dependencies.
Trait Implementations§
Source§impl<B, T, N> Debug for DescBuilder<B, T, N>
impl<B, T, N> Debug for DescBuilder<B, T, N>
Source§impl<B, T, N> NodeBuilder<B, T> for DescBuilder<B, T, N>
impl<B, T, N> NodeBuilder<B, T> for DescBuilder<B, T, N>
Source§impl<B, T, D> RenderGroupBuilder<B, T> for DescBuilder<B, T, D>
impl<B, T, D> RenderGroupBuilder<B, T> for DescBuilder<B, T, D>
Source§fn dependencies(&self) -> Vec<NodeId>
fn dependencies(&self) -> Vec<NodeId>
Get nodes this group depends on.
Source§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>>, CreationError>
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>>, CreationError>
Build render group instance.
Source§fn into_subpass(self) -> SubpassBuilder<B, T>where
Self: Sized + 'static,
fn into_subpass(self) -> SubpassBuilder<B, T>where
Self: Sized + 'static,
Make subpass from render group.
Auto Trait Implementations§
impl<B, T, N> Freeze for DescBuilder<B, T, N>
impl<B, T, N> RefUnwindSafe for DescBuilder<B, T, N>where
N: RefUnwindSafe,
T: ?Sized,
impl<B, T, N> Send for DescBuilder<B, T, N>
impl<B, T, N> Sync for DescBuilder<B, T, N>
impl<B, T, N> Unpin for DescBuilder<B, T, N>
impl<B, T, N> UnwindSafe for DescBuilder<B, T, N>where
N: UnwindSafe,
T: ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more