Struct ash::vk::ImageUsageFlags
source · #[repr(transparent)]pub struct ImageUsageFlags(_);
Implementations
sourceimpl ImageUsageFlags
impl ImageUsageFlags
pub fn empty() -> ImageUsageFlags
pub fn all() -> ImageUsageFlags
pub fn from_raw(x: Flags) -> Self
pub fn as_raw(self) -> Flags
pub fn is_empty(self) -> bool
pub fn is_all(self) -> bool
pub fn intersects(self, other: ImageUsageFlags) -> bool
sourcepub fn contains(self, other: ImageUsageFlags) -> bool
pub fn contains(self, other: ImageUsageFlags) -> bool
Returns whether other
is a subset of self
sourceimpl ImageUsageFlags
impl ImageUsageFlags
sourcepub const TRANSFER_SRC: Self = _
pub const TRANSFER_SRC: Self = _
Can be used as a source of transfer operations
sourcepub const TRANSFER_DST: Self = _
pub const TRANSFER_DST: Self = _
Can be used as a destination of transfer operations
sourcepub const SAMPLED: Self = _
pub const SAMPLED: Self = _
Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types)
sourcepub const COLOR_ATTACHMENT: Self = _
pub const COLOR_ATTACHMENT: Self = _
Can be used as framebuffer color attachment
sourcepub const DEPTH_STENCIL_ATTACHMENT: Self = _
pub const DEPTH_STENCIL_ATTACHMENT: Self = _
Can be used as framebuffer depth/stencil attachment
sourcepub const TRANSIENT_ATTACHMENT: Self = _
pub const TRANSIENT_ATTACHMENT: Self = _
Image data not needed outside of rendering
sourcepub const INPUT_ATTACHMENT: Self = _
pub const INPUT_ATTACHMENT: Self = _
Can be used as framebuffer input attachment
Trait Implementations
sourceimpl BitAnd<ImageUsageFlags> for ImageUsageFlags
impl BitAnd<ImageUsageFlags> for ImageUsageFlags
type Output = ImageUsageFlags
type Output = ImageUsageFlags
The resulting type after applying the
&
operator.sourcefn bitand(self, rhs: ImageUsageFlags) -> ImageUsageFlags
fn bitand(self, rhs: ImageUsageFlags) -> ImageUsageFlags
Performs the
&
operation. Read moresourceimpl BitAndAssign<ImageUsageFlags> for ImageUsageFlags
impl BitAndAssign<ImageUsageFlags> for ImageUsageFlags
sourcefn bitand_assign(&mut self, rhs: ImageUsageFlags)
fn bitand_assign(&mut self, rhs: ImageUsageFlags)
Performs the
&=
operation. Read moresourceimpl BitOr<ImageUsageFlags> for ImageUsageFlags
impl BitOr<ImageUsageFlags> for ImageUsageFlags
type Output = ImageUsageFlags
type Output = ImageUsageFlags
The resulting type after applying the
|
operator.sourcefn bitor(self, rhs: ImageUsageFlags) -> ImageUsageFlags
fn bitor(self, rhs: ImageUsageFlags) -> ImageUsageFlags
Performs the
|
operation. Read moresourceimpl BitOrAssign<ImageUsageFlags> for ImageUsageFlags
impl BitOrAssign<ImageUsageFlags> for ImageUsageFlags
sourcefn bitor_assign(&mut self, rhs: ImageUsageFlags)
fn bitor_assign(&mut self, rhs: ImageUsageFlags)
Performs the
|=
operation. Read moresourceimpl BitXor<ImageUsageFlags> for ImageUsageFlags
impl BitXor<ImageUsageFlags> for ImageUsageFlags
type Output = ImageUsageFlags
type Output = ImageUsageFlags
The resulting type after applying the
^
operator.sourcefn bitxor(self, rhs: ImageUsageFlags) -> ImageUsageFlags
fn bitxor(self, rhs: ImageUsageFlags) -> ImageUsageFlags
Performs the
^
operation. Read moresourceimpl BitXorAssign<ImageUsageFlags> for ImageUsageFlags
impl BitXorAssign<ImageUsageFlags> for ImageUsageFlags
sourcefn bitxor_assign(&mut self, rhs: ImageUsageFlags)
fn bitxor_assign(&mut self, rhs: ImageUsageFlags)
Performs the
^=
operation. Read moresourceimpl Clone for ImageUsageFlags
impl Clone for ImageUsageFlags
sourcefn clone(&self) -> ImageUsageFlags
fn clone(&self) -> ImageUsageFlags
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 ImageUsageFlags
impl Debug for ImageUsageFlags
sourceimpl Default for ImageUsageFlags
impl Default for ImageUsageFlags
sourcefn default() -> ImageUsageFlags
fn default() -> ImageUsageFlags
Returns the “default value” for a type. Read more
sourceimpl Display for ImageUsageFlags
impl Display for ImageUsageFlags
sourceimpl Hash for ImageUsageFlags
impl Hash for ImageUsageFlags
sourceimpl Not for ImageUsageFlags
impl Not for ImageUsageFlags
type Output = ImageUsageFlags
type Output = ImageUsageFlags
The resulting type after applying the
!
operator.sourcefn not(self) -> ImageUsageFlags
fn not(self) -> ImageUsageFlags
Performs the unary
!
operation. Read moresourceimpl Ord for ImageUsageFlags
impl Ord for ImageUsageFlags
sourcefn cmp(&self, other: &ImageUsageFlags) -> Ordering
fn cmp(&self, other: &ImageUsageFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ImageUsageFlags> for ImageUsageFlags
impl PartialEq<ImageUsageFlags> for ImageUsageFlags
sourcefn eq(&self, other: &ImageUsageFlags) -> bool
fn eq(&self, other: &ImageUsageFlags) -> bool
sourceimpl PartialOrd<ImageUsageFlags> for ImageUsageFlags
impl PartialOrd<ImageUsageFlags> for ImageUsageFlags
sourcefn partial_cmp(&self, other: &ImageUsageFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageUsageFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Sub<ImageUsageFlags> for ImageUsageFlags
impl Sub<ImageUsageFlags> for ImageUsageFlags
type Output = ImageUsageFlags
type Output = ImageUsageFlags
The resulting type after applying the
-
operator.sourcefn sub(self, rhs: ImageUsageFlags) -> ImageUsageFlags
fn sub(self, rhs: ImageUsageFlags) -> ImageUsageFlags
Performs the
-
operation. Read moresourceimpl SubAssign<ImageUsageFlags> for ImageUsageFlags
impl SubAssign<ImageUsageFlags> for ImageUsageFlags
sourcefn sub_assign(&mut self, rhs: ImageUsageFlags)
fn sub_assign(&mut self, rhs: ImageUsageFlags)
Performs the
-=
operation. Read moreimpl Copy for ImageUsageFlags
impl Eq for ImageUsageFlags
impl StructuralEq for ImageUsageFlags
impl StructuralPartialEq for ImageUsageFlags
Auto Trait Implementations
impl RefUnwindSafe for ImageUsageFlags
impl Send for ImageUsageFlags
impl Sync for ImageUsageFlags
impl Unpin for ImageUsageFlags
impl UnwindSafe for ImageUsageFlags
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