ios - Xcode:如何为测试目标启用 Metal API 验证?

标签 ios xcode metal

通过编辑方案 -> 运行 -> 选项 -> Metal API 验证运行我的应用程序时很容易启用 Metal API 验证:Xcode logging: "Metal API Validation Enabled"

但是测试呢?在 Edit Scheme -> Test 中没有这样的设置,并且当我运行测试时验证似乎关闭。

最佳答案

在 Edit Scheme -> Test -> Arguments 中将 METAL_DEVICE_WRAPPER_TYPE 环境变量设置为 1。

关于ios - Xcode:如何为测试目标启用 Metal API 验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41755888/

相关文章:

ios - 在 Interface Builder 的 View Controller 中隐藏选项卡栏

ios - iOS Metal。为什么简单地更改colorPixelFormat会使图像更明亮?

metal - 三重缓冲示例中的信号量是否会阻塞主线程?

ios - 事件(带有标识符 :) fails after application restart

android - 是否有任何用于移动设备(ios android)的语音识别库

ios - 使用嵌入式 HTTP 代理缓存流视频?

xcode - 从 xcode 4.3.2 升级到 4.5.2 时出现错误

iphone - 在 AppDelegate 中使用自定义委托(delegate)

objective-c - 谷歌搜索引擎 - cocoa

iOS Metal 计算管道比搜索任务的 CPU 实现慢