Rebased on master. I noticed a little bug in https://gitlab.winehq.org/giomasce/vkd3d/-/commit/1f536238a89dc6bccb411c2db3..., which is fixed in https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/607/diffs?commit_id=7b.... Other then that I split a couple of commits for better readability and made some minor style changes.