小编Joh*_*ohn的帖子

访问 Metal 文件中的 swift 结构或类

在 swift 文件中,声明了顶点数据:

struct Vertex {
    let position: vector_float4
    let color: vector_float4
}
Run Code Online (Sandbox Code Playgroud)

我想访问金属文件中的这个结构,可以吗?如果是的话,如何制作?

我已经知道如何用 Objective-C 实现它,只想使用 swift 。

ios swift metal

3
推荐指数
1
解决办法
1244
查看次数

标签 统计

ios ×1

metal ×1

swift ×1