vkd3d-shader/hlsl: Lower non-constant array loads for SM1
This is achieved by means of creating a variable storing zero, loading every array element, comparing if the non-constant index matches the index of that element at runtime, and in that case store the corresponding element in the variable.
This seems to be the same strategy that the native compiler uses, as expensive as it sounds.