使用 Vulkan 渲染 AR 应用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
平台专用指南
使用 ARCore 的应用可以使用 Vulkan 图形 API 将摄像头纹理渲染到屏幕上。使用 Vulkan 渲染应用可降低 CPU 开销。
启用 Vulkan 渲染后,ARCore 会更新 Android 硬件缓冲区。此硬件缓冲区可绑定到 Vulkan VkImage
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eARCore apps can utilize the Vulkan graphics API for rendering, leading to decreased CPU load.\u003c/p\u003e\n"],["\u003cp\u003eWhen using Vulkan, ARCore updates a hardware buffer that can be linked to a Vulkan VkImage.\u003c/p\u003e\n"],["\u003cp\u003ePlatform-specific guides are available for Android using Kotlin/Java and Android NDK using C to implement Vulkan rendering in AR apps.\u003c/p\u003e\n"]]],[],null,["# Render your AR app using Vulkan\n\n**Platform-specific guides** \n\n### Android (Kotlin/Java)\n\n- [Render your AR app using Vulkan on Android SDK (Kotlin/Java)](/ar/develop/java/vulkan)\n\n### Android NDK (C)\n\n- [Render your AR app using Vulkan on Android NDK (C)](/ar/develop/c/vulkan)\n\n### Unity (AR Foundation)\n\n- [Developer guide](/ar/develop/unity-arf/vulkan/developer-guide)\n\nApps using ARCore can render the camera texture onto the screen using the\n[Vulkan graphics API](https://developer.android.com/ndk/guides/graphics).\nRendering your app using Vulkan lets you reduce CPU overhead.\n\nWhen Vulkan rendering is enabled, ARCore updates an Android [hardware buffer](https://developer.android.com/ndk/reference/group/a-hardware-buffer). This hardware buffer can be bound to a Vulkan [`VkImage`](https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkImage.html)."]]