Lines Matching refs:float2
12 using float2 = skvx::Vec<2,float>;
38 static_assert(sizeof(float2) == 8, "");
96 REPORTER_ASSERT(r, all( sqrt(float2{2,3}) < float2{2,2}));
113 REPORTER_ASSERT(r, all(skvx::shuffle<2,1> (float4{1,2,3,4}) == float2{3,2}));
174 float2 f = float2(1,2);
175 REPORTER_ASSERT(r, all(f == float2{1,2}));
179 REPORTER_ASSERT(r, all(f == float2{1,9}));
181 REPORTER_ASSERT(r, all(f == float2(0,9)));
186 REPORTER_ASSERT(r, all(f == float2(8,6)));
188 REPORTER_ASSERT(r, all(f == float2(6,8)));
207 REPORTER_ASSERT(r, all(f == float4(1,2,float2(3,4))));
208 REPORTER_ASSERT(r, all(f == float4(float2(1,2),3,4)));
209 REPORTER_ASSERT(r, all(f == float4(float2(1,2),float2(3,4))));
210 f.xy() = float2(9,8);
228 REPORTER_ASSERT(r, skvx::all(f.xy() == float2(0,1)));
229 REPORTER_ASSERT(r, skvx::all(f.zw() == float2{2,3}));
244 float4(4,5,6,7).xy()) == float2(4,2)));
247 float4(4,5,6,7).xy()) == float2(4,2)));
256 float2(1).xyxy(),
257 float2(2).xyxy()) == float4(1,1,2,2)));