问题标签 [metal]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
7474 浏览

ios - 编译和运行金属示例

自从我使用 XCode 已经有一段时间了,但是自从 Apple 认可 XCode 6 和新的 Metal API 之后,我不得不去检查一下。

他们已经发布了示例,例如他们的 Basic3D 示例的转换版本。不过,我在编译和运行它们时遇到了问题。我必须添加 Quatz 和 Metal 框架的路径以进行编译和链接到工作 - 认为应该使用内置库开箱即用?

金属着色器编译步骤也失败,找不到金属编译器。XCode 中的路径设置在哪里?

如果我忽略着色器编译步骤,我会收到一个错误,即应用程序将不会在任何模拟器上运行。基于金属的 3D 应用程序能否仅在实际硬件上运行而不在模拟器模式下运行?

0 投票
3 回答
7844 浏览

xcode - 如何在 Swift 中导入 Metal?

每当我尝试import Metal在我的 Swift 文件或游乐场中使用时,Xcode 都会说“没有这样的模块 'Metal'”。这是 Beta 1 的错误吗?

0 投票
4 回答
4454 浏览

ios - Metal 可以在非 A7 设备上运行吗?(例如 iPhone 5 或 iPad Mini(不是视网膜))

Metal 可以在非 A7 设备上运行吗?(例如 iPhone 5 或 iPad Mini(不是视网膜))。如果没有,是否有任何方法可以仅为支持 Metal 的设备创建应用程序?

0 投票
5 回答
11024 浏览

ios - 未找到 QuartzCore/CAMetalLayer.h 文件

我尝试从适用于 iOS 的新 Metal API 中查看新样本。当我下载代码并在 XCode 6 Beta 中打开它时,我收到以下错误消息:

我需要添加一些其他文件还是我错过了其他东西?Metal API 应该在 OSX 10.9.3 中可用。

是否需要升级到 Yosemite 10.10 Beta 才能运行这些示例?

0 投票
2 回答
1304 浏览

ios - Metal:“创建默认系统设备失败!” 在 iPhone5/iOS8 上

当我在 iPhone5/iOS8 上运行 Metal 示例项目时,它们在这里失败:

MTLCreateSystemDefaultDevice()返回id 0x0而不是有效的id <MTLDevice>.

还有其他人有这个问题吗?

0 投票
1 回答
167 浏览

swift - MTLRenderPipelineAttachmentDescriptor 快速链接器错误

我有链接器错误:

架构 arm64 的未定义符号:_OBJC_CLASS_$_MTLRenderPipelineAttachmentDescriptorArray

使用以下代码

有什么解决方案吗?

0 投票
2 回答
1399 浏览

ios - Does OpenGL ES 2.0 have a steeper learning curve than Metal?

I'm very interested in 3D graphics and heard many developers raving about Metal.

Can someone who has worked with Metal and OpenGL ES 2.0 comment on how the learning curve compares to OpenGL ES 2.0?

As a beginner who aims to stay loyal to iOS, is Metal easier to learn and master than OpenGL ES 2.0 or is it harder because it is more advanced?

I hope this question will be useful to many as I am trying to figure out where to start.

0 投票
2 回答
796 浏览

ios - device.newDefaultLibrary() 返回 nil

在我安装 XCode 6 GM 后,由它编译的应用程序开始在 Metal Framework device.newDefaultLibrary() 调用中返回 nil。有什么问题?

0 投票
3 回答
2978 浏览

ios - iOS Metal 无法执行“金属”(没有这样的文件或目录)

如何在 Xcode 6 中编译 iOS «Metal» 游戏并将目标设置为 iOS 模拟器?

错误:无法执行“金属”(没有这样的文件或目录)命令金属失败,退出代码为 71

0 投票
1 回答
881 浏览

opengl-es - 如何在 iPhone 6 Plus 上完美绘制像素?

鉴于 iPhone 6 Plus 正在从 1242x2208 缩小到 1080x1920,而 UIKit 正在这样做,是否有其他方法可以在不缩小尺寸的情况下允许绝对(完美像素)绘制到屏幕上?

我想,但不确定,OpenGL 和 Metal 可以在 iPhone 6 Plus 上绘制像素完美的图形,但不知道如何。我对 Core Animation 的坐标系的含义有点困惑,正如我在其他地方读到的那样,它可能能够进行像素完美的绘制,而不管 Point 系统如何。