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,
pub view_formats: Vec<TextureFormat>,
}Fields§
§label: Label<'a>§size: Extent3d§mip_level_count: u32§sample_count: u32§dimension: TextureDimension§format: TextureFormat§usage: TextureUses§memory_flags: MemoryFlags§view_formats: Vec<TextureFormat>Allows views of this texture to have a different format than the texture does.
Trait Implementations§
source§impl<'a> Clone for TextureDescriptor<'a>
impl<'a> Clone for TextureDescriptor<'a>
source§fn clone(&self) -> TextureDescriptor<'a>
fn clone(&self) -> TextureDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more