pub struct TextureDescriptor {
pub label: Option<String>,
pub usage: Option<TextureUsage>,
pub dimension: Option<TextureDimension>,
pub size: Option<Extent3D>,
pub format: Option<TextureFormat>,
pub mip_level_count: Option<u32>,
pub sample_count: Option<u32>,
pub view_formats: Option<Vec<TextureFormat>>,
/* private fields */
}Fields§
§label: Option<String>§usage: Option<TextureUsage>§dimension: Option<TextureDimension>§size: Option<Extent3D>§format: Option<TextureFormat>§mip_level_count: Option<u32>§sample_count: Option<u32>§view_formats: Option<Vec<TextureFormat>>Implementations§
Source§impl TextureDescriptor
impl TextureDescriptor
pub fn new() -> Self
pub fn with_extension(self, extension: TextureDescriptorExtension) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextureDescriptor
impl RefUnwindSafe for TextureDescriptor
impl Send for TextureDescriptor
impl Sync for TextureDescriptor
impl Unpin for TextureDescriptor
impl UnsafeUnpin for TextureDescriptor
impl UnwindSafe for TextureDescriptor
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