I know that these forums are much less active than they should be, but I am still posting this in the hope that some people (and hopefully someone from Apple) see it. I am also sure that I am not the first one to think of it, but I would like to raise the awareness on this topic Now that Khronos has released SPIR-V specification, we have a cross-platform language-agnostic high-level bytecode for specifying shaders. I believe that it would be a big benefit for Metal to have a SPIR-V interface. I am sure that the Metal IR already has a high degree of resemblance to SPIR-V and the translation between two levels can be done in a fairly simple way (or ideally, Metal could adopt SPIR-V itself). Benefits are as follows:1. It would be much easier to port between Metal and other APIs (like OpenGL or Vulkan), simplifying cross-plaftorm development2. Apple developers would get access to a vast shader library and third-party tools3. A stable IR promotes better quality software
9
0
4.7k