Struct vulkano::format::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
impl FormatFeatures
sourcepub const SAMPLED_IMAGE: Self = _
pub const SAMPLED_IMAGE: Self = _
Can be used with a sampled image descriptor.
sourcepub const STORAGE_IMAGE: Self = _
pub const STORAGE_IMAGE: Self = _
Can be used with a storage image descriptor.
sourcepub const STORAGE_IMAGE_ATOMIC: Self = _
pub const STORAGE_IMAGE_ATOMIC: Self = _
Can be used with a storage image descriptor with atomic operations in a shader.
sourcepub const STORAGE_READ_WITHOUT_FORMAT: Self = _
pub const STORAGE_READ_WITHOUT_FORMAT: Self = _
Can be used with a storage image descriptor for reading, without specifying a format on the image view.
sourcepub const STORAGE_WRITE_WITHOUT_FORMAT: Self = _
pub const STORAGE_WRITE_WITHOUT_FORMAT: Self = _
Can be used with a storage image descriptor for writing, without specifying a format on the image view.
sourcepub const COLOR_ATTACHMENT: Self = _
pub const COLOR_ATTACHMENT: Self = _
Can be used with a color attachment in a framebuffer, or with an input attachment descriptor.
sourcepub const COLOR_ATTACHMENT_BLEND: Self = _
pub const COLOR_ATTACHMENT_BLEND: Self = _
Can be used with a color attachment in a framebuffer with blending, or with an input attachment descriptor.
sourcepub const DEPTH_STENCIL_ATTACHMENT: Self = _
pub const DEPTH_STENCIL_ATTACHMENT: Self = _
Can be used with a depth/stencil attachment in a framebuffer, or with an input attachment descriptor.
sourcepub const FRAGMENT_DENSITY_MAP: Self = _
pub const FRAGMENT_DENSITY_MAP: Self = _
Can be used with a fragment density map attachment in a framebuffer.
sourcepub const FRAGMENT_SHADING_RATE_ATTACHMENT: Self = _
pub const FRAGMENT_SHADING_RATE_ATTACHMENT: Self = _
Can be used with a fragment shading rate attachment in a framebuffer.
sourcepub const TRANSFER_SRC: Self = _
pub const TRANSFER_SRC: Self = _
Can be used with the source image in a transfer (copy) operation.
sourcepub const TRANSFER_DST: Self = _
pub const TRANSFER_DST: Self = _
Can be used with the destination image in a transfer (copy) operation.
sourcepub const SAMPLED_IMAGE_FILTER_LINEAR: Self = _
pub const SAMPLED_IMAGE_FILTER_LINEAR: Self = _
Can be used with samplers or as a blit source, using the
Linear
filter.
sourcepub const SAMPLED_IMAGE_FILTER_CUBIC: Self = _
pub const SAMPLED_IMAGE_FILTER_CUBIC: Self = _
Can be used with samplers or as a blit source, using the
Cubic
filter.
sourcepub const SAMPLED_IMAGE_FILTER_MINMAX: Self = _
pub const SAMPLED_IMAGE_FILTER_MINMAX: Self = _
sourcepub const MIDPOINT_CHROMA_SAMPLES: Self = _
pub const MIDPOINT_CHROMA_SAMPLES: Self = _
Can be used with sampler YCbCr conversions using a chroma offset of
Midpoint
.
sourcepub const COSITED_CHROMA_SAMPLES: Self = _
pub const COSITED_CHROMA_SAMPLES: Self = _
Can be used with sampler YCbCr conversions using a chroma offset of
CositedEven
.
sourcepub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: Self = _
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: Self = _
Can be used with sampler YCbCr conversions using the
Linear
chroma filter.
sourcepub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: Self = _
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: Self = _
Can be used with sampler YCbCr conversions whose chroma filter differs from the filters of the base sampler.
sourcepub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT: Self = _
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT: Self = _
When used with a sampler YCbCr conversion, the implementation will always perform explicit chroma reconstruction.
sourcepub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE: Self = _
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE: Self = _
Can be used with sampler YCbCr conversions with forced explicit reconstruction.
sourcepub const SAMPLED_IMAGE_DEPTH_COMPARISON: Self = _
pub const SAMPLED_IMAGE_DEPTH_COMPARISON: Self = _
Can be used with samplers using depth comparison.
sourcepub const VIDEO_DECODE_OUTPUT: Self = _
pub const VIDEO_DECODE_OUTPUT: Self = _
Can be used with the output image of a video decode operation.
sourcepub const VIDEO_DECODE_DPB: Self = _
pub const VIDEO_DECODE_DPB: Self = _
Can be used with the DPB image of a video decode operation.
sourcepub const VIDEO_ENCODE_INPUT: Self = _
pub const VIDEO_ENCODE_INPUT: Self = _
Can be used with the input image of a video encode operation.
sourcepub const VIDEO_ENCODE_DPB: Self = _
pub const VIDEO_ENCODE_DPB: Self = _
Can be used with the DPB image of a video encode operation.
sourcepub const DISJOINT: Self = _
pub const DISJOINT: Self = _
For multi-planar formats, can be used with images created with the DISJOINT
flag.
pub const LINEAR_COLOR_ATTACHMENT: Self = _
pub const WEIGHT_IMAGE: Self = _
pub const WEIGHT_SAMPLED_IMAGE: Self = _
pub const BLOCK_MATCHING: Self = _
pub const BOX_FILTER_SAMPLED: Self = _
pub const OPTICAL_FLOW_IMAGE: Self = _
pub const OPTICAL_FLOW_VECTOR: Self = _
pub const OPTICAL_FLOW_COST: Self = _
sourcepub const UNIFORM_TEXEL_BUFFER: Self = _
pub const UNIFORM_TEXEL_BUFFER: Self = _
Can be used with a uniform texel buffer descriptor.
sourcepub const STORAGE_TEXEL_BUFFER: Self = _
pub const STORAGE_TEXEL_BUFFER: Self = _
Can be used with a storage texel buffer descriptor.
sourcepub const STORAGE_TEXEL_BUFFER_ATOMIC: Self = _
pub const STORAGE_TEXEL_BUFFER_ATOMIC: Self = _
Can be used with a storage texel buffer descriptor with atomic operations in a shader.
sourcepub const VERTEX_BUFFER: Self = _
pub const VERTEX_BUFFER: Self = _
Can be used as the format of a vertex attribute in the vertex input state of a graphics pipeline.
sourcepub const ACCELERATION_STRUCTURE_VERTEX_BUFFER: Self = _
pub const ACCELERATION_STRUCTURE_VERTEX_BUFFER: Self = _
Can be used as the vertex format when building an acceleration structure.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a FormatFeatures
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for FormatFeatures
impl BitAnd for FormatFeatures
source§impl BitAndAssign for FormatFeatures
impl BitAndAssign for FormatFeatures
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for FormatFeatures
impl BitOr for FormatFeatures
source§impl BitOrAssign for FormatFeatures
impl BitOrAssign for FormatFeatures
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for FormatFeatures
impl BitXor for FormatFeatures
source§impl BitXorAssign for FormatFeatures
impl BitXorAssign for FormatFeatures
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for FormatFeatures
impl Clone for FormatFeatures
source§fn clone(&self) -> FormatFeatures
fn clone(&self) -> FormatFeatures
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FormatFeatures
impl Debug for FormatFeatures
source§impl Default for FormatFeatures
impl Default for FormatFeatures
source§impl From<FormatFeatureFlags> for FormatFeatures
impl From<FormatFeatureFlags> for FormatFeatures
source§fn from(val: FormatFeatureFlags) -> Self
fn from(val: FormatFeatureFlags) -> Self
source§impl From<FormatFeatureFlags2> for FormatFeatures
impl From<FormatFeatureFlags2> for FormatFeatures
source§fn from(val: FormatFeatureFlags2) -> Self
fn from(val: FormatFeatureFlags2) -> Self
source§impl From<FormatFeatures> for FormatFeatureFlags2
impl From<FormatFeatures> for FormatFeatureFlags2
source§fn from(val: FormatFeatures) -> Self
fn from(val: FormatFeatures) -> Self
source§impl Hash for FormatFeatures
impl Hash for FormatFeatures
source§impl PartialEq for FormatFeatures
impl PartialEq for FormatFeatures
source§fn eq(&self, other: &FormatFeatures) -> bool
fn eq(&self, other: &FormatFeatures) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for FormatFeatures
impl Sub for FormatFeatures
source§impl SubAssign for FormatFeatures
impl SubAssign for FormatFeatures
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more