Struct vulkano::swapchain::SwapchainCreateFlags
source · pub struct SwapchainCreateFlags(/* private fields */);
Expand description
Flags specifying additional properties of a swapchain.
Implementations§
source§impl SwapchainCreateFlags
impl SwapchainCreateFlags
sourcepub const MUTABLE_FORMAT: Self = _
pub const MUTABLE_FORMAT: Self = _
Creates swapchain images with both the ImageCreateFlags::MUTABLE_FORMAT
and
ImageCreateFlags::EXTENDED_USAGE
flags.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a SwapchainCreateFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for SwapchainCreateFlags
impl BitAnd for SwapchainCreateFlags
source§impl BitAndAssign for SwapchainCreateFlags
impl BitAndAssign for SwapchainCreateFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for SwapchainCreateFlags
impl BitOr for SwapchainCreateFlags
source§impl BitOrAssign for SwapchainCreateFlags
impl BitOrAssign for SwapchainCreateFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for SwapchainCreateFlags
impl BitXor for SwapchainCreateFlags
source§impl BitXorAssign for SwapchainCreateFlags
impl BitXorAssign for SwapchainCreateFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SwapchainCreateFlags
impl Clone for SwapchainCreateFlags
source§fn clone(&self) -> SwapchainCreateFlags
fn clone(&self) -> SwapchainCreateFlags
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 SwapchainCreateFlags
impl Debug for SwapchainCreateFlags
source§impl Default for SwapchainCreateFlags
impl Default for SwapchainCreateFlags
source§impl From<SwapchainCreateFlags> for ImageCreateFlags
impl From<SwapchainCreateFlags> for ImageCreateFlags
source§fn from(flags: SwapchainCreateFlags) -> Self
fn from(flags: SwapchainCreateFlags) -> Self
Converts to this type from the input type.
source§impl From<SwapchainCreateFlags> for SwapchainCreateFlagsKHR
impl From<SwapchainCreateFlags> for SwapchainCreateFlagsKHR
source§fn from(val: SwapchainCreateFlags) -> Self
fn from(val: SwapchainCreateFlags) -> Self
Converts to this type from the input type.
source§impl From<SwapchainCreateFlagsKHR> for SwapchainCreateFlags
impl From<SwapchainCreateFlagsKHR> for SwapchainCreateFlags
source§fn from(val: SwapchainCreateFlagsKHR) -> Self
fn from(val: SwapchainCreateFlagsKHR) -> Self
Converts to this type from the input type.
source§impl Hash for SwapchainCreateFlags
impl Hash for SwapchainCreateFlags
source§impl PartialEq for SwapchainCreateFlags
impl PartialEq for SwapchainCreateFlags
source§fn eq(&self, other: &SwapchainCreateFlags) -> bool
fn eq(&self, other: &SwapchainCreateFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for SwapchainCreateFlags
impl Sub for SwapchainCreateFlags
source§impl SubAssign for SwapchainCreateFlags
impl SubAssign for SwapchainCreateFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SwapchainCreateFlags
impl Eq for SwapchainCreateFlags
impl StructuralEq for SwapchainCreateFlags
impl StructuralPartialEq for SwapchainCreateFlags
Auto Trait Implementations§
impl RefUnwindSafe for SwapchainCreateFlags
impl Send for SwapchainCreateFlags
impl Sync for SwapchainCreateFlags
impl Unpin for SwapchainCreateFlags
impl UnwindSafe for SwapchainCreateFlags
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