[PATCH vkd3d 3/6] vkd3d-shader/hlsl: Add a helper to create constants of arbitrary type.