vkd3d: Allow to configure the behavior on assertion failures.
I converted a couple of files to the new implementation so that we can have some discussion about it; the idea, if this gets accepted, is to start using the new implementation everywhere.