harmony 鸿蒙vulkan_ohos.h

2025-06-12 浏览 (1)

vulkan_ohos.h

Overview

The vulkan_ohos.h file declares the Vulkan interfaces extended by OpenHarmony. File to include: <vulkan/vulkan.h>

Since

10

Related Modules

Vulkan

Summary

Structs

NameDescription
VkSurfaceCreateInfoOHOSDefines the parameters required for creating a Vulkan surface.
VkNativeBufferUsageOHOSDefines the usage of a NativeBuffer.
VkNativeBufferPropertiesOHOSDefines the properties of a NativeBuffer.
VkNativeBufferFormatPropertiesOHOSDefines the format properties of a NativeBuffer.
VkImportNativeBufferInfoOHOSDefines the pointer to an OH_NativeBuffer struct.
VkMemoryGetNativeBufferInfoOHOSDefines a struct used to obtain an OH_NativeBuffer from the Vulkan memory.
VkExternalFormatOHOSDefines an externally defined format.

Macros

NameDescription
VK_OHOS_surface 1Surface extension macro definition of OpenHarmony.
VK_OHOS_SURFACE_SPEC_VERSION 1Surface extension version of OpenHarmony.
VK_OHOS_SURFACE_EXTENSION_NAME "VK_OHOS_surface"Surface extension name of OpenHarmony.
VK_OHOS_external_memory 1External memory extension macro definition of OpenHarmony.
VK_OHOS_EXTERNAL_MEMORY_SPEC_VERSION 1External memory extension version of OpenHarmony.
VK_OHOS_EXTERNAL_MEMORY_EXTENSION_NAME "VK_OHOS_external_memory"External memory extension name of OpenHarmony.

Types

NameDescription
OHNativeWindowDefines an OHNativeWindow.
VkSurfaceCreateFlagsOHOSDefines the bit mask of the VkFlags type used for the creation of a Vulkan surface. It is a reserved flag type.
VkSurfaceCreateInfoOHOSDefines the parameters required for creating a Vulkan surface.
VkResult (VKAPI_PTR *PFN_vkCreateSurfaceOHOS) (VkInstance instance, const VkSurfaceCreateInfoOHOS *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface)Defines the function pointer for creating a Vulkan surface.
VkNativeBufferUsageOHOSDefines the usage of a NativeBuffer.
VkNativeBufferPropertiesOHOSDefines the properties of a NativeBuffer.
VkNativeBufferFormatPropertiesOHOSDefines the format properties of a NativeBuffer.
VkImportNativeBufferInfoOHOSDefines the pointer to an OH_NativeBuffer struct.
VkMemoryGetNativeBufferInfoOHOSDefines a struct used to obtain an OH_NativeBuffer from the Vulkan memory.
VkExternalFormatOHOSDefines an externally defined format.
VkResult (VKAPI_PTR *PFN_vkGetNativeBufferPropertiesOHOS) (VkDevice device, const struct OH_NativeBuffer *buffer, VkNativeBufferPropertiesOHOS *pProperties)Defines a function pointer used to obtain OH_NativeBuffer properties.
VkResult (VKAPI_PTR *PFN_vkGetMemoryNativeBufferOHOS) (VkDevice device, const VkMemoryGetNativeBufferInfoOHOS *pInfo, struct OH_NativeBuffer **pBuffer)Defines a function pointer used to obtain an OH_NativeBuffer instance.

Functions

NameDescription
vkCreateSurfaceOHOS (VkInstance instance, const VkSurfaceCreateInfoOHOS *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface)Creates a Vulkan surface.
vkGetNativeBufferPropertiesOHOS (VkDevice device, const struct OH_NativeBuffer *buffer, VkNativeBufferPropertiesOHOS *pProperties)Obtains the properties of an OH_NativeBuffer instance.
vkGetMemoryNativeBufferOHOS (VkDevice device, const VkMemoryGetNativeBufferInfoOHOS *pInfo, struct OH_NativeBuffer **pBuffer)Obtains an OH_NativeBuffer instance.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API Standard Libraries

harmony 鸿蒙VkExternalFormatOHOS

harmony 鸿蒙VkImportNativeBufferInfoOHOS

harmony 鸿蒙VkMemoryGetNativeBufferInfoOHOS

harmony 鸿蒙VkNativeBufferFormatPropertiesOHOS

harmony 鸿蒙VkNativeBufferPropertiesOHOS

harmony 鸿蒙VkNativeBufferUsageOHOS

harmony 鸿蒙VkSurfaceCreateInfoOHOS

harmony 鸿蒙Vulkan Module

harmony 鸿蒙libc++

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