vkd3d-shader: Address ubsan runtime errors.
When passing -fsanitize=undefined
to the compiler and linker (through the CPPFLAGS=
and LDFLAGS=
parameters for the config script) and thus, enabling ubsan, it reports some errors when running the tests.
These patches address these errors, but since the errors seem innocuous, it might be argued if solving them is worth the additional code here proposed.