3 ms·
What do you think those game engines use to do the translation? They certainly aren't writing their own compilers and languages, they've got more important thin
by MindSpunk 2y ago
What do you think those game engines use to do the translation? They certainly aren't writing their own compilers and languages, they've got more important things to burn engineer time on. Anyone writing cross platform shaders can consider Slang, even if only for the output targets.
The intended user _is_ game engines, and it's a damn good contender in its space. The average pipeline for shader translation right now is HLSL being fed into DXC to generate DXIL for D3D and SPIR-V for Vulkan. That SPIR-V will also get fed into another transpiler (SPIRV-Cross) to spit out shaders for other platforms like Metal. This pipeline is quite fragile, especially in the SPIRV-Cross step, and DXC is on life support with Microsoft integrating a DXIL target into Clang so they don't have to develop a pseudo-cpp frontend anymore.