Struct wgpu::TextureFormatFeatures[][src]

pub struct TextureFormatFeatures {
    pub allowed_usages: TextureUsage,
    pub flags: TextureFormatFeatureFlags,
    pub filterable: bool,
}

Features supported by a given texture format

Features are defined by WebGPU specification unless Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES is enabled.

Fields

allowed_usages: TextureUsage

Valid bits for TextureDescriptor::Usage provided for format creation.

flags: TextureFormatFeatureFlags

Additional property flags for the format.

filterable: bool

If filterable is false, the texture can’t be sampled with a filtering sampler. This may overwrite TextureSampleType::Float.filterable

Trait Implementations

impl Clone for TextureFormatFeatures[src]

impl Copy for TextureFormatFeatures[src]

impl Debug for TextureFormatFeatures[src]

impl Eq for TextureFormatFeatures[src]

impl Hash for TextureFormatFeatures[src]

impl PartialEq<TextureFormatFeatures> for TextureFormatFeatures[src]

impl StructuralEq for TextureFormatFeatures[src]

impl StructuralPartialEq for TextureFormatFeatures[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T