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.
Implementations§
source§impl TextureDescriptor<'_>
impl TextureDescriptor<'_>
pub fn copy_extent(&self) -> CopyExtent
pub fn is_cube_compatible(&self) -> bool
pub fn array_layer_count(&self) -> u32
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 moreAuto Trait Implementations§
impl<'a> Freeze for TextureDescriptor<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)