[][src]Struct rendy_graph::present::PresentBuilder

pub struct PresentBuilder<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 Self[src]

Add dependency. Node will be placed after its dependencies.

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

Add dependency. Node will be placed after its dependencies.

pub fn with_image_count(self, image_count: u32) -> Self[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) -> Self[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) -> Self 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 + Backend> Debug for PresentBuilder<B>[src]

Auto Trait Implementations

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

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

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

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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<T> Supports<T> for T[src]