Struct gfx_hal::window::SurfaceCapabilities [−][src]
pub struct SurfaceCapabilities {
pub image_count: RangeInclusive<SwapImageIndex>,
pub current_extent: Option<Extent2D>,
pub extents: RangeInclusive<Extent2D>,
pub max_image_layers: Layer,
pub usage: Usage,
pub present_modes: PresentMode,
pub composite_alpha_modes: CompositeAlphaMode,
}Describes information about what a Surface’s properties are.
Fetch this with Surface::capabilities.
Fields
image_count: RangeInclusive<SwapImageIndex>Number of presentable images supported by the adapter for a swapchain created from this surface.
image_count.startmust be at least 1.image_count.endmust be larger or equal toimage_count.start.
current_extent: Option<Extent2D>Current extent of the surface.
None if the surface has no explicit size, depending on the swapchain extent.
extents: RangeInclusive<Extent2D>Range of supported extents.
current_extent must be inside this range.
max_image_layers: LayerMaximum number of layers supported for presentable images.
Must be at least 1.
usage: UsageSupported image usage flags.
present_modes: PresentModeA bitmask of supported presentation modes.
composite_alpha_modes: CompositeAlphaModeA bitmask of supported alpha composition modes.
Trait Implementations
impl Clone for SurfaceCapabilities[src]
impl Clone for SurfaceCapabilities[src]fn clone(&self) -> SurfaceCapabilities[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SurfaceCapabilities
impl RefUnwindSafe for SurfaceCapabilitiesimpl Send for SurfaceCapabilities
impl Send for SurfaceCapabilitiesimpl Sync for SurfaceCapabilities
impl Sync for SurfaceCapabilitiesimpl Unpin for SurfaceCapabilities
impl Unpin for SurfaceCapabilitiesimpl UnwindSafe for SurfaceCapabilities
impl UnwindSafe for SurfaceCapabilities