vkd3d-shader/hlsl: Lower separated samplers for SM1.
Old patch, necromanced, split, and Theseus ship'ed back from oblivion.
Also some fixes for sampler array allocation for SM1.
Note that tests in sample-bias.shader_test
start compiling but not giving good results yet. This is because we are already misreading SM1 sample lod instructions regardless of whether they come from tex2Dbias() (which we are not testing yet) or properly lowering .SampleBias() such as here.
I have patches to fix that in my lower_separated_samples2 branch, to send after these.
Edited by Francisco Casas