Struct vulkano::swapchain::SupportedPresentModes
[−]
[src]
pub struct SupportedPresentModes { pub immediate: bool, pub mailbox: bool, pub fifo: bool, pub relaxed: bool, }
List of PresentMode
s that are supported.
Fields
immediate: bool
mailbox: bool
fifo: bool
relaxed: bool
Methods
impl SupportedPresentModes
[src]
pub fn none() -> SupportedPresentModes
[src]
Builds a SupportedPresentModes
with all fields set to false.
pub fn supports(&self, mode: PresentMode) -> bool
[src]
Returns true if the given present mode is in this list of supported modes.
ⓘImportant traits for SupportedPresentModesIterpub fn iter(&self) -> SupportedPresentModesIter
[src]
ⓘImportant traits for SupportedPresentModesIter
Returns an iterator to the list of supported present modes.
Trait Implementations
impl Copy for SupportedPresentModes
[src]
impl Clone for SupportedPresentModes
[src]
fn clone(&self) -> SupportedPresentModes
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SupportedPresentModes
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for SupportedPresentModes
[src]
fn eq(&self, __arg_0: &SupportedPresentModes) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SupportedPresentModes) -> bool
[src]
This method tests for !=
.