pub struct TextureData {
pub width: u32,
pub height: u32,
pub format: TextureFormat,
pub data: Vec<u8>,
}Expand description
Represents the data stored for a texture in the memory pool
Fields§
§width: u32Width of the texture
height: u32Height of the texture
format: TextureFormatTexture format
data: Vec<u8>Raw pixel data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextureData
impl RefUnwindSafe for TextureData
impl Send for TextureData
impl Sync for TextureData
impl Unpin for TextureData
impl UnwindSafe for TextureData
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