Hacker News new | ask | show | jobs
by tambre 2341 days ago
> Not to mention that DirectX uses a totally different shader language than Vulkan, so you have to get in there and translate all that code over.

Vulkan doesn't really have a shader language unless you want to write SPIR-V assembly. Thus you'd use either GLSL or HLSL. Microsoft's own DirectX HLSL compiler[0] supports SPIR-V as a target in addition to DXIL.

[0]: https://github.com/microsoft/DirectXShaderCompiler

1 comments

Consider me corrected! I had done a quick google and saw GLSL listed in the top results and made an incorrect assumption.