pub struct SubpassBuilder<B: Backend, T: ?Sized> { /* private fields */ }
Expand description
Build for rendering sub-pass.
Implementations§
Source§impl<B, T> SubpassBuilder<B, T>
impl<B, T> SubpassBuilder<B, T>
Sourcepub fn add_group<R>(&mut self, group: R) -> &mut Selfwhere
R: RenderGroupBuilder<B, T> + 'static,
pub fn add_group<R>(&mut self, group: R) -> &mut Selfwhere
R: RenderGroupBuilder<B, T> + 'static,
Add render group to this subpass.
Sourcepub fn with_group<R>(self, group: R) -> Selfwhere
R: RenderGroupBuilder<B, T> + 'static,
pub fn with_group<R>(self, group: R) -> Selfwhere
R: RenderGroupBuilder<B, T> + 'static,
Add render group to this subpass.
Sourcepub fn add_dyn_group(
&mut self,
group: Box<dyn RenderGroupBuilder<B, T>>,
) -> &mut Self
pub fn add_dyn_group( &mut self, group: Box<dyn RenderGroupBuilder<B, T>>, ) -> &mut Self
Add render group of dynamic type to this subpass.
Sourcepub fn with_dyn_group(self, group: Box<dyn RenderGroupBuilder<B, T>>) -> Self
pub fn with_dyn_group(self, group: Box<dyn RenderGroupBuilder<B, T>>) -> Self
Add render group of dynamic type to this subpass.
Sourcepub fn with_input(self, input: ImageId) -> Self
pub fn with_input(self, input: ImageId) -> Self
Add input attachment to the subpass.
Sourcepub fn with_color(self, color: ImageId) -> Self
pub fn with_color(self, color: ImageId) -> Self
Add color attachment to the subpass.
Sourcepub fn add_color_surface(&mut self) -> &mut Self
pub fn add_color_surface(&mut self) -> &mut Self
Add surface as color attachment to the subpass.
Sourcepub fn with_color_surface(self) -> Self
pub fn with_color_surface(self) -> Self
Add surface as color attachment to the subpass.
Sourcepub fn set_depth_stencil(&mut self, depth_stencil: ImageId) -> &mut Self
pub fn set_depth_stencil(&mut self, depth_stencil: ImageId) -> &mut Self
Set depth-stencil attachment to the subpass.
Sourcepub fn with_depth_stencil(self, depth_stencil: ImageId) -> Self
pub fn with_depth_stencil(self, depth_stencil: ImageId) -> Self
Set depth-stencil attachment to the subpass.
Sourcepub fn set_depth_stencil_surface(&mut self) -> &mut Self
pub fn set_depth_stencil_surface(&mut self) -> &mut Self
Set surface as depth-stencil attachment to the subpass.
Sourcepub fn with_depth_stencil_surface(self) -> Self
pub fn with_depth_stencil_surface(self) -> Self
Set surface as depth-stencil attachment to the subpass.
Sourcepub fn add_dependency(&mut self, dependency: NodeId) -> &mut Self
pub fn add_dependency(&mut self, dependency: NodeId) -> &mut Self
Add dependency.
RenderPassNode
will be placed after its dependencies.
Sourcepub fn with_dependency(self, dependency: NodeId) -> Self
pub fn with_dependency(self, dependency: NodeId) -> Self
Add dependency.
RenderPassNode
will be placed after its dependencies.
Sourcepub fn into_pass(self) -> RenderPassNodeBuilder<B, T>
pub fn into_pass(self) -> RenderPassNodeBuilder<B, T>
Make render pass from subpass.
Trait Implementations§
Source§impl<B, T> Debug for SubpassBuilder<B, T>
impl<B, T> Debug for SubpassBuilder<B, T>
Auto Trait Implementations§
impl<B, T> Freeze for SubpassBuilder<B, T>where
T: ?Sized,
impl<B, T> !RefUnwindSafe for SubpassBuilder<B, T>
impl<B, T> !Send for SubpassBuilder<B, T>
impl<B, T> !Sync for SubpassBuilder<B, T>
impl<B, T> Unpin for SubpassBuilder<B, T>where
T: ?Sized,
impl<B, T> !UnwindSafe for SubpassBuilder<B, T>
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