pub enum HarmonyGraphicsApi {
Vulkan,
OpenGlEs3,
SoftwareBuffer,
}Expand description
Active native rendering path bound to HarmonyOS OHNativeWindow.
Variants§
Vulkan
Direct GPU rendering over Khronos Vulkan (VK_OHOS_surface).
OpenGlEs3
Direct GPU rendering over EGL + OpenGL ES 3.0 (eglCreateWindowSurface).
SoftwareBuffer
Reference CPU software buffer upload via OH_NativeWindow_NativeWindowRequestBuffer / FlushBuffer.
Trait Implementations§
Source§impl Clone for HarmonyGraphicsApi
impl Clone for HarmonyGraphicsApi
impl Copy for HarmonyGraphicsApi
Source§impl Debug for HarmonyGraphicsApi
impl Debug for HarmonyGraphicsApi
Source§impl Default for HarmonyGraphicsApi
impl Default for HarmonyGraphicsApi
impl Eq for HarmonyGraphicsApi
Source§impl Hash for HarmonyGraphicsApi
impl Hash for HarmonyGraphicsApi
Source§impl Ord for HarmonyGraphicsApi
impl Ord for HarmonyGraphicsApi
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 HarmonyGraphicsApi
impl PartialEq for HarmonyGraphicsApi
Source§impl PartialOrd for HarmonyGraphicsApi
impl PartialOrd for HarmonyGraphicsApi
impl StructuralPartialEq for HarmonyGraphicsApi
Auto Trait Implementations§
impl Forget for HarmonyGraphicsApi
impl Freeze for HarmonyGraphicsApi
impl Move for HarmonyGraphicsApi
impl RefUnwindSafe for HarmonyGraphicsApi
impl Send for HarmonyGraphicsApi
impl Sync for HarmonyGraphicsApi
impl Unpin for HarmonyGraphicsApi
impl UnsafeUnpin for HarmonyGraphicsApi
impl UnwindSafe for HarmonyGraphicsApi
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