Struct vulkano::swapchain::Capabilities[][src]

pub struct Capabilities {
    pub min_image_count: u32,
    pub max_image_count: Option<u32>,
    pub current_extent: Option<[u32; 2]>,
    pub min_image_extent: [u32; 2],
    pub max_image_extent: [u32; 2],
    pub max_image_array_layers: u32,
    pub supported_transforms: SupportedSurfaceTransforms,
    pub current_transform: SurfaceTransform,
    pub supported_composite_alpha: SupportedCompositeAlpha,
    pub supported_usage_flags: ImageUsage,
    pub supported_formats: Vec<(Format, ColorSpace)>,
    pub present_modes: SupportedPresentModes,
}

The capabilities of a surface when used by a physical device.

You have to match these capabilities when you create a swapchain.

Fields

min_image_count: u32

Minimum number of images that must be present in the swapchain.

max_image_count: Option<u32>

Maximum number of images that must be present in the swapchain, or None if there is no maximum value. Note that “no maximum” doesn’t mean that you can set a very high value, as you may still get out of memory errors.

current_extent: Option<[u32; 2]>

The current dimensions of the surface. None means that the surface’s dimensions will depend on the dimensions of the swapchain that you are going to create.

min_image_extent: [u32; 2]

Minimum width and height of a swapchain that uses this surface.

max_image_extent: [u32; 2]

Maximum width and height of a swapchain that uses this surface.

max_image_array_layers: u32

Maximum number of image layers if you create an image array. The minimum is 1.

supported_transforms: SupportedSurfaceTransforms

List of transforms supported for the swapchain.

current_transform: SurfaceTransform

Current transform used by the surface.

supported_composite_alpha: SupportedCompositeAlpha

List of composite alpha modes supports for the swapchain.

supported_usage_flags: ImageUsage

List of image usages that are supported for images of the swapchain. Only the color_attachment usage is guaranteed to be supported.

supported_formats: Vec<(Format, ColorSpace)>

List of formats supported for the swapchain.

present_modes: SupportedPresentModes

List of present modes that are supported. Fifo is always guaranteed to be supported.

Trait Implementations

impl Clone for Capabilities[src]

fn clone(&self) -> Capabilities[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Capabilities[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for 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]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.