mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 09:10:54 +00:00
add vulkan ndk interface
Signed-off-by: andrewhw <zhangzhao62@huawei.com> Change-Id: Ie2b89076a75e0633640e7c1b9353fa7ea67a9798
This commit is contained in:
parent
c7e45bb09b
commit
51346804f1
@ -17,6 +17,7 @@
|
||||
"SystemCapability.Graphic.Graphic2D.GLES3",
|
||||
"SystemCapability.Graphic.Graphic2D.NativeWindow",
|
||||
"SystemCapability.Graphic.Graphic2D.NativeDrawing",
|
||||
"SystemCapability.Graphic.Graphic2D.Vulkan",
|
||||
"SystemCapability.Graphic.Graphic2D.WebGL",
|
||||
"SystemCapability.Graphic.Graphic2D.WebGL2"
|
||||
],
|
||||
|
38
interfaces/kits/ndk/vulkan/BUILD.gn
Normal file
38
interfaces/kits/ndk/vulkan/BUILD.gn
Normal file
@ -0,0 +1,38 @@
|
||||
# Copyright (c) 2021 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/ndk/ndk.gni")
|
||||
|
||||
ohos_ndk_headers("vulkan_header") {
|
||||
dest_dir = "$ndk_headers_out_dir/vulkan"
|
||||
sources = [
|
||||
"//third_party/vulkan/vulkan/vk_platform.h",
|
||||
"//third_party/vulkan/vulkan/vulkan.h",
|
||||
"//third_party/vulkan/vulkan/vulkan_core.h",
|
||||
"//third_party/vulkan/vulkan/vulkan_ohos.h",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_ndk_library("libvulkan_ndk") {
|
||||
output_name = "vulkan"
|
||||
output_extension = "so"
|
||||
ndk_description_file = "./libvulkan.ndk.json"
|
||||
system_capability = "SystemCapability.Graphic.Graphic2D.Vulkan"
|
||||
system_capability_headers = [
|
||||
"vulkan/vulkan_ohos.h",
|
||||
"vulkan/vulkan_core.h",
|
||||
"vulkan/vulkan.h",
|
||||
"vulkan/vk_platform.h",
|
||||
]
|
||||
}
|
197
interfaces/kits/ndk/vulkan/libvulkan.ndk.json
Normal file
197
interfaces/kits/ndk/vulkan/libvulkan.ndk.json
Normal file
@ -0,0 +1,197 @@
|
||||
[
|
||||
{ "name": "vkAcquireNextImage2KHR" },
|
||||
{ "name": "vkAcquireNextImageKHR" },
|
||||
{ "name": "vkAllocateCommandBuffers" },
|
||||
{ "name": "vkAllocateDescriptorSets" },
|
||||
{ "name": "vkAllocateMemory" },
|
||||
{ "name": "vkBeginCommandBuffer" },
|
||||
{ "name": "vkBindBufferMemory" },
|
||||
{ "name": "vkBindBufferMemory2" },
|
||||
{ "name": "vkBindImageMemory" },
|
||||
{ "name": "vkBindImageMemory2" },
|
||||
{ "name": "vkCmdBeginQuery" },
|
||||
{ "name": "vkCmdBeginRenderPass" },
|
||||
{ "name": "vkCmdBeginRenderPass2" },
|
||||
{ "name": "vkCmdBindDescriptorSets" },
|
||||
{ "name": "vkCmdBindIndexBuffer" },
|
||||
{ "name": "vkCmdBindPipeline" },
|
||||
{ "name": "vkCmdBindVertexBuffers" },
|
||||
{ "name": "vkCmdBlitImage" },
|
||||
{ "name": "vkCmdClearAttachments" },
|
||||
{ "name": "vkCmdClearColorImage" },
|
||||
{ "name": "vkCmdClearDepthStencilImage" },
|
||||
{ "name": "vkCmdCopyBuffer" },
|
||||
{ "name": "vkCmdCopyBufferToImage" },
|
||||
{ "name": "vkCmdCopyImage" },
|
||||
{ "name": "vkCmdCopyImageToBuffer" },
|
||||
{ "name": "vkCmdCopyQueryPoolResults" },
|
||||
{ "name": "vkCmdDispatch" },
|
||||
{ "name": "vkCmdDispatchBase" },
|
||||
{ "name": "vkCmdDispatchIndirect" },
|
||||
{ "name": "vkCmdDraw" },
|
||||
{ "name": "vkCmdDrawIndexed" },
|
||||
{ "name": "vkCmdDrawIndexedIndirect" },
|
||||
{ "name": "vkCmdDrawIndexedIndirectCount" },
|
||||
{ "name": "vkCmdDrawIndirect" },
|
||||
{ "name": "vkCmdDrawIndirectCount" },
|
||||
{ "name": "vkCmdEndQuery" },
|
||||
{ "name": "vkCmdEndRenderPass" },
|
||||
{ "name": "vkCmdEndRenderPass2" },
|
||||
{ "name": "vkCmdExecuteCommands" },
|
||||
{ "name": "vkCmdFillBuffer" },
|
||||
{ "name": "vkCmdNextSubpass" },
|
||||
{ "name": "vkCmdNextSubpass2" },
|
||||
{ "name": "vkCmdPipelineBarrier" },
|
||||
{ "name": "vkCmdPushConstants" },
|
||||
{ "name": "vkCmdResetEvent" },
|
||||
{ "name": "vkCmdResetQueryPool" },
|
||||
{ "name": "vkCmdResolveImage" },
|
||||
{ "name": "vkCmdSetBlendConstants" },
|
||||
{ "name": "vkCmdSetDepthBias" },
|
||||
{ "name": "vkCmdSetDepthBounds" },
|
||||
{ "name": "vkCmdSetDeviceMask" },
|
||||
{ "name": "vkCmdSetEvent" },
|
||||
{ "name": "vkCmdSetLineWidth" },
|
||||
{ "name": "vkCmdSetScissor" },
|
||||
{ "name": "vkCmdSetStencilCompareMask" },
|
||||
{ "name": "vkCmdSetStencilReference" },
|
||||
{ "name": "vkCmdSetStencilWriteMask" },
|
||||
{ "name": "vkCmdSetViewport" },
|
||||
{ "name": "vkCmdUpdateBuffer" },
|
||||
{ "name": "vkCmdWaitEvents" },
|
||||
{ "name": "vkCmdWriteTimestamp" },
|
||||
{ "name": "vkCreateBuffer" },
|
||||
{ "name": "vkCreateBufferView" },
|
||||
{ "name": "vkCreateCommandPool" },
|
||||
{ "name": "vkCreateComputePipelines" },
|
||||
{ "name": "vkCreateDescriptorPool" },
|
||||
{ "name": "vkCreateDescriptorSetLayout" },
|
||||
{ "name": "vkCreateDescriptorUpdateTemplate" },
|
||||
{ "name": "vkCreateDevice" },
|
||||
{ "name": "vkCreateEvent" },
|
||||
{ "name": "vkCreateFence" },
|
||||
{ "name": "vkCreateFramebuffer" },
|
||||
{ "name": "vkCreateGraphicsPipelines" },
|
||||
{ "name": "vkCreateImage" },
|
||||
{ "name": "vkCreateImageView" },
|
||||
{ "name": "vkCreateInstance" },
|
||||
{ "name": "vkCreateOHOSSurfaceOpenHarmony" },
|
||||
{ "name": "vkCreatePipelineCache" },
|
||||
{ "name": "vkCreatePipelineLayout" },
|
||||
{ "name": "vkCreateQueryPool" },
|
||||
{ "name": "vkCreateRenderPass" },
|
||||
{ "name": "vkCreateRenderPass2" },
|
||||
{ "name": "vkCreateSampler" },
|
||||
{ "name": "vkCreateSamplerYcbcrConversion" },
|
||||
{ "name": "vkCreateSemaphore" },
|
||||
{ "name": "vkCreateShaderModule" },
|
||||
{ "name": "vkCreateSwapchainKHR" },
|
||||
{ "name": "vkDestroyBuffer" },
|
||||
{ "name": "vkDestroyBufferView" },
|
||||
{ "name": "vkDestroyCommandPool" },
|
||||
{ "name": "vkDestroyDescriptorPool" },
|
||||
{ "name": "vkDestroyDescriptorSetLayout" },
|
||||
{ "name": "vkDestroyDescriptorUpdateTemplate" },
|
||||
{ "name": "vkDestroyDevice" },
|
||||
{ "name": "vkDestroyEvent" },
|
||||
{ "name": "vkDestroyFence" },
|
||||
{ "name": "vkDestroyFramebuffer" },
|
||||
{ "name": "vkDestroyImage" },
|
||||
{ "name": "vkDestroyImageView" },
|
||||
{ "name": "vkDestroyInstance" },
|
||||
{ "name": "vkDestroyPipeline" },
|
||||
{ "name": "vkDestroyPipelineCache" },
|
||||
{ "name": "vkDestroyPipelineLayout" },
|
||||
{ "name": "vkDestroyQueryPool" },
|
||||
{ "name": "vkDestroyRenderPass" },
|
||||
{ "name": "vkDestroySampler" },
|
||||
{ "name": "vkDestroySamplerYcbcrConversion" },
|
||||
{ "name": "vkDestroySemaphore" },
|
||||
{ "name": "vkDestroyShaderModule" },
|
||||
{ "name": "vkDestroySurfaceKHR" },
|
||||
{ "name": "vkDestroySwapchainKHR" },
|
||||
{ "name": "vkDeviceWaitIdle" },
|
||||
{ "name": "vkEndCommandBuffer" },
|
||||
{ "name": "vkEnumerateDeviceExtensionProperties" },
|
||||
{ "name": "vkEnumerateDeviceLayerProperties" },
|
||||
{ "name": "vkEnumerateInstanceExtensionProperties" },
|
||||
{ "name": "vkEnumerateInstanceLayerProperties" },
|
||||
{ "name": "vkEnumerateInstanceVersion" },
|
||||
{ "name": "vkEnumeratePhysicalDeviceGroups" },
|
||||
{ "name": "vkEnumeratePhysicalDevices" },
|
||||
{ "name": "vkFlushMappedMemoryRanges" },
|
||||
{ "name": "vkFreeCommandBuffers" },
|
||||
{ "name": "vkFreeDescriptorSets" },
|
||||
{ "name": "vkFreeMemory" },
|
||||
{ "name": "vkGetBufferDeviceAddress" },
|
||||
{ "name": "vkGetBufferMemoryRequirements" },
|
||||
{ "name": "vkGetBufferMemoryRequirements2" },
|
||||
{ "name": "vkGetBufferOpaqueCaptureAddress" },
|
||||
{ "name": "vkGetDescriptorSetLayoutSupport" },
|
||||
{ "name": "vkGetDeviceGroupPeerMemoryFeatures" },
|
||||
{ "name": "vkGetDeviceGroupPresentCapabilitiesKHR" },
|
||||
{ "name": "vkGetDeviceGroupSurfacePresentModesKHR" },
|
||||
{ "name": "vkGetDeviceMemoryCommitment" },
|
||||
{ "name": "vkGetDeviceMemoryOpaqueCaptureAddress" },
|
||||
{ "name": "vkGetDeviceProcAddr" },
|
||||
{ "name": "vkGetDeviceQueue" },
|
||||
{ "name": "vkGetDeviceQueue2" },
|
||||
{ "name": "vkGetEventStatus" },
|
||||
{ "name": "vkGetFenceStatus" },
|
||||
{ "name": "vkGetImageMemoryRequirements" },
|
||||
{ "name": "vkGetImageMemoryRequirements2" },
|
||||
{ "name": "vkGetImageSparseMemoryRequirements" },
|
||||
{ "name": "vkGetImageSparseMemoryRequirements2" },
|
||||
{ "name": "vkGetImageSubresourceLayout" },
|
||||
{ "name": "vkGetInstanceProcAddr" },
|
||||
{ "name": "vkGetMemoryOHOSNativeBufferOpenHarmony" },
|
||||
{ "name": "vkGetOHOSNativeBufferPropertiesOpenHarmony" },
|
||||
{ "name": "vkGetPhysicalDeviceExternalBufferProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceExternalFenceProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceExternalSemaphoreProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceFeatures" },
|
||||
{ "name": "vkGetPhysicalDeviceFeatures2" },
|
||||
{ "name": "vkGetPhysicalDeviceFormatProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceFormatProperties2" },
|
||||
{ "name": "vkGetPhysicalDeviceImageFormatProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceImageFormatProperties2" },
|
||||
{ "name": "vkGetPhysicalDeviceMemoryProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceMemoryProperties2" },
|
||||
{ "name": "vkGetPhysicalDevicePresentRectanglesKHR" },
|
||||
{ "name": "vkGetPhysicalDeviceProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceProperties2" },
|
||||
{ "name": "vkGetPhysicalDeviceQueueFamilyProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceQueueFamilyProperties2" },
|
||||
{ "name": "vkGetPhysicalDeviceSparseImageFormatProperties" },
|
||||
{ "name": "vkGetPhysicalDeviceSparseImageFormatProperties2" },
|
||||
{ "name": "vkGetPhysicalDeviceSurfaceCapabilitiesKHR" },
|
||||
{ "name": "vkGetPhysicalDeviceSurfaceFormatsKHR" },
|
||||
{ "name": "vkGetPhysicalDeviceSurfacePresentModesKHR" },
|
||||
{ "name": "vkGetPhysicalDeviceSurfaceSupportKHR" },
|
||||
{ "name": "vkGetPipelineCacheData" },
|
||||
{ "name": "vkGetQueryPoolResults" },
|
||||
{ "name": "vkGetRenderAreaGranularity" },
|
||||
{ "name": "vkGetSemaphoreCounterValue" },
|
||||
{ "name": "vkGetSwapchainImagesKHR" },
|
||||
{ "name": "vkInvalidateMappedMemoryRanges" },
|
||||
{ "name": "vkMapMemory" },
|
||||
{ "name": "vkMergePipelineCaches" },
|
||||
{ "name": "vkQueueBindSparse" },
|
||||
{ "name": "vkQueuePresentKHR" },
|
||||
{ "name": "vkQueueSubmit" },
|
||||
{ "name": "vkQueueWaitIdle" },
|
||||
{ "name": "vkResetCommandBuffer" },
|
||||
{ "name": "vkResetCommandPool" },
|
||||
{ "name": "vkResetDescriptorPool" },
|
||||
{ "name": "vkResetEvent" },
|
||||
{ "name": "vkResetFences" },
|
||||
{ "name": "vkResetQueryPool" },
|
||||
{ "name": "vkSetEvent" },
|
||||
{ "name": "vkSignalSemaphore" },
|
||||
{ "name": "vkTrimCommandPool" },
|
||||
{ "name": "vkUnmapMemory" },
|
||||
{ "name": "vkUpdateDescriptorSets" },
|
||||
{ "name": "vkUpdateDescriptorSetWithTemplate" },
|
||||
{ "name": "vkWaitForFences" },
|
||||
{ "name": "vkWaitSemaphores" }
|
||||
]
|
Loading…
Reference in New Issue
Block a user