简体   繁体   English

MTLCreateSystemDefaultDevice在iOS 13模拟器上返回nil

[英]MTLCreateSystemDefaultDevice returning nil on iOS 13 Simulator

I am using Xcode 11 GM Seed (11A419c). 我正在使用Xcode 11 GM Seed(11A419c)。 When I run Metal code on iOS 13 simulator and try to access metal device created using MTLCreateSystemDefaultDevice(), it returns nil. 当我在iOS 13模拟器上运行Metal代码并尝试访问使用MTLCreateSystemDefaultDevice()创建的Metal设备时,它返回nil。 How is Metal supposed to run on simulator without this device? 如果没有此设备,Metal如何在模拟器上运行? Is there any setting in XCode to fix it? XCode中是否有任何设置可以解决? I have Macbook Pro retina 2012 model running Mac OS 10.14.6 if that matters. 如果有问题,我有运行Mac OS 10.14.6的Macbook Pro retina 2012模型。

Metal is available in iOS 13 and tvOS 13 simulators only when running on macOS Catalina (10.15) or later. 只有在macOS Catalina(10.15)或更高版本上运行时,Metal才可在iOS 13和tvOS 13模拟器中使用。 This is documented in the Xcode 11 Release Notes . Xcode 11发行说明中对此进行了记录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM