VkImageUsageFlagBits

Enum VkImageUsageFlagBits 

Source
#[non_exhaustive]
#[repr(u32)]
pub enum VkImageUsageFlagBits {
Show 22 variants VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 1, VK_IMAGE_USAGE_TRANSFER_DST_BIT = 2, VK_IMAGE_USAGE_SAMPLED_BIT = 4, VK_IMAGE_USAGE_STORAGE_BIT = 8, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 16, VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 32, VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 64, VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 128, VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR = 1_024, VK_IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR = 2_048, VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR = 4_096, VK_IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT = 512, VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 256, VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT = 4_194_304, VK_IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR = 8_192, VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR = 16_384, VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR = 32_768, VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 524_288, VK_IMAGE_USAGE_INVOCATION_MASK_BIT_HUAWEI = 262_144, VK_IMAGE_USAGE_SAMPLE_WEIGHT_BIT_QCOM = 1_048_576, VK_IMAGE_USAGE_SAMPLE_BLOCK_MATCH_BIT_QCOM = 2_097_152, VK_IMAGE_USAGE_FLAG_BITS_MAX_ENUM = 2_147_483_647,
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 1

§

VK_IMAGE_USAGE_TRANSFER_DST_BIT = 2

§

VK_IMAGE_USAGE_SAMPLED_BIT = 4

§

VK_IMAGE_USAGE_STORAGE_BIT = 8

§

VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 16

§

VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 32

§

VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 64

§

VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 128

§

VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR = 1_024

§

VK_IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR = 2_048

§

VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR = 4_096

§

VK_IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT = 512

§

VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 256

§

VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT = 4_194_304

§

VK_IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR = 8_192

§

VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR = 16_384

§

VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR = 32_768

§

VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 524_288

§

VK_IMAGE_USAGE_INVOCATION_MASK_BIT_HUAWEI = 262_144

§

VK_IMAGE_USAGE_SAMPLE_WEIGHT_BIT_QCOM = 1_048_576

§

VK_IMAGE_USAGE_SAMPLE_BLOCK_MATCH_BIT_QCOM = 2_097_152

§

VK_IMAGE_USAGE_FLAG_BITS_MAX_ENUM = 2_147_483_647

Implementations§

Source§

impl VkImageUsageFlagBits

Source

pub const VK_IMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV: VkImageUsageFlagBits = VkImageUsageFlagBits::VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR

Trait Implementations§

Source§

impl Clone for VkImageUsageFlagBits

Source§

fn clone(&self) -> VkImageUsageFlagBits

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VkImageUsageFlagBits

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for VkImageUsageFlagBits

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for VkImageUsageFlagBits

Source§

fn eq(&self, other: &VkImageUsageFlagBits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for VkImageUsageFlagBits

Source§

impl Eq for VkImageUsageFlagBits

Source§

impl StructuralPartialEq for VkImageUsageFlagBits

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.