rendy_graph::render

Struct SubpassBuilder

Source
pub struct SubpassBuilder<B: Backend, T: ?Sized> { /* private fields */ }
Expand description

Build for rendering sub-pass.

Implementations§

Source§

impl<B, T> SubpassBuilder<B, T>
where B: Backend, T: ?Sized,

Source

pub fn new() -> Self

Create new empty subpass builder.

Source

pub fn add_group<R>(&mut self, group: R) -> &mut Self
where R: RenderGroupBuilder<B, T> + 'static,

Add render group to this subpass.

Source

pub fn with_group<R>(self, group: R) -> Self
where R: RenderGroupBuilder<B, T> + 'static,

Add render group to this subpass.

Source

pub fn add_dyn_group( &mut self, group: Box<dyn RenderGroupBuilder<B, T>>, ) -> &mut Self

Add render group of dynamic type to this subpass.

Source

pub fn with_dyn_group(self, group: Box<dyn RenderGroupBuilder<B, T>>) -> Self

Add render group of dynamic type to this subpass.

Source

pub fn add_input(&mut self, input: ImageId) -> &mut Self

Add input attachment to the subpass.

Source

pub fn with_input(self, input: ImageId) -> Self

Add input attachment to the subpass.

Source

pub fn add_color(&mut self, color: ImageId) -> &mut Self

Add color attachment to the subpass.

Source

pub fn with_color(self, color: ImageId) -> Self

Add color attachment to the subpass.

Source

pub fn add_color_surface(&mut self) -> &mut Self

Add surface as color attachment to the subpass.

Source

pub fn with_color_surface(self) -> Self

Add surface as color attachment to the subpass.

Source

pub fn set_depth_stencil(&mut self, depth_stencil: ImageId) -> &mut Self

Set depth-stencil attachment to the subpass.

Source

pub fn with_depth_stencil(self, depth_stencil: ImageId) -> Self

Set depth-stencil attachment to the subpass.

Source

pub fn set_depth_stencil_surface(&mut self) -> &mut Self

Set surface as depth-stencil attachment to the subpass.

Source

pub fn with_depth_stencil_surface(self) -> Self

Set surface as depth-stencil attachment to the subpass.

Source

pub fn add_dependency(&mut self, dependency: NodeId) -> &mut Self

Add dependency. RenderPassNode will be placed after its dependencies.

Source

pub fn with_dependency(self, dependency: NodeId) -> Self

Add dependency. RenderPassNode will be placed after its dependencies.

Source

pub fn into_pass(self) -> RenderPassNodeBuilder<B, T>

Make render pass from subpass.

Trait Implementations§

Source§

impl<B, T> Debug for SubpassBuilder<B, T>
where B: Backend, T: ?Sized,

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<B, T> Default for SubpassBuilder<B, T>
where B: Backend, T: ?Sized,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.