- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我想在 MS WIndows 10 中的 Android Studio 下测试 Android Vulkan 示例使用本手册 https://developer.android.com/ndk/guides/graphics/getting-started
因为错误我做不到
Device supports x86, but APK only supports armeabi-v7a
我已经尝试了此处建议的所有选项 What is the reason for the error "Device supports x86, but APK only supports armeabi-v7a"但它不起作用。
我有以下虚拟设备
即使我使用 armeabi-v7a 我也无法启动应用程序。而且速度极慢。
请帮助我使用明确的步骤在 Android 的 x86 图像下获得工作的 Vulkan 示例。谢谢!
最佳答案
这里有几个不同的问题:
首先,“设备支持 x86_64、x86,但 APK 仅支持 armeabi-v7a”的意思就是它听起来的意思:您有一个只支持 32 位和 64 位 x86 指令集的模拟器,但是APK 中的 native 代码仅为 32 位 ARM 编译。模拟 x86 设备要快得多,因为它们可以在虚拟机中运行(主机 CPU 实际上是直接执行模拟器指令,而不是必须在软件中一个一个地翻译它们)。配置您的项目以构建除 armeabi-v7a 之外的 x86 native 代码。
其次,当使用 ARM 模拟器时,或者如果您解决了第一个问题并在 x86 模拟器上运行,我认为 Android 模拟器还不能模拟支持 Vulkan 的 GPU。因此,您应该能够创建一个 Vulkan 实例,但是 vkEnumeratePhysicalDevices
应该返回零可用物理设备的计数。
您没有提供有关“无法启动应用程序”的任何详细信息:您在日志中看到了什么吗?你能创建一个实例吗?还是在您到达那一点之前还有其他一些完全不相关的问题?如果没有更多详细信息,没有人可以帮助您。
关于android - 在 MS Windows 下获取可用的 Android Vulkan 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52713073/
我想知道为什么可以在 VkPipelineLayoutCreateInfo 中指定多个描述符集布局,因为一个已经包含所有绑定(bind)。 最佳答案 描述符集布局描述了单个描述符集的布局。但是一个管道
我试图了解整个 L1/L2 冲洗是如何工作的。假设我有一个像这样的计算着色器 layout(std430, set = 0, binding = 2) buffer Particles{ Pa
Vulkan 旨在为用户提供精简和明确的内容,但队列是此规则的一个很大异常(exception):队列可能由驱动程序复用,并且使用一个系列的多个队列是否会提高性能并不总是很明显。 在驱动程序更新之一之
来自与 vkCmdPipelineBarrier 相关的规范: If no memory barriers are specified, then the first access scope inc
Vulkan 是否提供绘制基本图元的功能?点、线、矩形、实心矩形、圆角矩形、实心圆角矩形、圆、实心圆等。 ? 我认为没有任何 VkCmdDraw* 命令可以提供此功能。如果这是真的,需要做些什么来绘制
我正在尝试进行一个模拟,该模拟涉及渲染前的两个计算步骤。我目前有一个计算基础物理的计算管道,然后是一个图形管道。我希望能够添加第二个计算着色器以在第一个计算着色器之后运行。 首先,Vulkan 中是否
取消映射后可以刷新内存范围吗? 乍一看好像不对,因为函数叫vkFlushMappedMemoryRanges() ,但是 the documentation似乎暗示内存已准备好刷新,即使在未映射之后:
Vulkan 是否支持保存流水线阶段的顶点输出?我一直在寻找,但找不到任何示例或引用资料,也许其他人不知道? 最佳答案 Transform Feedback 在最初的 Vulkan 版本中没有被削减,
我有多个具有不同纹理/管道构造的网格,例如深度测试/混合函数以使用 vulkan 进行渲染。在性能方面呈现它们的最佳实践是什么。 一种选择是为 n 个网格创建 n 个具有 n 个线程的命令缓冲区,它们
我正在开发一个使用 Vulkan 的 C++ 应用程序。我如何获得支持的扩展集? 像std::set get_supported_extensions()这样的签名会很理想。 最佳答案 vkEnume
我正在开发一个使用 Vulkan 的 C++ 应用程序。我如何获得支持的扩展集? 像std::set get_supported_extensions()这样的签名会很理想。 最佳答案 vkEnume
正在处理 Vulkan 三角形渲染代码,我想将渲染图像保存到文件而不是渲染到窗口。 那么我应该什么时候读取帧缓冲区以及如何编写在文件中。我想需要将原始 RGBA 格式的像素转换为某种已知的 BMP 或
Vulkan 规范(1.0.12)在第 2.4 节介绍了 VkDeviceSize: With few exceptions, Vulkan uses the standard C types for
即使实例在 Vulkan 中创建失败,我是否应该销毁它? 哪个是正确的: 1: VkResult Result = vkCreateInstance( info, NULL, instance );
我开始学习 Vulkan,想知道 VkCreate[...] 函数是否将结构中指向的资源复制到他自己的缓冲区中。 为了澄清我的问题,在这段代码中我加载了 斯皮尔 将着色器放入我自己的 mkShader
Khronos 刚刚发布了他们的新内存模型扩展,但还没有进行非正式讨论、示例实现等,所以我对基本细节感到困惑。 https://www.khronos.org/blog/vulkan-has-just
SubpassInput 由片段着色器隐式寻址。我想用我自己的纹理坐标来处理输入。类似于 texture(sampler, texCoord) 最佳答案 这是不可能的。如果您想在着色器内对图像进行采样
有没有办法从实例中获取对象类型枚举器(vk::ObjectType dor vulkan.hpp 和 VkObjectType for vulkan)? 例如假设我们有 3 个对象: vk::Devi
我的着色器索引到采样器和图像,但是当我从图像中采样时(如果我在着色器中采样,我只会得到错误)我得到一个错误: Descriptor in binding #0 index 0 requires FLO
我想到了以下场景,但我不知道它是否有效: 在程序的开头创建一个VkCommandPool,并从中分配一个VkCommandBuffer。 在渲染循环中,将命令记录到 VkCommandBuffer(隐
我是一名优秀的程序员,十分优秀!