[PATCH vkd3d 3/7] vkd3d-shader/hlsl: Introduce add_cast() helper.