Struct wgpu_hal::TextureDescriptor
source · [−]pub struct TextureDescriptor<'a> {
pub label: Label<'a>,
pub size: Extent3d,
pub mip_level_count: u32,
pub sample_count: u32,
pub dimension: TextureDimension,
pub format: TextureFormat,
pub usage: TextureUses,
pub memory_flags: MemoryFlags,
}
Fields
label: Label<'a>
size: Extent3d
mip_level_count: u32
sample_count: u32
dimension: TextureDimension
format: TextureFormat
usage: TextureUses
memory_flags: MemoryFlags
Trait Implementations
sourceimpl<'a> Clone for TextureDescriptor<'a>
impl<'a> Clone for TextureDescriptor<'a>
sourcefn clone(&self) -> TextureDescriptor<'a>
fn clone(&self) -> TextureDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more