News for hackers. Stuff that matters.
Re:Adding HLSL and DirectX Support to Clang and LLVM by raphlinus on Friday March 11, 2022 @10:11PM (#30648664)
Exactly that. You compile down to SPIR-V, then use spirv-cross to generate Metal Shading Language or GLSL. It's clunky and there are some rough edges - these conversions aren't 100% lossless - but it does work. If you play a game on a mac, there's a very good chance this is the compilation strategy used.

There are no comments on this comment yet.