rendy_graph::render

Struct RenderPassNodeBuilder

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

Builder for render-pass node.

Implementations§

Source§

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

Source

pub fn new() -> Self

Make render pass node builder.

Source

pub fn add_subpass(&mut self, subpass: SubpassBuilder<B, T>) -> &mut Self

Add sub-pass to the render-pass.

Source

pub fn with_subpass(self, subpass: SubpassBuilder<B, T>) -> Self

Add sub-pass to the render-pass.

Source

pub fn add_surface( &mut self, surface: Surface<B>, suggested_extent: Extent2D, clear: Option<ClearValue>, ) -> &mut Self

Add surface to the render pass.

Source

pub fn with_surface( self, surface: Surface<B>, suggested_extent: Extent2D, clear: Option<ClearValue>, ) -> Self

Add surface to the render pass.

Trait Implementations§

Source§

impl<B, T> Debug for RenderPassNodeBuilder<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 RenderPassNodeBuilder<B, T>
where B: Backend, T: ?Sized,

Source§

fn default() -> Self

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

impl<B, T> NodeBuilder<B, T> for RenderPassNodeBuilder<B, T>
where B: Backend, T: ?Sized + 'static,

Source§

fn family( &self, _factory: &mut Factory<B>, families: &Families<B>, ) -> Option<FamilyId>

Pick family for this node to be executed onto.
Source§

fn buffers(&self) -> Vec<(BufferId, BufferAccess)>

Get buffer accessed by the node.
Source§

fn images(&self) -> Vec<(ImageId, ImageAccess)>

Get images accessed by the node.
Source§

fn dependencies(&self) -> Vec<NodeId>

Indices of nodes this one dependes on.
Source§

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>>, NodeBuildError>

Build node.

Auto Trait Implementations§

§

impl<B, T> Freeze for RenderPassNodeBuilder<B, T>
where <B as Backend>::Surface: Freeze, T: ?Sized,

§

impl<B, T> !RefUnwindSafe for RenderPassNodeBuilder<B, T>

§

impl<B, T> !Send for RenderPassNodeBuilder<B, T>

§

impl<B, T> !Sync for RenderPassNodeBuilder<B, T>

§

impl<B, T> Unpin for RenderPassNodeBuilder<B, T>
where <B as Backend>::Surface: Unpin, T: ?Sized,

§

impl<B, T> !UnwindSafe for RenderPassNodeBuilder<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.