Struct gfx_hal::window::SurfaceCapabilities
source · pub struct SurfaceCapabilities {
pub image_count: Range<SwapImageIndex>,
pub current_extent: Option<Extent2D>,
pub extents: Range<Extent2D>,
pub max_image_layers: Layer,
pub usage: Usage,
}
Expand description
Describes information about what a Surface
’s properties are.
Fetch this with surface.capabilities_and_formats(device)
.
Fields
image_count: Range<SwapImageIndex>
Number of presentable images supported by the adapter for a swapchain created from this surface.
image_count.start
must be at least 1.image_count.end
must be larger of 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: Range<Extent2D>
Range of supported extents.
current_extent
must be inside this range.
max_image_layers: Layer
Maximum number of layers supported for presentable images.
Must be at least 1.
usage: Usage
Supported image usage flags.
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 moreAuto 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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