[][src]Struct wgpu_types::TextureDescriptor

#[repr(C)]pub struct TextureDescriptor<L> {
    pub label: L,
    pub size: Extent3d,
    pub mip_level_count: u32,
    pub sample_count: u32,
    pub dimension: TextureDimension,
    pub format: TextureFormat,
    pub usage: TextureUsage,
}

Fields

label: Lsize: Extent3dmip_level_count: u32sample_count: u32dimension: TextureDimensionformat: TextureFormatusage: TextureUsage

Methods

impl<L> TextureDescriptor<L>[src]

pub fn map_label<K>(&self, fun: impl FnOnce(&L) -> K) -> TextureDescriptor<K>[src]

Trait Implementations

impl<L: Clone> Clone for TextureDescriptor<L>[src]

impl<L: Debug> Debug for TextureDescriptor<L>[src]

impl<L: Eq> Eq for TextureDescriptor<L>[src]

impl<L: Hash> Hash for TextureDescriptor<L>[src]

impl<L: PartialEq> PartialEq<TextureDescriptor<L>> for TextureDescriptor<L>[src]

impl<L> Serialize for TextureDescriptor<L> where
    L: Serialize
[src]

impl<L> StructuralEq for TextureDescriptor<L>[src]

impl<L> StructuralPartialEq for TextureDescriptor<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for TextureDescriptor<L> where
    L: RefUnwindSafe

impl<L> Send for TextureDescriptor<L> where
    L: Send

impl<L> Sync for TextureDescriptor<L> where
    L: Sync

impl<L> Unpin for TextureDescriptor<L> where
    L: Unpin

impl<L> UnwindSafe for TextureDescriptor<L> where
    L: UnwindSafe

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> 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.