FormatFeatures

Struct FormatFeatures 

Source
pub struct FormatFeatures(/* private fields */);
Expand description

The features supported by a device for an image or buffer with a particular format.

Implementations§

Source§

impl FormatFeatures

Source

pub const SAMPLED_IMAGE: FormatFeatures

Can be used with a sampled image descriptor.

Source

pub const STORAGE_IMAGE: FormatFeatures

Can be used with a storage image descriptor.

Source

pub const STORAGE_IMAGE_ATOMIC: FormatFeatures

Can be used with a storage image descriptor with atomic operations in a shader.

Source

pub const STORAGE_READ_WITHOUT_FORMAT: FormatFeatures

Can be used with a storage image descriptor for reading, without specifying a format on the image view.

Source

pub const STORAGE_WRITE_WITHOUT_FORMAT: FormatFeatures

Can be used with a storage image descriptor for writing, without specifying a format on the image view.

Source

pub const COLOR_ATTACHMENT: FormatFeatures

Can be used with a color attachment in a framebuffer, or with an input attachment descriptor.

Source

pub const COLOR_ATTACHMENT_BLEND: FormatFeatures

Can be used with a color attachment in a framebuffer with blending, or with an input attachment descriptor.

Source

pub const DEPTH_STENCIL_ATTACHMENT: FormatFeatures

Can be used with a depth/stencil attachment in a framebuffer, or with an input attachment descriptor.

Source

pub const FRAGMENT_DENSITY_MAP: FormatFeatures

Can be used with a fragment density map attachment in a framebuffer.

Source

pub const FRAGMENT_SHADING_RATE_ATTACHMENT: FormatFeatures

Can be used with a fragment shading rate attachment in a framebuffer.

Source

pub const TRANSFER_SRC: FormatFeatures

Can be used with the source image in a transfer (copy) operation.

Source

pub const TRANSFER_DST: FormatFeatures

Can be used with the destination image in a transfer (copy) operation.

Source

pub const BLIT_SRC: FormatFeatures

Can be used with the source image in a blit operation.

Source

pub const BLIT_DST: FormatFeatures

Can be used with the destination image in a blit operation.

Source

pub const SAMPLED_IMAGE_FILTER_LINEAR: FormatFeatures

Can be used with samplers or as a blit source, using the Linear filter.

Source

pub const SAMPLED_IMAGE_FILTER_CUBIC: FormatFeatures

Can be used with samplers or as a blit source, using the Cubic filter.

Source

pub const SAMPLED_IMAGE_FILTER_MINMAX: FormatFeatures

Can be used with samplers using a reduction mode of Min or Max.

Source

pub const MIDPOINT_CHROMA_SAMPLES: FormatFeatures

Can be used with sampler YCbCr conversions using a chroma offset of Midpoint.

Source

pub const COSITED_CHROMA_SAMPLES: FormatFeatures

Can be used with sampler YCbCr conversions using a chroma offset of CositedEven.

Source

pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: FormatFeatures

Can be used with sampler YCbCr conversions using the Linear chroma filter.

Source

pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: FormatFeatures

Can be used with sampler YCbCr conversions whose chroma filter differs from the filters of the base sampler.

Source

pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT: FormatFeatures

When used with a sampler YCbCr conversion, the implementation will always perform explicit chroma reconstruction.

Source

pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE: FormatFeatures

Can be used with sampler YCbCr conversions with forced explicit reconstruction.

Source

pub const SAMPLED_IMAGE_DEPTH_COMPARISON: FormatFeatures

Can be used with samplers using depth comparison.

Source

pub const VIDEO_DECODE_OUTPUT: FormatFeatures

Can be used with the output image of a video decode operation.

Source

pub const VIDEO_DECODE_DPB: FormatFeatures

Can be used with the DPB image of a video decode operation.

Source

pub const VIDEO_ENCODE_INPUT: FormatFeatures

Can be used with the input image of a video encode operation.

Source

pub const VIDEO_ENCODE_DPB: FormatFeatures

Can be used with the DPB image of a video encode operation.

Source

pub const DISJOINT: FormatFeatures

For multi-planar formats, can be used with images created with the DISJOINT flag.

Source

pub const LINEAR_COLOR_ATTACHMENT: FormatFeatures

Source

pub const WEIGHT_IMAGE: FormatFeatures

Source

pub const WEIGHT_SAMPLED_IMAGE: FormatFeatures

Source

