在 swift 文件中,声明了顶点数据:
struct Vertex { let position: vector_float4 let color: vector_float4 }
我想访问金属文件中的这个结构,可以吗?如果是的话,如何制作?
我已经知道如何用 Objective-C 实现它,只想使用 swift 。
ios swift metal
ios ×1
metal ×1
swift ×1