Zebediah Figura : vkd3d-shader/hlsl: Correctly calculate offsets for array elements.