[−][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 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]
self,
present_modes_priority: PF
) -> PresentBuilder<B> where
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, QueueType>]
) -> Option<FamilyId>
[src]
&self,
factory: &mut Factory<B>,
families: &[Family<B, QueueType>]
) -> Option<FamilyId>
fn buffers(&self) -> Vec<(BufferId, BufferAccess)>
[src]
fn images(&self) -> Vec<(ImageId, ImageAccess)>
[src]
fn dependencies(&self) -> Vec<NodeId>
[src]
fn build(
self: Box<PresentBuilder<B>>,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
family: &mut Family<B, QueueType>,
_queue: usize,
_aux: &T,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>
) -> Result<Box<dyn DynNode<B, T> + 'static>, Error>
[src]
self: Box<PresentBuilder<B>>,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
family: &mut Family<B, QueueType>,
_queue: usize,
_aux: &T,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>
) -> Result<Box<dyn DynNode<B, T> + 'static>, Error>
impl<B> Debug for PresentBuilder<B> where
B: Debug + Backend,
[src]
B: Debug + Backend,
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
.
impl<T> Erased for T
[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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more