Struct vulkano::swapchain::Swapchain [−][src]
pub struct Swapchain<W> { /* fields omitted */ }
Contains the swapping system and the images that can be shown on a surface.
Implementations
impl<W> Swapchain<W>
[src]
impl<W> Swapchain<W>
[src]pub fn start(
device: Arc<Device>,
surface: Arc<Surface<W>>
) -> SwapchainBuilder<W>
[src]
pub fn start(
device: Arc<Device>,
surface: Arc<Surface<W>>
) -> SwapchainBuilder<W>
[src]Starts the process of building a new swapchain, using default values for the parameters.
pub fn recreate(self: &Arc<Self>) -> SwapchainBuilder<W>
[src]
pub fn recreate(self: &Arc<Self>) -> SwapchainBuilder<W>
[src]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
.
pub fn surface(&self) -> &Arc<Surface<W>>
[src]
pub fn surface(&self) -> &Arc<Surface<W>>
[src]Returns the saved Surface, from the Swapchain creation.
pub fn raw_image(&self, offset: usize) -> Option<ImageInner<'_>>
[src]
pub fn raw_image(&self, offset: usize) -> Option<ImageInner<'_>>
[src]Returns of the images that belong to this swapchain.
pub fn num_images(&self) -> u32
[src]
pub fn num_images(&self) -> u32
[src]Returns the number of images of the swapchain.
pub fn dimensions(&self) -> [u32; 2]
[src]
pub fn dimensions(&self) -> [u32; 2]
[src]Returns the dimensions of the images of the swapchain.
pub fn transform(&self) -> SurfaceTransform
[src]
pub fn transform(&self) -> SurfaceTransform
[src]Returns the transform that was passed when creating the swapchain.
pub fn composite_alpha(&self) -> CompositeAlpha
[src]
pub fn composite_alpha(&self) -> CompositeAlpha
[src]Returns the alpha mode that was passed when creating the swapchain.
pub fn present_mode(&self) -> PresentMode
[src]
pub fn present_mode(&self) -> PresentMode
[src]Returns the present mode that was passed when creating the swapchain.
pub fn clipped(&self) -> bool
[src]
pub fn clipped(&self) -> bool
[src]Returns the value of clipped
that was passed when creating the swapchain.
pub fn fullscreen_exclusive(&self) -> FullscreenExclusive
[src]
pub fn fullscreen_exclusive(&self) -> FullscreenExclusive
[src]Returns the value of ’fullscreen_exclusive` that was passed when creating the swapchain.
pub fn acquire_fullscreen_exclusive(
&self
) -> Result<(), FullscreenExclusiveError>
[src]
pub fn acquire_fullscreen_exclusive(
&self
) -> Result<(), FullscreenExclusiveError>
[src]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
pub fn release_fullscreen_exclusive(
&self
) -> Result<(), FullscreenExclusiveError>
[src]
pub fn release_fullscreen_exclusive(
&self
) -> Result<(), FullscreenExclusiveError>
[src]FullscreenExclusive::AppControlled
must be the active fullscreen exclusivity mode.
Release fullscreen exclusivity.
pub fn is_fullscreen_exclusive(&self) -> bool
[src]
pub fn is_fullscreen_exclusive(&self) -> bool
[src]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
impl<W> DeviceOwned for Swapchain<W>
[src]
impl<W> DeviceOwned for Swapchain<W>
[src]impl<W> VulkanObject for Swapchain<W>
[src]
impl<W> VulkanObject for Swapchain<W>
[src]type Object = SwapchainKHR
type Object = SwapchainKHR
The type of the object.
const TYPE: ObjectType
[src]
const TYPE: ObjectType
[src]The ObjectType
of the internal Vulkan handle.
fn internal_object(&self) -> SwapchainKHR
[src]
fn internal_object(&self) -> SwapchainKHR
[src]Returns a reference to the object.
Auto Trait Implementations
impl<W> RefUnwindSafe for Swapchain<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for Swapchain<W> where
W: Send + Sync,
W: Send + Sync,
impl<W> Sync for Swapchain<W> where
W: Send + Sync,
W: Send + Sync,
impl<W> Unpin for Swapchain<W>
impl<W> UnwindSafe for Swapchain<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.