pub struct TextureUpload {
pub id: u32,
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
}Expand description
A texture the compositor has not seen yet: premultiplied RGBA8, row by row from the top.
Fields§
§id: u32Handle of the texture. Sprites name it, and releases lists it once it is dropped.
width: u32Texture width in pixels.
height: u32Texture height in pixels.
pixels: Vec<u8>Premultiplied RGBA8 pixels, row by row from the top: width times height times four
bytes.
Trait Implementations§
Source§impl Clone for TextureUpload
impl Clone for TextureUpload
Source§impl Debug for TextureUpload
impl Debug for TextureUpload
impl Eq for TextureUpload
Source§impl PartialEq for TextureUpload
impl PartialEq for TextureUpload
impl StructuralPartialEq for TextureUpload
Auto Trait Implementations§
impl Freeze for TextureUpload
impl RefUnwindSafe for TextureUpload
impl Send for TextureUpload
impl Sync for TextureUpload
impl Unpin for TextureUpload
impl UnsafeUnpin for TextureUpload
impl UnwindSafe for TextureUpload
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