[][src]Struct amethyst_rendy::rendy::graph::present::PresentBuilder

pub struct PresentBuilder<B> where
    B: Backend
{ /* fields omitted */ }

Presentation node description.

Methods

impl<B> PresentBuilder<B> where
    B: Backend
[src]

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

Add dependency. Node will be placed after its dependencies.

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

Add dependency. Node will be placed after its dependencies.

pub fn with_image_count(self, image_count: u32) -> PresentBuilder<B>[src]

Request a number of images in the swapchain. This is not guaranteed to be the final image count, but it will be if supported by the hardware.

Check PresentBuilder::image_count() after calling this function but before building to see the final image count.

pub fn with_blit_filter(self, filter: Filter) -> PresentBuilder<B>[src]

Set up filter used for resizing when backbuffer size does not match source image size.

Default is Nearest.

pub fn with_present_modes_priority<PF>(
    self,
    present_modes_priority: PF
) -> PresentBuilder<B> where
    PF: Fn(PresentMode) -> Option<usize>, 
[src]

Request a priority of present modes when creating the swapchain for the PresentNode. Lower index means higher priority.

Check PresentBuilder::present_mode() after calling this function but before building to see the final present mode.

Parameters

  • present_modes_priority: A function which takes a gfx_hal::PresentMode and returns an Option<usize>. None indicates not to use this mode, and a higher number returned indicates a higher prioirity for that mode.

Panics

  • Panics if none of the provided PresentModes are supported.

pub fn image_count(&self) -> u32[src]

Get image count in presentable swapchain.

pub fn present_mode(&self) -> PresentMode[src]

Get present mode used by node.

Trait Implementations

impl<B, T> NodeBuilder<B, T> for PresentBuilder<B> where
    B: Backend,
    T: ?Sized
[src]

impl<B> Debug for PresentBuilder<B> where
    B: Debug + Backend
[src]

Auto Trait Implementations

impl<B> Unpin for PresentBuilder<B> where
    <B as Backend>::Surface: Unpin

impl<B> Sync for PresentBuilder<B> where
    <B as Backend>::Surface: Sync

impl<B> Send for PresentBuilder<B> where
    <B as Backend>::Surface: Send

impl<B> UnwindSafe for PresentBuilder<B> where
    <B as Backend>::Surface: UnwindSafe

impl<B> RefUnwindSafe for PresentBuilder<B> where
    <B as Backend>::Surface: RefUnwindSafe

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> Resource for T where
    T: Any + Send + Sync
[src]

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

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]