[−][src]Struct rendy_graph::present::PresentBuilder
Presentation node description.
Methods
impl<B> PresentBuilder<B> where
B: Backend,
[src]
B: Backend,
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]
PF: Fn(PresentMode) -> Option<usize>,
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 anOption<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
PresentMode
s 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]
B: Backend,
T: ?Sized,
fn family(
&self,
factory: &mut Factory<B>,
families: &[Family<B>]
) -> Option<FamilyId>
[src]
&self,
factory: &mut Factory<B>,
families: &[Family<B>]
) -> Option<FamilyId>
fn buffers(&self) -> Vec<(BufferId, BufferAccess)>
[src]
fn images(&self) -> Vec<(ImageId, ImageAccess)>
[src]
fn dependencies(&self) -> Vec<NodeId>
[src]
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>>, Error>
[src]
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>>, Error>
impl<B: Debug + Backend> Debug for PresentBuilder<B>
[src]
Auto Trait Implementations
impl<B> Unpin for PresentBuilder<B> where
<B as Backend>::Surface: Unpin,
<B as Backend>::Surface: Unpin,
impl<B> Sync for PresentBuilder<B> where
<B as Backend>::Surface: Sync,
<B as Backend>::Surface: Sync,
impl<B> Send for PresentBuilder<B> where
<B as Backend>::Surface: Send,
<B as Backend>::Surface: Send,
impl<B> UnwindSafe for PresentBuilder<B> where
<B as Backend>::Surface: UnwindSafe,
<B as Backend>::Surface: UnwindSafe,
impl<B> RefUnwindSafe for PresentBuilder<B> where
<B as Backend>::Surface: RefUnwindSafe,
<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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports<T> for T
[src]
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.