[PATCH vkd3d] vkd3d-shader/hlsl: Unify texture and sampler allocation functions.