Struct vulkano::swapchain::SurfaceInfo
source · pub struct SurfaceInfo {
pub present_mode: Option<PresentMode>,
pub full_screen_exclusive: FullScreenExclusive,
pub win32_monitor: Option<Win32Monitor>,
pub _ne: NonExhaustive,
}
Expand description
Parameters for PhysicalDevice::surface_capabilities
and PhysicalDevice::surface_formats
.
Fields§
§present_mode: Option<PresentMode>
If this is Some
, the
ext_surface_maintenance1
extension must be enabled on the instance.
full_screen_exclusive: FullScreenExclusive
If this is not FullScreenExclusive::Default
, the
ext_full_screen_exclusive
extension must be supported by the physical device.
win32_monitor: Option<Win32Monitor>
If full_screen_exclusive
is FullScreenExclusive::ApplicationControlled
, and the
surface being queried is a Win32 surface, then this must be Some
. Otherwise, it must be
None
.
_ne: NonExhaustive
Trait Implementations§
source§impl Clone for SurfaceInfo
impl Clone for SurfaceInfo
source§fn clone(&self) -> SurfaceInfo
fn clone(&self) -> SurfaceInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SurfaceInfo
impl Debug for SurfaceInfo
source§impl Default for SurfaceInfo
impl Default for SurfaceInfo
source§impl Hash for SurfaceInfo
impl Hash for SurfaceInfo
source§impl PartialEq for SurfaceInfo
impl PartialEq for SurfaceInfo
source§fn eq(&self, other: &SurfaceInfo) -> bool
fn eq(&self, other: &SurfaceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SurfaceInfo
impl StructuralEq for SurfaceInfo
impl StructuralPartialEq for SurfaceInfo
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceInfo
impl Send for SurfaceInfo
impl Sync for SurfaceInfo
impl Unpin for SurfaceInfo
impl UnwindSafe for SurfaceInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more