Struct vulkano::swapchain::SupportedPresentModes
source · pub struct SupportedPresentModes {
pub immediate: bool,
pub mailbox: bool,
pub fifo: bool,
pub relaxed: bool,
pub shared_demand: bool,
pub shared_continuous: bool,
}
Expand description
List of PresentMode
s that are supported.
Fields
immediate: bool
mailbox: bool
fifo: bool
relaxed: bool
Implementations
sourceimpl SupportedPresentModes
impl SupportedPresentModes
sourcepub fn none() -> SupportedPresentModes
pub fn none() -> SupportedPresentModes
Builds a SupportedPresentModes
with all fields set to false.
sourcepub fn supports(&self, mode: PresentMode) -> bool
pub fn supports(&self, mode: PresentMode) -> bool
Returns true if the given present mode is in this list of supported modes.
sourcepub fn iter(&self) -> SupportedPresentModesIter ⓘ
pub fn iter(&self) -> SupportedPresentModesIter ⓘ
Returns an iterator to the list of supported present modes.
Trait Implementations
sourceimpl Clone for SupportedPresentModes
impl Clone for SupportedPresentModes
sourcefn clone(&self) -> SupportedPresentModes
fn clone(&self) -> SupportedPresentModes
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 moresourceimpl Debug for SupportedPresentModes
impl Debug for SupportedPresentModes
sourceimpl PartialEq<SupportedPresentModes> for SupportedPresentModes
impl PartialEq<SupportedPresentModes> for SupportedPresentModes
sourcefn eq(&self, other: &SupportedPresentModes) -> bool
fn eq(&self, other: &SupportedPresentModes) -> bool
impl Copy for SupportedPresentModes
impl Eq for SupportedPresentModes
impl StructuralEq for SupportedPresentModes
impl StructuralPartialEq for SupportedPresentModes
Auto Trait Implementations
impl RefUnwindSafe for SupportedPresentModes
impl Send for SupportedPresentModes
impl Sync for SupportedPresentModes
impl Unpin for SupportedPresentModes
impl UnwindSafe for SupportedPresentModes
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.