pub struct FormatProperties {
    pub linear_tiling_features: FormatFeatures,
    pub optimal_tiling_features: FormatFeatures,
    pub buffer_features: FormatFeatures,
    pub drm_format_modifier_properties: Vec<DrmFormatModifierProperties>,
    pub _ne: NonExhaustive,
}
Expand description

The properties of a format that are supported by a physical device.

Fields§

§linear_tiling_features: FormatFeatures

Features available for images with linear tiling.

§optimal_tiling_features: FormatFeatures

Features available for images with optimal tiling.

§buffer_features: FormatFeatures

Features available for buffers.

§drm_format_modifier_properties: Vec<DrmFormatModifierProperties>

The properties of the format when combined with a Linux DRM format modifier.

This will be empty if the ext_image_drm_format_modifier extension is not supported by the physical device.

§_ne: NonExhaustive

Implementations§

source§

impl FormatProperties

source

pub fn format_features( &self, tiling: ImageTiling, drm_format_modifiers: &[u64] ) -> FormatFeatures

Returns the format features for the specified tiling.

source

pub fn potential_format_features(&self) -> FormatFeatures

Returns the potential format features, following the definition of https://registry.khronos.org/vulkan/specs/1.3-extensions/html/chap47.html#potential-format-features.

Trait Implementations§

source§

impl Clone for FormatProperties

source§

fn clone(&self) -> FormatProperties

Returns a copy 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 FormatProperties

source§

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

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

impl Default for FormatProperties

source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.