logo
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

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

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

The resulting type after applying the | operator.

Performs the | operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.