Lines Matching refs:vec2
11 float2 vec2, vec2_2; in test() local
17 vec2.z; // expected-error {{vector component access exceeds type 'float2'}} in test()
18 vec2.xyzw; // expected-error {{vector component access exceeds type 'float2'}} in test()
22 vec2 = vec4.s01; // legal, shorten in test()
23 vec2 = vec4.S01; // legal, shorten in test()
26 f = vec2.x; // legal, shorten in test()
32 vec2.x = f; in test()
33 …vec2.xx = vec2_2.xy; // expected-error {{vector is not assignable (contains duplicate components)}} in test()
34 vec2.yx = vec2_2.xy; in test()
43 vec2.a; // expected-error {{vector component access exceeds type 'float2'}} in test()
44 vec2.rgba; // expected-error {{vector component access exceeds type 'float2'}} in test()
52 f = vec2.r; // legal, shorten in test()
59 vec2.x = f; in test()
60 …vec2.rr = vec2_2.rg; // expected-error {{vector is not assignable (contains duplicate components)}} in test()
61 vec2.gr = vec2_2.rg; in test()
62 vec2.gr.g = vec2_2.r; in test()