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: Format
The image pixel data format.
width: u32
The image width in pixels.
height: u32
The image height in pixels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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