Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.y:
/* +1 for the mipmap level */ if (!(load_params.coords = add_implicit_conversion(ctx, instrs, params->args[0],
hlsl_get_vector_type(ctx, HLSL_TYPE_INT, sampler_dim + 1), loc)))
hlsl_get_vector_type(ctx, HLSL_TYPE_INT, sampler_dim + !multisampled), loc)))
The comment is even more hermetic now. I'd change it to something like "Non-multisampled textures need the mipmap level".