Type Alias SurfaceCapabilities

Source
pub type SurfaceCapabilities = VkSurfaceCapabilitiesKHR;

Aliased Type§

#[repr(C)]
pub struct SurfaceCapabilities { pub minImageCount: u32, pub maxImageCount: u32, pub currentExtent: VkExtent2D, pub minImageExtent: VkExtent2D, pub maxImageExtent: VkExtent2D, pub maxImageArrayLayers: u32, pub supportedTransforms: u32, pub currentTransform: u32, pub supportedCompositeAlpha: u32, pub supportedUsageFlags: u32, }

Fields§

§minImageCount: u32§maxImageCount: u32§currentExtent: VkExtent2D§minImageExtent: VkExtent2D§maxImageExtent: VkExtent2D§maxImageArrayLayers: u32§supportedTransforms: u32§currentTransform: u32§supportedCompositeAlpha: u32§supportedUsageFlags: u32

Implementations§

Source§

impl SurfaceCapabilities

Source

pub const fn supported_transforms(&self) -> SurfaceTransformFlags

The presentation transforms supported for the surface

Source

pub const fn current_transform(&self) -> SurfaceTransformFlags

The surface’s current transform relative to the presentation engine’s natural orientation

Source

pub const fn supported_composite_alpha(&self) -> CompositeAlphaFlags

The alpha compositing modes supported by the presentation engine for the surface

Source

pub const fn supported_usage_flags(&self) -> ImageUsageFlags

The ways the application can use the presentable images of a swapchain