[−][src]Struct wgpu::TextureDescriptor
Describes a Texture.
Fields
label: Option<&'a str>Debug label of the texture. This will show up in graphics debuggers for easy identification.
size: Extent3dSize of the texture. For a regular 1D/2D texture, the unused sizes will be 1. For 2DArray textures, Z is the number of 2D textures in that array.
mip_level_count: u32Mip count of texture. For a texture with no extra mips, this must be 1.
sample_count: u32Sample count of texture. If this is not 1, texture must have BindingType::SampledTexture::multisampled set to true.
dimension: TextureDimensionDimensions of the texture.
format: TextureFormatFormat of the texture.
usage: TextureUsageAllowed usages of the texture. If used in other ways, the operation will panic.
Trait Implementations
impl<'a> Clone for TextureDescriptor<'a>[src]
fn clone(&self) -> TextureDescriptor<'a>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Debug for TextureDescriptor<'a>[src]
impl<'a> Eq for TextureDescriptor<'a>[src]
impl<'a> Hash for TextureDescriptor<'a>[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<'a> PartialEq<TextureDescriptor<'a>> for TextureDescriptor<'a>[src]
fn eq(&self, other: &TextureDescriptor<'a>) -> bool[src]
fn ne(&self, other: &TextureDescriptor<'a>) -> bool[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, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,