Struct vulkano::swapchain::SurfaceCapabilities
source · [−]#[non_exhaustive]pub struct SurfaceCapabilities {
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 full_screen_exclusive_supported: bool,
}
Expand description
The capabilities of a surface when used by a physical device.
You have to match these capabilities when you create a swapchain.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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.
full_screen_exclusive_supported: bool
Whether full-screen exclusivity is supported.
Trait Implementations
sourceimpl Clone for SurfaceCapabilities
impl Clone for SurfaceCapabilities
sourcefn clone(&self) -> SurfaceCapabilities
fn clone(&self) -> SurfaceCapabilities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SurfaceCapabilities
impl Send for SurfaceCapabilities
impl Sync for SurfaceCapabilities
impl Unpin for SurfaceCapabilities
impl UnwindSafe for SurfaceCapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more