pub struct TextureDescriptor<'data> {
pub name: &'static str,
pub size: UVec2,
pub sample_count: u32,
pub data: Option<&'data [u8]>,
pub format: TextureFormat,
pub usage: TextureUsage,
}Fields§
§name: &'static str§size: UVec2§sample_count: u32§data: Option<&'data [u8]>§format: TextureFormat§usage: TextureUsageTrait Implementations§
Source§impl<'data> Clone for TextureDescriptor<'data>
impl<'data> Clone for TextureDescriptor<'data>
Source§fn clone(&self) -> TextureDescriptor<'data>
fn clone(&self) -> TextureDescriptor<'data>
Returns a duplicate 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<'data> Freeze for TextureDescriptor<'data>
impl<'data> RefUnwindSafe for TextureDescriptor<'data>
impl<'data> Send for TextureDescriptor<'data>
impl<'data> Sync for TextureDescriptor<'data>
impl<'data> Unpin for TextureDescriptor<'data>
impl<'data> UnwindSafe for TextureDescriptor<'data>
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