https://bugs.winehq.org/show_bug.cgi?id=51713
--- Comment #10 from Shmerl shtetldik@gmail.com --- (In reply to Nikolay Sivov from comment #9)
Not sure which opensource compilers you mean.
Well, there are a few as far as I know that can handle HLSL. Not sure how much of any them are useful for this case, but at the very least they include parsing of HLSL itself as one of their steps:
* glslang: https://github.com/KhronosGroup/glslang * DirectXShaderCompiler: https://github.com/Microsoft/DirectXShaderCompiler