Struct vulkano::display::DisplayModeCreateInfo
source · pub struct DisplayModeCreateInfo {
pub visible_region: [u32; 2],
pub refresh_rate: u32,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create a new DisplayMode
.
Fields§
§visible_region: [u32; 2]
The extent of the visible region. Neither coordinate may be zero.
The default value is [0; 2]
, which must be overridden.
refresh_rate: u32
The refresh rate in millihertz (i.e. 60_000
is 60 times per second).
This must not be zero.
The default value is 0, which must be overridden.
_ne: NonExhaustive
Trait Implementations§
source§impl Clone for DisplayModeCreateInfo
impl Clone for DisplayModeCreateInfo
source§fn clone(&self) -> DisplayModeCreateInfo
fn clone(&self) -> DisplayModeCreateInfo
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 DisplayModeCreateInfo
impl Debug for DisplayModeCreateInfo
Auto Trait Implementations§
impl RefUnwindSafe for DisplayModeCreateInfo
impl Send for DisplayModeCreateInfo
impl Sync for DisplayModeCreateInfo
impl Unpin for DisplayModeCreateInfo
impl UnwindSafe for DisplayModeCreateInfo
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