pub struct TextureDesc<'a> {
pub label: Option<&'a str>,
pub width: u32,
pub height: u32,
pub depth: u32,
pub mip_levels: u32,
pub sample_count: u32,
pub format: TextureFormat,
pub usage: TextureUsage,
}Fields§
§label: Option<&'a str>§width: u32§height: u32§depth: u32§mip_levels: u32§sample_count: u32§format: TextureFormat§usage: TextureUsageImplementations§
Source§impl<'a> TextureDesc<'a>
impl<'a> TextureDesc<'a>
pub fn new_2d( width: u32, height: u32, format: TextureFormat, usage: TextureUsage, ) -> TextureDesc<'a>
Trait Implementations§
Source§impl<'a> Clone for TextureDesc<'a>
impl<'a> Clone for TextureDesc<'a>
Source§fn clone(&self) -> TextureDesc<'a>
fn clone(&self) -> TextureDesc<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextureDesc<'a>
impl<'a> RefUnwindSafe for TextureDesc<'a>
impl<'a> Send for TextureDesc<'a>
impl<'a> Sync for TextureDesc<'a>
impl<'a> Unpin for TextureDesc<'a>
impl<'a> UnsafeUnpin for TextureDesc<'a>
impl<'a> UnwindSafe for TextureDesc<'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