pub struct ImageFlags(/* private fields */);Expand description
Bitmask specifying additional parameters of an image
Implementations§
Source§impl ImageFlags
impl ImageFlags
Sourcepub const fn bits(&self) -> VkImageCreateFlags
pub const fn bits(&self) -> VkImageCreateFlags
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.
Source§impl ImageFlags
impl ImageFlags
Sourcepub const SPARSE_BINDING: Self
pub const SPARSE_BINDING: Self
The image will be backed using sparse memory binding
Sourcepub const SPARSE_RESIDENCY: Self
pub const SPARSE_RESIDENCY: Self
The image can be partially backed using sparse memory binding. This bit is with SPARSE_BINDING implicitly
Sourcepub const SPARSE_ALIASED: Self
pub const SPARSE_ALIASED: Self
The image will be backed using sparse memory binding with memory ranges
that might also simultaneously be backing another image. This bit is with SPARSE_BINDING implicitly
Sourcepub const MUTABLE_FORMAT: Self
pub const MUTABLE_FORMAT: Self
The image can be used to create a ImageView with a different format from the image
Sourcepub const CUBE_COMPATIBLE: Self
pub const CUBE_COMPATIBLE: Self
The image can be used to create a ImageView of type ImageViewType::Cube or ImageViewType::CubeArray
Trait Implementations§
Source§impl BitAnd for ImageFlags
impl BitAnd for ImageFlags
Source§impl BitAndAssign for ImageFlags
impl BitAndAssign for ImageFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for ImageFlags
impl BitOr for ImageFlags
Source§impl BitOrAssign for ImageFlags
impl BitOrAssign for ImageFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for ImageFlags
impl Clone for ImageFlags
Source§fn clone(&self) -> ImageFlags
fn clone(&self) -> ImageFlags
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 ImageFlags
impl Debug for ImageFlags
Source§impl From<ImageFlags> for VkImageCreateFlags
impl From<ImageFlags> for VkImageCreateFlags
Source§fn from(value: ImageFlags) -> Self
fn from(value: ImageFlags) -> Self
Converts to this type from the input type.
Source§impl Hash for ImageFlags
impl Hash for ImageFlags
Source§impl Not for ImageFlags
impl Not for ImageFlags
Source§impl PartialEq for ImageFlags
impl PartialEq for ImageFlags
impl Copy for ImageFlags
impl Eq for ImageFlags
impl StructuralPartialEq for ImageFlags
Auto Trait Implementations§
impl Freeze for ImageFlags
impl RefUnwindSafe for ImageFlags
impl Send for ImageFlags
impl Sync for ImageFlags
impl Unpin for ImageFlags
impl UnwindSafe for ImageFlags
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