Struct vulkano::format::FormatFeatures
source · [−]pub struct FormatFeatures {Show 35 fields
pub sampled_image: bool,
pub storage_image: bool,
pub storage_image_atomic: bool,
pub storage_read_without_format: bool,
pub storage_write_without_format: bool,
pub color_attachment: bool,
pub color_attachment_blend: bool,
pub depth_stencil_attachment: bool,
pub fragment_density_map: bool,
pub fragment_shading_rate_attachment: bool,
pub transfer_src: bool,
pub transfer_dst: bool,
pub blit_src: bool,
pub blit_dst: bool,
pub sampled_image_filter_linear: bool,
pub sampled_image_filter_cubic: bool,
pub sampled_image_filter_minmax: bool,
pub midpoint_chroma_samples: bool,
pub cosited_chroma_samples: bool,
pub sampled_image_ycbcr_conversion_linear_filter: bool,
pub sampled_image_ycbcr_conversion_separate_reconstruction_filter: bool,
pub sampled_image_ycbcr_conversion_chroma_reconstruction_explicit: bool,
pub sampled_image_ycbcr_conversion_chroma_reconstruction_explicit_forceable: bool,
pub sampled_image_depth_comparison: bool,
pub video_decode_output: bool,
pub video_decode_dpb: bool,
pub video_encode_input: bool,
pub video_encode_dpb: bool,
pub disjoint: bool,
pub uniform_texel_buffer: bool,
pub storage_texel_buffer: bool,
pub storage_texel_buffer_atomic: bool,
pub vertex_buffer: bool,
pub acceleration_structure_vertex_buffer: bool,
pub _ne: NonExhaustive,
}
Expand description
The features supported by a device for an image or buffer with a particular format.
Fields
sampled_image: bool
Can be used with a sampled image descriptor.
storage_image: bool
Can be used with a storage image descriptor.
storage_image_atomic: bool
Can be used with a storage image descriptor with atomic operations in a shader.
storage_read_without_format: bool
Can be used with a storage image descriptor for reading, without specifying a format on the image view.
storage_write_without_format: bool
Can be used with a storage image descriptor for writing, without specifying a format on the image view.
color_attachment: bool
Can be used with a color attachment in a framebuffer, or with an input attachment descriptor.
color_attachment_blend: bool
Can be used with a color attachment in a framebuffer with blending, or with an input attachment descriptor.
depth_stencil_attachment: bool
Can be used with a depth/stencil attachment in a framebuffer, or with an input attachment descriptor.
fragment_density_map: bool
Can be used with a fragment density map attachment in a framebuffer.
fragment_shading_rate_attachment: bool
Can be used with a fragment shading rate attachment in a framebuffer.
transfer_src: bool
Can be used with the source image in a transfer (copy) operation.
transfer_dst: bool
Can be used with the destination image in a transfer (copy) operation.
blit_src: bool
Can be used with the source image in a blit operation.
blit_dst: bool
Can be used with the destination image in a blit operation.
sampled_image_filter_linear: bool
Can be used with samplers or as a blit source, using the
Linear
filter.
sampled_image_filter_cubic: bool
Can be used with samplers or as a blit source, using the
Cubic
filter.
sampled_image_filter_minmax: bool
midpoint_chroma_samples: bool
Can be used with sampler YCbCr conversions using a chroma offset of
Midpoint
.
cosited_chroma_samples: bool
Can be used with sampler YCbCr conversions using a chroma offset of
CositedEven
.
sampled_image_ycbcr_conversion_linear_filter: bool
Can be used with sampler YCbCr conversions using the
Linear
chroma filter.
sampled_image_ycbcr_conversion_separate_reconstruction_filter: bool
Can be used with sampler YCbCr conversions whose chroma filter differs from the filters of the base sampler.
sampled_image_ycbcr_conversion_chroma_reconstruction_explicit: bool
When used with a sampler YCbCr conversion, the implementation will always perform explicit chroma reconstruction.
sampled_image_ycbcr_conversion_chroma_reconstruction_explicit_forceable: bool
Can be used with sampler YCbCr conversions with forced explicit reconstruction.
sampled_image_depth_comparison: bool
Can be used with samplers using depth comparison.
video_decode_output: bool
Can be used with the output image of a video decode operation.
video_decode_dpb: bool
Can be used with the DPB image of a video decode operation.
video_encode_input: bool
Can be used with the input image of a video encode operation.
video_encode_dpb: bool
Can be used with the DPB image of a video encode operation.
disjoint: bool
For multi-planar formats, can be used with images created with the disjoint
flag.
uniform_texel_buffer: bool
Can be used with a uniform texel buffer descriptor.
storage_texel_buffer: bool
Can be used with a storage texel buffer descriptor.
storage_texel_buffer_atomic: bool
Can be used with a storage texel buffer descriptor with atomic operations in a shader.
vertex_buffer: bool
Can be used as the format of a vertex attribute in the vertex input state of a graphics pipeline.
acceleration_structure_vertex_buffer: bool
Can be used with the vertex buffer of an acceleration structure.
_ne: NonExhaustive
Implementations
sourceimpl FormatFeatures
impl FormatFeatures
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns 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 set in self
or other
, but not both.
Trait Implementations
sourceimpl BitAnd<FormatFeatures> for FormatFeatures
impl BitAnd<FormatFeatures> for FormatFeatures
type Output = FormatFeatures
type Output = FormatFeatures
&
operator.sourceimpl BitAndAssign<FormatFeatures> for FormatFeatures
impl BitAndAssign<FormatFeatures> for FormatFeatures
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresourceimpl BitOr<FormatFeatures> for FormatFeatures
impl BitOr<FormatFeatures> for FormatFeatures
type Output = FormatFeatures
type Output = FormatFeatures
|
operator.sourceimpl BitOrAssign<FormatFeatures> for FormatFeatures
impl BitOrAssign<FormatFeatures> for FormatFeatures
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresourceimpl BitXor<FormatFeatures> for FormatFeatures
impl BitXor<FormatFeatures> for FormatFeatures
type Output = FormatFeatures
type Output = FormatFeatures
^
operator.sourceimpl BitXorAssign<FormatFeatures> for FormatFeatures
impl BitXorAssign<FormatFeatures> for FormatFeatures
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresourceimpl Clone for FormatFeatures
impl Clone for FormatFeatures
sourcefn clone(&self) -> FormatFeatures
fn clone(&self) -> FormatFeatures
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for FormatFeatures
impl Debug for FormatFeatures
sourceimpl Default for FormatFeatures
impl Default for FormatFeatures
sourceimpl From<FormatFeatureFlags> for FormatFeatures
impl From<FormatFeatureFlags> for FormatFeatures
sourcefn from(val: FormatFeatureFlags) -> Self
fn from(val: FormatFeatureFlags) -> Self
sourceimpl From<FormatFeatureFlags2> for FormatFeatures
impl From<FormatFeatureFlags2> for FormatFeatures
sourcefn from(val: FormatFeatureFlags2) -> Self
fn from(val: FormatFeatureFlags2) -> Self
sourceimpl From<FormatFeatures> for FormatFeatureFlags2
impl From<FormatFeatures> for FormatFeatureFlags2
sourcefn from(val: FormatFeatures) -> Self
fn from(val: FormatFeatures) -> Self
sourceimpl Hash for FormatFeatures
impl Hash for FormatFeatures
sourceimpl PartialEq<FormatFeatures> for FormatFeatures
impl PartialEq<FormatFeatures> for FormatFeatures
sourcefn eq(&self, other: &FormatFeatures) -> bool
fn eq(&self, other: &FormatFeatures) -> bool
sourceimpl Sub<FormatFeatures> for FormatFeatures
impl Sub<FormatFeatures> for FormatFeatures
type Output = FormatFeatures
type Output = FormatFeatures
-
operator.sourceimpl SubAssign<FormatFeatures> for FormatFeatures
impl SubAssign<FormatFeatures> for FormatFeatures
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more