https://bugs.winehq.org/show_bug.cgi?id=23724
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Peter Schueller from comment #5)
Created attachment 43006 [details] trace of shader compilation problem
Finally I found the reason for the problem using TRACE (attached)
The shader code contains as "semantic" the keyword "register" which causes it to fail parsing, the parser dlls/d3dcompiler_43/hlsl.y expects an identifier there.
Matteo, can you take a look please? I added you to the bug long ago but forgot to actively ask you to take a look =)