pub struct TextureSpec {
pub file: Option<&'static str>,
pub width: u32,
pub height: u32,
pub format: TextureFormat,
pub data: Option<Vec<u8>>,
pub generate_mips: bool,
}Fields§
§file: Option<&'static str>§width: u32§height: u32§format: TextureFormat§data: Option<Vec<u8>>§generate_mips: boolImplementations§
Source§impl TextureSpec
impl TextureSpec
pub fn with_format(self, format: TextureFormat) -> Self
Auto Trait Implementations§
impl Freeze for TextureSpec
impl RefUnwindSafe for TextureSpec
impl Send for TextureSpec
impl Sync for TextureSpec
impl Unpin for TextureSpec
impl UnsafeUnpin for TextureSpec
impl UnwindSafe for TextureSpec
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