[PATCH vkd3d 6/6] vkd3d-shader: Factor out hlsl_new_loop().