#[repr(transparent)]pub struct FormatFeatureFlags(_);Expand description
Implementations
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
pub const fn empty() -> FormatFeatureFlags
pub const fn from_raw(x: u32) -> FormatFeatureFlags
pub const fn as_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn intersects(self, other: FormatFeatureFlags) -> bool
sourcepub const fn contains(self, other: FormatFeatureFlags) -> bool
pub const fn contains(self, other: FormatFeatureFlags) -> bool
Returns whether other is a subset of self
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
sourcepub const SAMPLED_IMAGE: FormatFeatureFlags = Self(1)
pub const SAMPLED_IMAGE: FormatFeatureFlags = Self(1)
Format can be used for sampled images (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types)
sourcepub const STORAGE_IMAGE: FormatFeatureFlags = Self(2)
pub const STORAGE_IMAGE: FormatFeatureFlags = Self(2)
Format can be used for storage images (STORAGE_IMAGE descriptor type)
sourcepub const STORAGE_IMAGE_ATOMIC: FormatFeatureFlags = Self(4)
pub const STORAGE_IMAGE_ATOMIC: FormatFeatureFlags = Self(4)
Format supports atomic operations in case it is used for storage images
sourcepub const UNIFORM_TEXEL_BUFFER: FormatFeatureFlags = Self(8)
pub const UNIFORM_TEXEL_BUFFER: FormatFeatureFlags = Self(8)
Format can be used for uniform texel buffers (TBOs)
sourcepub const STORAGE_TEXEL_BUFFER: FormatFeatureFlags = Self(16)
pub const STORAGE_TEXEL_BUFFER: FormatFeatureFlags = Self(16)
Format can be used for storage texel buffers (IBOs)
sourcepub const STORAGE_TEXEL_BUFFER_ATOMIC: FormatFeatureFlags = Self(32)
pub const STORAGE_TEXEL_BUFFER_ATOMIC: FormatFeatureFlags = Self(32)
Format supports atomic operations in case it is used for storage texel buffers
sourcepub const VERTEX_BUFFER: FormatFeatureFlags = Self(64)
pub const VERTEX_BUFFER: FormatFeatureFlags = Self(64)
Format can be used for vertex buffers (VBOs)
sourcepub const COLOR_ATTACHMENT: FormatFeatureFlags = Self(128)
pub const COLOR_ATTACHMENT: FormatFeatureFlags = Self(128)
Format can be used for color attachment images
sourcepub const COLOR_ATTACHMENT_BLEND: FormatFeatureFlags = Self(256)
pub const COLOR_ATTACHMENT_BLEND: FormatFeatureFlags = Self(256)
Format supports blending in case it is used for color attachment images
sourcepub const DEPTH_STENCIL_ATTACHMENT: FormatFeatureFlags = Self(512)
pub const DEPTH_STENCIL_ATTACHMENT: FormatFeatureFlags = Self(512)
Format can be used for depth/stencil attachment images
sourcepub const BLIT_SRC: FormatFeatureFlags = Self(1024)
pub const BLIT_SRC: FormatFeatureFlags = Self(1024)
Format can be used as the source image of blits with vkCmdBlitImage
sourcepub const BLIT_DST: FormatFeatureFlags = Self(2048)
pub const BLIT_DST: FormatFeatureFlags = Self(2048)
Format can be used as the destination image of blits with vkCmdBlitImage
sourcepub const SAMPLED_IMAGE_FILTER_LINEAR: FormatFeatureFlags = Self(4096)
pub const SAMPLED_IMAGE_FILTER_LINEAR: FormatFeatureFlags = Self(4096)
Format can be filtered with VK_FILTER_LINEAR when being sampled
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_IMG_filter_cubic’
sourcepub const SAMPLED_IMAGE_FILTER_CUBIC_IMG: FormatFeatureFlags = Self(8192)
pub const SAMPLED_IMAGE_FILTER_CUBIC_IMG: FormatFeatureFlags = Self(8192)
Format can be filtered with VK_FILTER_CUBIC_IMG when being sampled
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_KHR_video_decode_queue’
pub const VIDEO_DECODE_OUTPUT_KHR: FormatFeatureFlags = Self(33554432)
pub const VIDEO_DECODE_DPB_KHR: FormatFeatureFlags = Self(67108864)
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_KHR_maintenance1’
pub const TRANSFER_SRC_KHR: FormatFeatureFlags = Self::TRANSFER_SRC
pub const TRANSFER_DST_KHR: FormatFeatureFlags = Self::TRANSFER_DST
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_EXT_sampler_filter_minmax’
pub const SAMPLED_IMAGE_FILTER_MINMAX_EXT: FormatFeatureFlags = Self::SAMPLED_IMAGE_FILTER_MINMAX
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_KHR_acceleration_structure’
pub const ACCELERATION_STRUCTURE_VERTEX_BUFFER_KHR: FormatFeatureFlags = Self(536870912)
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_KHR_sampler_ycbcr_conversion’
pub const MIDPOINT_CHROMA_SAMPLES_KHR: FormatFeatureFlags = Self::MIDPOINT_CHROMA_SAMPLES
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_KHR: FormatFeatureFlags = Self::SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_KHR: FormatFeatureFlags = Self::SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_KHR: FormatFeatureFlags = Self::SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_KHR: FormatFeatureFlags = Self::SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE
pub const DISJOINT_KHR: FormatFeatureFlags = Self::DISJOINT
pub const COSITED_CHROMA_SAMPLES_KHR: FormatFeatureFlags = Self::COSITED_CHROMA_SAMPLES
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_EXT_filter_cubic’
pub const SAMPLED_IMAGE_FILTER_CUBIC_EXT: FormatFeatureFlags = Self::SAMPLED_IMAGE_FILTER_CUBIC_IMG
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_EXT_fragment_density_map’
pub const FRAGMENT_DENSITY_MAP_EXT: FormatFeatureFlags = Self(16777216)
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_KHR_fragment_shading_rate’
pub const FRAGMENT_SHADING_RATE_ATTACHMENT_KHR: FormatFeatureFlags = Self(1073741824)
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_KHR_video_encode_queue’
pub const VIDEO_ENCODE_INPUT_KHR: FormatFeatureFlags = Self(134217728)
pub const VIDEO_ENCODE_DPB_KHR: FormatFeatureFlags = Self(268435456)
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_VERSION_1_1’
sourcepub const TRANSFER_SRC: FormatFeatureFlags = Self(16384)
pub const TRANSFER_SRC: FormatFeatureFlags = Self(16384)
Format can be used as the source image of image transfer commands
sourcepub const TRANSFER_DST: FormatFeatureFlags = Self(32768)
pub const TRANSFER_DST: FormatFeatureFlags = Self(32768)
Format can be used as the destination image of image transfer commands
sourcepub const MIDPOINT_CHROMA_SAMPLES: FormatFeatureFlags = Self(131072)
pub const MIDPOINT_CHROMA_SAMPLES: FormatFeatureFlags = Self(131072)
Format can have midpoint rather than cosited chroma samples
sourcepub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: FormatFeatureFlags = Self(262144)
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: FormatFeatureFlags = Self(262144)
Format can be used with linear filtering whilst color conversion is enabled
sourcepub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: FormatFeatureFlags = Self(524288)
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: FormatFeatureFlags = Self(524288)
Format can have different chroma, min and mag filters
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT: FormatFeatureFlags = Self(1048576)
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE: FormatFeatureFlags = Self(2097152)
sourcepub const DISJOINT: FormatFeatureFlags = Self(4194304)
pub const DISJOINT: FormatFeatureFlags = Self(4194304)
Format supports disjoint planes
sourcepub const COSITED_CHROMA_SAMPLES: FormatFeatureFlags = Self(8388608)
pub const COSITED_CHROMA_SAMPLES: FormatFeatureFlags = Self(8388608)
Format can have cosited rather than midpoint chroma samples
sourceimpl FormatFeatureFlags
impl FormatFeatureFlags
Generated from ‘VK_VERSION_1_2’
sourcepub const SAMPLED_IMAGE_FILTER_MINMAX: FormatFeatureFlags = Self(65536)
pub const SAMPLED_IMAGE_FILTER_MINMAX: FormatFeatureFlags = Self(65536)
Format can be used with min/max reduction filtering
Trait Implementations
sourceimpl BitAnd<FormatFeatureFlags> for FormatFeatureFlags
impl BitAnd<FormatFeatureFlags> for FormatFeatureFlags
type Output = FormatFeatureFlags
type Output = FormatFeatureFlags
& operator.sourcefn bitand(self, rhs: FormatFeatureFlags) -> FormatFeatureFlags
fn bitand(self, rhs: FormatFeatureFlags) -> FormatFeatureFlags
& operation. Read moresourceimpl BitAndAssign<FormatFeatureFlags> for FormatFeatureFlags
impl BitAndAssign<FormatFeatureFlags> for FormatFeatureFlags
sourcefn bitand_assign(&mut self, rhs: FormatFeatureFlags)
fn bitand_assign(&mut self, rhs: FormatFeatureFlags)
&= operation. Read moresourceimpl BitOr<FormatFeatureFlags> for FormatFeatureFlags
impl BitOr<FormatFeatureFlags> for FormatFeatureFlags
type Output = FormatFeatureFlags
type Output = FormatFeatureFlags
| operator.sourcefn bitor(self, rhs: FormatFeatureFlags) -> FormatFeatureFlags
fn bitor(self, rhs: FormatFeatureFlags) -> FormatFeatureFlags
| operation. Read moresourceimpl BitOrAssign<FormatFeatureFlags> for FormatFeatureFlags
impl BitOrAssign<FormatFeatureFlags> for FormatFeatureFlags
sourcefn bitor_assign(&mut self, rhs: FormatFeatureFlags)
fn bitor_assign(&mut self, rhs: FormatFeatureFlags)
|= operation. Read moresourceimpl BitXor<FormatFeatureFlags> for FormatFeatureFlags
impl BitXor<FormatFeatureFlags> for FormatFeatureFlags
type Output = FormatFeatureFlags
type Output = FormatFeatureFlags
^ operator.sourcefn bitxor(self, rhs: FormatFeatureFlags) -> FormatFeatureFlags
fn bitxor(self, rhs: FormatFeatureFlags) -> FormatFeatureFlags
^ operation. Read moresourceimpl BitXorAssign<FormatFeatureFlags> for FormatFeatureFlags
impl BitXorAssign<FormatFeatureFlags> for FormatFeatureFlags
sourcefn bitxor_assign(&mut self, rhs: FormatFeatureFlags)
fn bitxor_assign(&mut self, rhs: FormatFeatureFlags)
^= operation. Read moresourceimpl Clone for FormatFeatureFlags
impl Clone for FormatFeatureFlags
sourcefn clone(&self) -> FormatFeatureFlags
fn clone(&self) -> FormatFeatureFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for FormatFeatureFlags
impl Debug for FormatFeatureFlags
sourceimpl Default for FormatFeatureFlags
impl Default for FormatFeatureFlags
sourcefn default() -> FormatFeatureFlags
fn default() -> FormatFeatureFlags
sourceimpl Hash for FormatFeatureFlags
impl Hash for FormatFeatureFlags
sourceimpl Not for FormatFeatureFlags
impl Not for FormatFeatureFlags
type Output = FormatFeatureFlags
type Output = FormatFeatureFlags
! operator.sourcefn not(self) -> FormatFeatureFlags
fn not(self) -> FormatFeatureFlags
! operation. Read moresourceimpl Ord for FormatFeatureFlags
impl Ord for FormatFeatureFlags
sourcefn cmp(&self, other: &FormatFeatureFlags) -> Ordering
fn cmp(&self, other: &FormatFeatureFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<FormatFeatureFlags> for FormatFeatureFlags
impl PartialEq<FormatFeatureFlags> for FormatFeatureFlags
sourcefn eq(&self, other: &FormatFeatureFlags) -> bool
fn eq(&self, other: &FormatFeatureFlags) -> bool
sourceimpl PartialOrd<FormatFeatureFlags> for FormatFeatureFlags
impl PartialOrd<FormatFeatureFlags> for FormatFeatureFlags
sourcefn partial_cmp(&self, other: &FormatFeatureFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &FormatFeatureFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more