pub struct TextureData {
pub width: usize,
pub height: usize,
pub data: Vec<u8>,
}Expand description
CPU-side RGBA image data.
Fields§
§width: usize§height: usize§data: Vec<u8>RGBA bytes, row-major, top-left origin.
Implementations§
Trait Implementations§
Source§impl Clone for TextureData
impl Clone for TextureData
Source§fn clone(&self) -> TextureData
fn clone(&self) -> TextureData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureData
impl Debug for TextureData
Source§impl<'de> Deserialize<'de> for TextureData
impl<'de> Deserialize<'de> for TextureData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextureData
impl RefUnwindSafe for TextureData
impl Send for TextureData
impl Sync for TextureData
impl Unpin for TextureData
impl UnsafeUnpin 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