pub const BLOCK_MATCHING: FormatFeatures

Source

pub const BOX_FILTER_SAMPLED: FormatFeatures

Source

pub const OPTICAL_FLOW_IMAGE: FormatFeatures

Source

pub const OPTICAL_FLOW_VECTOR: FormatFeatures

Source

pub const OPTICAL_FLOW_COST: FormatFeatures

Source

pub const UNIFORM_TEXEL_BUFFER: FormatFeatures

Can be used with a uniform texel buffer descriptor.

Source

pub const STORAGE_TEXEL_BUFFER: FormatFeatures

Can be used with a storage texel buffer descriptor.

Source

pub const STORAGE_TEXEL_BUFFER_ATOMIC: FormatFeatures

Can be used with a storage texel buffer descriptor with atomic operations in a shader.

Source

pub const VERTEX_BUFFER: FormatFeatures

Can be used as the format of a vertex attribute in the vertex input state of a graphics pipeline.

Source

pub const ACCELERATION_STRUCTURE_VERTEX_BUFFER: FormatFeatures

Can be used as the vertex format when building an acceleration structure.

Source

pub const fn empty() -> FormatFeatures

Returns a FormatFeatures with none of the flags set.

Source

pub const fn none() -> FormatFeatures

👎Deprecated since 0.31.0: use empty instead

Returns a FormatFeatures with none of the flags set.

Source

pub const fn count(self) -> u32

Returns the number of flags set in self.

Source

pub const fn is_empty(self) -> bool

Returns whether no flags are set in self.

Source

pub const fn intersects(self, other: FormatFeatures) -> bool

Returns whether any flags are set in both self and other.

Source

pub const fn contains(self, other: FormatFeatures) -> bool

Returns whether all flags in other are set in self.

Source

pub const fn union(self, other: FormatFeatures) -> FormatFeatures

Returns the union of self and other.

Source

pub const fn intersection(self, other: FormatFeatures) -> FormatFeatures

Returns the intersection of self and other.

Source

pub const fn difference(self, other: FormatFeatures) -> FormatFeatures

Returns self without the flags set in other.

Source

pub const fn symmetric_difference(self, other: FormatFeatures) -> FormatFeatures

Returns the flags that are set in self or other, but not in both.

Trait Implementations§

Source§

impl BitAnd for FormatFeatures

Source§

type Output = FormatFeatures

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl BitAndAssign for FormatFeatures

Source§

fn bitand_assign(&mut self, rhs: FormatFeatures)

Performs the &= operation. Read more
Source§

impl BitOr for FormatFeatures

Source§

type Output = FormatFeatures

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl BitOrAssign for FormatFeatures

Source§

fn bitor_assign(&mut self, rhs: FormatFeatures)

Performs the |= operation. Read more
Source§

impl BitXor for FormatFeatures

Source§

type Output = FormatFeatures

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl BitXorAssign for FormatFeatures

Source§

fn bitxor_assign(&mut self, rhs: FormatFeatures)

Performs the ^= operation. Read more
Source§

impl Clone for FormatFeatures

Source§

fn clone(&self) -> FormatFeatures

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 FormatFeatures

Source§

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

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

impl Default for FormatFeatures

Source§

fn default() -> FormatFeatures

Returns the “default value” for a type. Read more
Source§

impl From<FormatFeatureFlags> for FormatFeatures

Source§

fn from(val: FormatFeatureFlags) -> FormatFeatures

Converts to this type from the input type.
Source§

impl From<FormatFeatureFlags2> for FormatFeatures

Source§

fn from(val: FormatFeatureFlags2) -> FormatFeatures

Converts to this type from the input type.
Source§

impl From<FormatFeatures> for FormatFeatureFlags2

Source§

fn from(val: FormatFeatures) -> FormatFeatureFlags2

Converts to this type from the input type.
Source§

impl Hash for FormatFeatures

Source§

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

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 FormatFeatures

Source§

fn eq(&self, other: &FormatFeatures) -> 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 Sub for FormatFeatures

Source§

type Output = FormatFeatures

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: FormatFeatures) -> FormatFeatures

Performs the - operation. Read more
Source§

impl SubAssign for FormatFeatures

Source§

fn sub_assign(&mut self, rhs: FormatFeatures)

Performs the -= operation. Read more
Source§

impl Copy for FormatFeatures

Source§

impl Eq for FormatFeatures

Source§

impl StructuralPartialEq for FormatFeatures

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.