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
Trait Implementations
sourceimpl BitOr<&'_ FormatFeatures> for &FormatFeatures
impl BitOr<&'_ FormatFeatures> for &FormatFeatures
sourceimpl Clone for FormatFeatures
impl Clone for FormatFeatures
sourcefn clone(&self) -> FormatFeatures
fn clone(&self) -> FormatFeatures
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FormatFeatures
impl Debug for FormatFeatures
sourceimpl Default for FormatFeatures
impl Default for FormatFeatures
sourcefn default() -> FormatFeatures
fn default() -> FormatFeatures
Returns the “default value” for a type. Read more
sourceimpl From<FormatFeatureFlags> for FormatFeatures
impl From<FormatFeatureFlags> for FormatFeatures
sourcefn from(val: FormatFeatureFlags) -> FormatFeatures
fn from(val: FormatFeatureFlags) -> FormatFeatures
Performs the conversion.
sourceimpl From<FormatFeatureFlags2> for FormatFeatures
impl From<FormatFeatureFlags2> for FormatFeatures
sourcefn from(val: FormatFeatureFlags2) -> FormatFeatures
fn from(val: FormatFeatureFlags2) -> FormatFeatures
Performs the conversion.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FormatFeatures) -> bool
fn ne(&self, other: &FormatFeatures) -> bool
This method tests for !=
.
impl Copy for FormatFeatures
impl Eq for FormatFeatures
impl StructuralEq for FormatFeatures
impl StructuralPartialEq for FormatFeatures
Auto Trait Implementations
impl RefUnwindSafe for FormatFeatures
impl Send for FormatFeatures
impl Sync for FormatFeatures
impl Unpin for FormatFeatures
impl UnwindSafe for FormatFeatures
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more