openharmony 鸿蒙 vulkan-overview

2026-08-25 浏览 (1)

Vulkan Development Overview

Vulkan is a set of graphics APIs designed for 2D and 3D rendering. In OpenHarmony, two new extensions are introduced: VK_OHOS_surface and VK_OHOS_external_memory.

The VK_OHOS_surface extension enables the creation of a VkSurfaceKHR, which connects to the OHNativeWindow module to implement the rotation of OHNativeBuffers for display purposes.

The VK_OHOS_external_memory extension supports zero-copy memory sharing between the GPU Vulkan environment and OpenHarmony OHNativeBuffer. Typical scenarios are as follows:

  1. Camera/Camera pipeline: OHNativeBuffers generated by the camera can be directly sampled in Vulkan or used as rendering targets.

  2. Zero-copy video decoding and rendering: OHNativeBuffers output by decoders can be directly imported into Vulkan for post-processing or compositing.

  3. Surface/OHNativeWindow interoperability: Importing the buffers of OHNativeWindow or Surface into Vulkan or exporting Vulkan rendering results as OHNativeBuffers for use by the system (such as RenderService) or other clients.

  4. Multi-API interoperability: Share the same OHNativeBuffer across OpenGL/EGL and Vulkan for cross-API resource sharing (zero-copy).

For details about how to use Vulkan, visit the Vulkan official website.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 guidance-on-ndk-libc-interfaces-affected-by-permissions

openharmony 鸿蒙 capi-vulkan-ohbufferhandle

openharmony 鸿蒙 zlib

openharmony 鸿蒙 icu4c-symbol

openharmony 鸿蒙 musl

openharmony 鸿蒙 capi-vulkan-vkimportnativebufferinfoohos

openharmony 鸿蒙 opengl-symbol

openharmony 鸿蒙 opengl

openharmony 鸿蒙 vulkan

openharmony 鸿蒙 capi-vulkan-vksurfacecreateinfoohos

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/obf3OdLs