pub struct Data {
pub pixels: Vec<u8>,
pub format: Format,
pub width: u32,
pub height: u32,
}Available on crate feature
import only.Expand description
Image data belonging to an imported glTF asset.
Fields§
§pixels: Vec<u8>The image pixel data (8 bits per channel).
format: FormatThe image pixel data format.
width: u32The image width in pixels.
height: u32The image height in pixels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for 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