Giovanni Mascellani : vkd3d-shader/hlsl: Introduce add_cast() helper.