Struct vulkan_rs::VkSurfaceCapabilitiesKHR
[−]
[src]
#[repr(C)]pub struct VkSurfaceCapabilitiesKHR { pub minImageCount: u32, pub maxImageCount: u32, pub currentExtent: VkExtent2D, pub minImageExtent: VkExtent2D, pub maxImageExtent: VkExtent2D, pub maxImageArrayLayers: u32, pub supportedTransforms: VkSurfaceTransformFlagsKHR, pub currentTransform: VkSurfaceTransformFlagBitsKHR, pub supportedCompositeAlpha: VkCompositeAlphaFlagsKHR, pub supportedUsageFlags: VkImageUsageFlags, }
Structure describing capabilities of a surface
Fields
minImageCount: u32
the minimum number of images the specified device supports for a swapchain created for the surface, and will be at least one
maxImageCount: u32
the maximum number of images the specified device supports for a swapchain created for the surface, and will be either 0, or greater than or equal to minImageCount
currentExtent: VkExtent2D
the current width and height of the surface, or the special value [eq]#(0xFFFFFFFF, 0xFFFFFFFF)# indicating that the surface size will be determined by the extent of a swapchain targeting the surface
minImageExtent: VkExtent2D
maxImageExtent: VkExtent2D
maxImageArrayLayers: u32
the maximum number of layers presentable images can: have for a swapchain created for this device and surface, and will be at least one
supportedTransforms: VkSurfaceTransformFlagsKHR
a bitmask of VkSurfaceTransformFlagBitsKHR,
describing the presentation transforms supported for the surface on the specified device, and at least one bit will be set
currentTransform: VkSurfaceTransformFlagBitsKHR
the surface's current transform relative to the presentation engine's natural orientation, as described by VkSurfaceTransformFlagBitsKHR
supportedCompositeAlpha: VkCompositeAlphaFlagsKHR
a bitmask of VkCompositeAlphaFlagBitsKHR,
representing the alpha compositing modes supported by the presentation engine for the surface on the specified device, and at least one bit will be set
supportedUsageFlags: VkImageUsageFlags
a bitmask of VkImageUsageFlagBits
representing the ways the application can: use the presentable images of a swapchain created
Trait Implementations
impl Copy for VkSurfaceCapabilitiesKHR
[src]
impl Clone for VkSurfaceCapabilitiesKHR
[src]
fn clone(&self) -> VkSurfaceCapabilitiesKHR
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for VkSurfaceCapabilitiesKHR
[src]
fn default() -> VkSurfaceCapabilitiesKHR
Returns the "default value" for a type. Read more