Skip to main content

VkFormatFeatureFlagBits

Enum VkFormatFeatureFlagBits 

Source
#[repr(C)]
pub enum VkFormatFeatureFlagBits {
Show 32 variants VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 1, VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 2, VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 4, VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 8, VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 16, VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 32, VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 64, VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 128, VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 256, VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 512, VK_FORMAT_FEATURE_BLIT_SRC_BIT = 1_024, VK_FORMAT_FEATURE_BLIT_DST_BIT = 2_048, VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 4_096, VK_FORMAT_FEATURE_TRANSFER_SRC_BIT = 16_384, VK_FORMAT_FEATURE_TRANSFER_DST_BIT = 32_768, VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT = 131_072, VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT = 262_144, VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT = 524_288, VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT = 1_048_576, VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT = 2_097_152, VK_FORMAT_FEATURE_DISJOINT_BIT = 4_194_304, VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT = 8_388_608, VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT = 65_536, VK_FORMAT_FEATURE_VIDEO_DECODE_OUTPUT_BIT_KHR = 33_554_432, VK_FORMAT_FEATURE_VIDEO_DECODE_DPB_BIT_KHR = 67_108_864, VK_FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR = 536_870_912, VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT = 8_192, VK_FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT = 16_777_216, VK_FORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 1_073_741_824, VK_FORMAT_FEATURE_VIDEO_ENCODE_INPUT_BIT_KHR = 134_217_728, VK_FORMAT_FEATURE_VIDEO_ENCODE_DPB_BIT_KHR = 268_435_456, VK_FORMAT_FEATURE_FLAG_BITS_MAX_ENUM = 2_147_483_647,
}
Expand description

enum VkFormatFeatureFlagBits from VK_VERSION_1_0

Variants§

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 1

§

VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 2

§

VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 4

§

VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 8

§

VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 16

§

VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 32

§

VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 64

§

VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 128

§

VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 256

§

VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 512

§

VK_FORMAT_FEATURE_BLIT_SRC_BIT = 1_024

§

VK_FORMAT_FEATURE_BLIT_DST_BIT = 2_048

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 4_096

§

VK_FORMAT_FEATURE_TRANSFER_SRC_BIT = 16_384

§

VK_FORMAT_FEATURE_TRANSFER_DST_BIT = 32_768

§

VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT = 131_072

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT = 262_144

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT = 524_288

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT = 1_048_576

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT = 2_097_152

§

VK_FORMAT_FEATURE_DISJOINT_BIT = 4_194_304

§

VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT = 8_388_608

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT = 65_536

§

VK_FORMAT_FEATURE_VIDEO_DECODE_OUTPUT_BIT_KHR = 33_554_432

§

VK_FORMAT_FEATURE_VIDEO_DECODE_DPB_BIT_KHR = 67_108_864

§

VK_FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR = 536_870_912

§

VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT = 8_192

§

VK_FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT = 16_777_216

§

VK_FORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 1_073_741_824

§

VK_FORMAT_FEATURE_VIDEO_ENCODE_INPUT_BIT_KHR = 134_217_728

§

VK_FORMAT_FEATURE_VIDEO_ENCODE_DPB_BIT_KHR = 268_435_456

§

VK_FORMAT_FEATURE_FLAG_BITS_MAX_ENUM = 2_147_483_647

Implementations§

Source§

impl VkFormatFeatureFlagBits

Source

pub const VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT

Source

pub const VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_TRANSFER_SRC_BIT

Source

pub const VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_TRANSFER_DST_BIT

Source

pub const VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT

Source

pub const VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT

Source

pub const VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT

Source

pub const VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT

Source

pub const VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT

Source

pub const VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT

Source

pub const VK_FORMAT_FEATURE_DISJOINT_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_DISJOINT_BIT

Source

pub const VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT_KHR: VkFormatFeatureFlagBits = VkFormatFeatureFlagBits::VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT

Source

pub fn combine(bits: &[Self]) -> VkFormatFeatureFlags

Combine bits together

Source

pub fn check(value: VkFormatFeatureFlags, bits: Self) -> bool

Check if the bitfield has a value

Trait Implementations§

Source§

impl BitAnd for VkFormatFeatureFlagBits

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> VkFormatFeatureFlags

Performs the & operation. Read more
Source§

impl BitAnd<u32> for VkFormatFeatureFlagBits

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: VkFormatFeatureFlags) -> VkFormatFeatureFlags

Performs the & operation. Read more
Source§

impl BitOr for VkFormatFeatureFlagBits

Source§

type Output = u32

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> VkFormatFeatureFlags

Performs the | operation. Read more
Source§

impl BitOr<u32> for VkFormatFeatureFlagBits

Source§

type Output = u32

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: VkFormatFeatureFlags) -> VkFormatFeatureFlags

Performs the | operation. Read more
Source§

impl BitXor for VkFormatFeatureFlagBits

Source§

type Output = u32

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> VkFormatFeatureFlags

Performs the ^ operation. Read more
Source§

impl BitXor<u32> for VkFormatFeatureFlagBits

Source§

type Output = u32

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: VkFormatFeatureFlags) -> VkFormatFeatureFlags

Performs the ^ operation. Read more
Source§

impl Clone for VkFormatFeatureFlagBits

Source§

fn clone(&self) -> VkFormatFeatureFlagBits

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for VkFormatFeatureFlagBits

Source§

impl Debug for VkFormatFeatureFlagBits

Source§

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

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

impl Eq for VkFormatFeatureFlagBits

Source§

impl Hash for VkFormatFeatureFlagBits

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 Not for VkFormatFeatureFlagBits

Source§

type Output = u32

The resulting type after applying the ! operator.
Source§

fn not(self) -> VkFormatFeatureFlags

Performs the unary ! operation. Read more
Source§

impl Ord for VkFormatFeatureFlagBits

Source§

fn cmp(&self, other: &VkFormatFeatureFlagBits) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for VkFormatFeatureFlagBits

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for VkFormatFeatureFlagBits

Source§

fn partial_cmp(&self, other: &VkFormatFeatureFlagBits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for VkFormatFeatureFlagBits

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.