https://bugs.winehq.org/show_bug.cgi?id=54054
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Nikolay Sivov from comment #8)
The immediate issue was a type mismatch between ternary operator values. I submitted https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/201 for this.
This is now fixed with dc41444941a633bef522dbcf738d99c8536c6670. Please retest with current vkd3d git.