[][src]Struct amethyst_rendy::rendy::graph::render::SubpassBuilder

pub struct SubpassBuilder<B, T> where
    B: Backend,
    T: ?Sized
{ /* fields omitted */ }

Build for rendering sub-pass.

Methods

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

pub fn new() -> SubpassBuilder<B, T>[src]

Create new empty subpass builder.

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

Add render group to this subpass.

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

Add render group to this subpass.

pub fn add_dyn_group(
    &mut self,
    group: Box<dyn RenderGroupBuilder<B, T> + 'static>
) -> &mut SubpassBuilder<B, T>
[src]

Add render group of dynamic type to this subpass.

pub fn with_dyn_group(
    self,
    group: Box<dyn RenderGroupBuilder<B, T> + 'static>
) -> SubpassBuilder<B, T>
[src]

Add render group of dynamic type to this subpass.

pub fn add_input(&mut self, input: ImageId) -> &mut SubpassBuilder<B, T>[src]

Add input attachment to the subpass.

pub fn with_input(self, input: ImageId) -> SubpassBuilder<B, T>[src]

Add input attachment to the subpass.

pub fn add_color(&mut self, color: ImageId) -> &mut SubpassBuilder<B, T>[src]

Add color attachment to the subpass.

pub fn with_color(self, color: ImageId) -> SubpassBuilder<B, T>[src]

Add color attachment to the subpass.

pub fn add_color_surface(&mut self) -> &mut SubpassBuilder<B, T>[src]

Add surface as color attachment to the subpass.

pub fn with_color_surface(self) -> SubpassBuilder<B, T>[src]

Add surface as color attachment to the subpass.

pub fn set_depth_stencil(
    &mut self,
    depth_stencil: ImageId
) -> &mut SubpassBuilder<B, T>
[src]

Set depth-stencil attachment to the subpass.

pub fn with_depth_stencil(self, depth_stencil: ImageId) -> SubpassBuilder<B, T>[src]

Set depth-stencil attachment to the subpass.

pub fn set_depth_stencil_surface(&mut self) -> &mut SubpassBuilder<B, T>[src]

Set surface as depth-stencil attachment to the subpass.

pub fn with_depth_stencil_surface(self) -> SubpassBuilder<B, T>[src]

Set surface as depth-stencil attachment to the subpass.

pub fn add_dependency(
    &mut self,
    dependency: NodeId
) -> &mut SubpassBuilder<B, T>
[src]

Add dependency. RenderPassNode will be placed after its dependencies.

pub fn with_dependency(self, dependency: NodeId) -> SubpassBuilder<B, T>[src]

Add dependency. RenderPassNode will be placed after its dependencies.

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

Make render pass from subpass.

Trait Implementations

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

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

Auto Trait Implementations

impl<B, T: ?Sized> Unpin for SubpassBuilder<B, T>

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

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

impl<B, T> !UnwindSafe for SubpassBuilder<B, T>

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Supports<T> for T[src]

impl<T> Erased for T[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> TryDefault for T where
    T: Default
[src]

fn unwrap_default() -> Self[src]

Calls try_default and panics on an error case.