[][src]Struct wgpu::TextureDescriptor

pub struct TextureDescriptor<'a> {
    pub label: Option<&'a str>,
    pub size: Extent3d,
    pub array_layer_count: u32,
    pub mip_level_count: u32,
    pub sample_count: u32,
    pub dimension: TextureDimension,
    pub format: TextureFormat,
    pub usage: TextureUsage,

A description of a texture.


label: Option<&'a str>

An optional label to apply to the texture. This can be useful for debugging and performance analysis.

size: Extent3d

The size of the texture.

array_layer_count: u32

The array layer count.

mip_level_count: u32

The mip level count.

sample_count: u32

The sample count.

dimension: TextureDimension

The texture dimension.

format: TextureFormat

The texture format.

usage: TextureUsage

All possible ways the texture can be used.

Trait Implementations

impl<'a> Clone for TextureDescriptor<'a>[src]

impl<'a> Debug for TextureDescriptor<'a>[src]

impl<'a> Eq for TextureDescriptor<'a>[src]

impl<'a> Hash for TextureDescriptor<'a>[src]

impl<'a> PartialEq<TextureDescriptor<'a>> for TextureDescriptor<'a>[src]

impl<'a> StructuralEq for TextureDescriptor<'a>[src]

impl<'a> StructuralPartialEq for TextureDescriptor<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for TextureDescriptor<'a>

impl<'a> Send for TextureDescriptor<'a>

impl<'a> Sync for TextureDescriptor<'a>

impl<'a> Unpin for TextureDescriptor<'a>

impl<'a> UnwindSafe for TextureDescriptor<'a>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.