pub enum HostRenderChannel {
GpuDirect,
GpuUpload,
SoftwareBuffer,
Canvas2d,
WebGl,
WebGl2,
}Expand description
Unified host-declared rendering channel shared across HarmonyOS, Wearables, MiniApps, and QuickApps.
Variants§
GpuDirect
Direct native GPU rendering on a verified host surface (Vulkan / GLES3 / Metal).
GpuUpload
GPU texture upload from a CPU software framebuffer.
SoftwareBuffer
Native CPU software pixel buffer (OH_NativeWindow / watch framebuffer).
Canvas2d
Host <canvas> 2D context (putImageData).
WebGl
Host <canvas> WebGL 1.0 context.
WebGl2
Host <canvas> WebGL 2.0 context.
Trait Implementations§
Source§impl Clone for HostRenderChannel
impl Clone for HostRenderChannel
impl Copy for HostRenderChannel
Source§impl Debug for HostRenderChannel
impl Debug for HostRenderChannel
Source§impl Default for HostRenderChannel
impl Default for HostRenderChannel
impl Eq for HostRenderChannel
Source§impl Hash for HostRenderChannel
impl Hash for HostRenderChannel
Source§impl Ord for HostRenderChannel
impl Ord for HostRenderChannel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HostRenderChannel
impl PartialEq for HostRenderChannel
Source§impl PartialOrd for HostRenderChannel
impl PartialOrd for HostRenderChannel
impl StructuralPartialEq for HostRenderChannel
Auto Trait Implementations§
impl Forget for HostRenderChannel
impl Freeze for HostRenderChannel
impl Move for HostRenderChannel
impl RefUnwindSafe for HostRenderChannel
impl Send for HostRenderChannel
impl Sync for HostRenderChannel
impl Unpin for HostRenderChannel
impl UnsafeUnpin for HostRenderChannel
impl UnwindSafe for HostRenderChannel
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