https://bugs.winehq.org/show_bug.cgi?id=54574
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Related fix got it for fwidth(), https://source.winehq.org/git/vkd3d.git/commit/b5c0c9c22f3c646cfc3143b5d8e62....
Next failure appears to be:
E5017: Aborting due to not yet implemented feature: Dereference with non-constant offset of type HLSL_IR_EXPR.
I believe some work is being done to get this working.