我在代码中添加了多个金属着色器,现在得到:
Error: symbol '<shader name>' is multiply defined
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin/metallib failed with exit code 1
我没有.metal
在任何地方包含文件(XCode 负责编译本身)并且我无法添加inline
或添加static
到函数中,所以出了什么问题?