zlacker

[return to "Building the DirectX shader compiler better than Microsoft?"]
1. sylwar+sf[view] [source] 2024-02-10 12:41:06
>>emidoo+(OP)
I guess the less troublesome would be something like HLSL/GLSL->SPIR-V<->DXIL, or shaders could be authored directly in SPIR-V.

In vkd3d (from wine), I think you have a DXIL->SPIR-V translater (much more robust than any high level shading language converter since it is a much more simple intermediate language).

That said, apart from this abomination of llvm, is there a HLSL->DXIL compiler written in plain and simple C99 (namely which require NOT gcc or clang to compile)?

◧◩
2. slimsa+Rh[view] [source] 2024-02-10 13:10:21
>>sylwar+sf
Yes, SPIRV->DXIL does seem tempting and worth exploring. Very recently I learned Mesa has such a tool, spirv2dxil, though unsure how robust/featureful it is compared to HLSL->DXC->DXIL.
[go to top]