#[repr(transparent)]pub struct ImageUsageFlags(_);Expand description
Implementations
sourceimpl ImageUsageFlags
impl ImageUsageFlags
pub const fn empty() -> ImageUsageFlags
pub const fn from_raw(x: u32) -> ImageUsageFlags
pub const fn as_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn intersects(self, other: ImageUsageFlags) -> bool
sourcepub const fn contains(self, other: ImageUsageFlags) -> bool
pub const fn contains(self, other: ImageUsageFlags) -> bool
Returns whether other is a subset of self
sourceimpl ImageUsageFlags
impl ImageUsageFlags
sourcepub const TRANSFER_SRC: ImageUsageFlags = Self(1)
pub const TRANSFER_SRC: ImageUsageFlags = Self(1)
Can be used as a source of transfer operations
sourcepub const TRANSFER_DST: ImageUsageFlags = Self(2)
pub const TRANSFER_DST: ImageUsageFlags = Self(2)
Can be used as a destination of transfer operations
sourcepub const SAMPLED: ImageUsageFlags = Self(4)
pub const SAMPLED: ImageUsageFlags = Self(4)
Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types)
sourcepub const STORAGE: ImageUsageFlags = Self(8)
pub const STORAGE: ImageUsageFlags = Self(8)
Can be used as storage image (STORAGE_IMAGE descriptor type)
sourcepub const COLOR_ATTACHMENT: ImageUsageFlags = Self(16)
pub const COLOR_ATTACHMENT: ImageUsageFlags = Self(16)
Can be used as framebuffer color attachment
sourcepub const DEPTH_STENCIL_ATTACHMENT: ImageUsageFlags = Self(32)
pub const DEPTH_STENCIL_ATTACHMENT: ImageUsageFlags = Self(32)
Can be used as framebuffer depth/stencil attachment
sourcepub const TRANSIENT_ATTACHMENT: ImageUsageFlags = Self(64)
pub const TRANSIENT_ATTACHMENT: ImageUsageFlags = Self(64)
Image data not needed outside of rendering
sourcepub const INPUT_ATTACHMENT: ImageUsageFlags = Self(128)
pub const INPUT_ATTACHMENT: ImageUsageFlags = Self(128)
Can be used as framebuffer input attachment
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_KHR_video_decode_queue’
pub const VIDEO_DECODE_DST_KHR: ImageUsageFlags = Self(1024)
pub const VIDEO_DECODE_SRC_KHR: ImageUsageFlags = Self(2048)
pub const VIDEO_DECODE_DPB_KHR: ImageUsageFlags = Self(4096)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_NV_shading_rate_image’
pub const SHADING_RATE_IMAGE_NV: ImageUsageFlags = Self::FRAGMENT_SHADING_RATE_ATTACHMENT_KHR
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_QCOM_extension_173’
pub const RESERVED_16_QCOM: ImageUsageFlags = Self(65536)
pub const RESERVED_17_QCOM: ImageUsageFlags = Self(131072)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_EXT_fragment_density_map’
pub const FRAGMENT_DENSITY_MAP_EXT: ImageUsageFlags = Self(512)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_KHR_fragment_shading_rate’
pub const FRAGMENT_SHADING_RATE_ATTACHMENT_KHR: ImageUsageFlags = Self(256)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_INTEL_extension_271’
pub const RESERVED_22_EXT: ImageUsageFlags = Self(4194304)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_KHR_video_encode_queue’
pub const VIDEO_ENCODE_DST_KHR: ImageUsageFlags = Self(8192)
pub const VIDEO_ENCODE_SRC_KHR: ImageUsageFlags = Self(16384)
pub const VIDEO_ENCODE_DPB_KHR: ImageUsageFlags = Self(32768)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_EXT_extension_340’
pub const RESERVED_19_EXT: ImageUsageFlags = Self(524288)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_HUAWEI_invocation_mask’
pub const INVOCATION_MASK_HUAWEI: ImageUsageFlags = Self(262144)
sourceimpl ImageUsageFlags
impl ImageUsageFlags
Generated from ‘VK_QCOM_extension_441’
pub const RESERVED_20_QCOM: ImageUsageFlags = Self(1048576)
pub const RESERVED_21_QCOM: ImageUsageFlags = Self(2097152)
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 more
sourceimpl 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 more
sourceimpl 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 more
sourceimpl 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 more
sourceimpl 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 more
sourceimpl 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 more
sourceimpl 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 more
sourceimpl 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 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 more
sourceimpl Ord for ImageUsageFlags
impl Ord for ImageUsageFlags
sourceimpl PartialEq<ImageUsageFlags> for ImageUsageFlags
impl PartialEq<ImageUsageFlags> for ImageUsageFlags
sourcefn eq(&self, other: &ImageUsageFlags) -> bool
fn eq(&self, other: &ImageUsageFlags) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ImageUsageFlags) -> bool
fn ne(&self, other: &ImageUsageFlags) -> bool
This method tests for !=.
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>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
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 more
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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