Vectors cannot be used as array indexes, however, single-component swizzles (such as vec.x) can be used.
This suggests that single-component swizzles should actually be scalars and not vectors of dimx = 1.
It is worth noting that the use of swizzles on scalars should still be allowed.
-- v4: vkd3d-shader/hlsl: Make single-component swizzles retrieve a scalar. tests: Add tests for assignments to self with swizzles. tests: Test swizzles on scalar values. tests: Test using single-component swizzles as indexes. tests: Combine all the swizzle tests in a single file.