pub enum RenderCommand {
SetImageEncoded {
handle: ImageHandle,
bytes: Vec<u8>,
srgb: bool,
},
SetImageRgba8 {
handle: ImageHandle,
w: u32,
h: u32,
rgba: Vec<u8>,
srgb: bool,
},
SetImageNv12 {
handle: ImageHandle,
w: u32,
h: u32,
y: Vec<u8>,
uv: Vec<u8>,
color_info: ColorInfo,
},
SetImagePlanes {
handle: ImageHandle,
w: u32,
h: u32,
pixel_format: PixelFormat,
planes: Vec<Vec<u8>>,
color_info: ColorInfo,
},
RemoveImage {
handle: ImageHandle,
},
}Variants§
SetImageEncoded
SetImageRgba8
SetImageNv12
SetImagePlanes
RemoveImage
Fields
§
handle: ImageHandleTrait Implementations§
Auto Trait Implementations§
impl Freeze for RenderCommand
impl RefUnwindSafe for RenderCommand
impl Send for RenderCommand
impl Sync for RenderCommand
impl Unpin for RenderCommand
impl UnsafeUnpin for RenderCommand
impl UnwindSafe for RenderCommand
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