pub struct AspectMask(/* private fields */);Expand description
Bitmask specifying which aspects of an image are included in a view
Implementations§
Source§impl AspectMask
impl AspectMask
Sourcepub const fn bits(&self) -> VkImageAspectFlags
pub const fn bits(&self) -> VkImageAspectFlags
Returns bits in this flags
Sourcepub const fn has_any(self, other: Self) -> bool
pub const fn has_any(self, other: Self) -> bool
Returns true if any of specified bits are contained in this flag.
Trait Implementations§
Source§impl BitAnd for AspectMask
impl BitAnd for AspectMask
Source§impl BitAndAssign for AspectMask
impl BitAndAssign for AspectMask
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for AspectMask
impl BitOr for AspectMask
Source§impl BitOrAssign for AspectMask
impl BitOrAssign for AspectMask
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for AspectMask
impl Clone for AspectMask
Source§fn clone(&self) -> AspectMask
fn clone(&self) -> AspectMask
Returns a duplicate 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 AspectMask
impl Debug for AspectMask
Source§impl From<AspectMask> for VkImageAspectFlags
impl From<AspectMask> for VkImageAspectFlags
Source§fn from(value: AspectMask) -> Self
fn from(value: AspectMask) -> Self
Converts to this type from the input type.
Source§impl Hash for AspectMask
impl Hash for AspectMask
Source§impl Not for AspectMask
impl Not for AspectMask
Source§impl PartialEq for AspectMask
impl PartialEq for AspectMask
impl Copy for AspectMask
impl Eq for AspectMask
impl StructuralPartialEq for AspectMask
Auto Trait Implementations§
impl Freeze for AspectMask
impl RefUnwindSafe for AspectMask
impl Send for AspectMask
impl Sync for AspectMask
impl Unpin for AspectMask
impl UnwindSafe for AspectMask
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