26 Jan
2023
26 Jan
'23
10:11 p.m.
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. https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/70