Struct vulkano::swapchain::Swapchain [−][src]
pub struct Swapchain<W> { /* fields omitted */ }
Expand description
Contains the swapping system and the images that can be shown on a surface.
Implementations
Starts the process of building a new swapchain, using default values for the parameters.
Starts building a new swapchain from an existing swapchain.
Use this when a swapchain has become invalidated, such as due to window resizes.
The builder is pre-filled with the parameters of the old one, except for dimensions
,
which is set to None
.
Returns the saved Surface, from the Swapchain creation.
Returns of the images that belong to this swapchain.
Returns the number of images of the swapchain.
Returns the dimensions of the images of the swapchain.
Returns the transform that was passed when creating the swapchain.
Returns the alpha mode that was passed when creating the swapchain.
Returns the present mode that was passed when creating the swapchain.
Returns the value of clipped
that was passed when creating the swapchain.
Returns the value of ’fullscreen_exclusive` that was passed when creating the swapchain.
FullscreenExclusive::AppControlled
must be the active fullscreen exclusivity mode.
Acquire fullscreen exclusivity until either the release_fullscreen_exclusive
is
called, or if any of the the other Swapchain
functions return FullscreenExclusiveLost
.
Requires: FullscreenExclusive::AppControlled
FullscreenExclusive::AppControlled
must be the active fullscreen exclusivity mode.
Release fullscreen exclusivity.
FullscreenExclusive::AppControlled
is not the active fullscreen exclusivity mode,
then this function will always return false. If true is returned the swapchain
is in FullscreenExclusive::AppControlled
fullscreen exclusivity mode and exclusivity
is currently acquired.
Trait Implementations
Auto Trait Implementations
impl<W> RefUnwindSafe for Swapchain<W> where
W: RefUnwindSafe,
impl<W> UnwindSafe for Swapchain<W> where
W: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.