Compile each .metal file into a separate .metallib

后端 未结 1 1400
后悔当初
后悔当初 2021-01-06 10:43

I would like to override the default Xcode Metal compiler behaviour of compiling all project .metal files into a single default.metallib and instea

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 11:06

    I achieved this in two steps:

    1) Add a custom build rule for .metal files that compiles them individually into .metallibs:

    2) Add a custom build step for copying those .metallibs into your target:

    0 讨论(0)
提交回复
热议问题