Home
last modified time | relevance | path

Searched refs:half2 (Results 1 – 25 of 139) sorted by relevance

123456

/third_party/skia/tests/sksl/shared/
DVectorToMatrixCast.metal28 return half2x2(half2(x0.xy), half2(x0.zw));
44 …ok = ok && half2x2_from_half4(_uniforms.testInputs) == half2x2(half2(-1.25h, 0.0h), half2(0.75h, 2…
46 …ok = ok && half2x2_from_half4(_uniforms.colorGreen) == half2x2(half2(0.0h, 1.0h), half2(0.0h, 1.0h…
47 …ok = ok && half2x2_from_half4(_uniforms.colorGreen) == half2x2(half2(0.0h, 1.0h), half2(0.0h, 1.0h…
48 …alf2x2_from_half4(half4(int4(_uniforms.colorGreen))) == half2x2(half2(0.0h, 1.0h), half2(0.0h, 1.0…
49 …ok = ok && half2x2_from_half4(_uniforms.colorGreen) == half2x2(half2(0.0h, 1.0h), half2(0.0h, 1.0h…
50 …ok = ok && half2x2_from_half4(_uniforms.colorGreen) == half2x2(half2(0.0h, 1.0h), half2(0.0h, 1.0h…
51 …lf2x2_from_half4(half4(bool4(_uniforms.colorGreen))) == half2x2(half2(0.0h, 1.0h), half2(0.0h, 1.0…
DOutParamsTricky.metal13 half2 tricky_h2hhh2h(half x, half y, thread half2& color, half z);
14 half2 _skOutParamHelper0_tricky_h2hhh2h(half _var0, half _var1, thread half4& color, half _var3) {
15 half2 _var2 = color.xz;
16 half2 _skResult = tricky_h2hhh2h(_var0, _var1, _var2, _var3);
26 half2 tricky_h2hhh2h(half x, half y, thread half2& color, half z) {
28 return half2(x + y, z);
31 half2 t = _skOutParamHelper0_tricky_h2hhh2h(1.0h, 2.0h, color, 5.0h);
DMatrices.metal89 half2x2 m1 = half2x2(half2(1.0h, 2.0h), half2(3.0h, 4.0h));
90 ok = ok && m1 == half2x2(half2(1.0h, 2.0h), half2(3.0h, 4.0h));
92 ok = ok && m3 == half2x2(half2(1.0h, 2.0h), half2(3.0h, 4.0h));
94 ok = ok && m4 == half2x2(half2(6.0h, 0.0h), half2(0.0h, 6.0h));
96 ok = ok && m3 == half2x2(half2(6.0h, 12.0h), half2(18.0h, 24.0h));
98 ok = ok && m5 == half2x2(half2(4.0h, 0.0h), half2(0.0h, 4.0h));
100 ok = ok && m1 == half2x2(half2(5.0h, 2.0h), half2(3.0h, 8.0h));
101 half2x2 m7 = half2x2(half2(5.0h, 6.0h), half2(7.0h, 8.0h));
102 ok = ok && m7 == half2x2(half2(5.0h, 6.0h), half2(7.0h, 8.0h));
DArrayComparison.metal66 …3> m1 = array<half2x2, 3>{half2x2(1.0h), half2x2(2.0h), half2x2(half2(3.0h, 4.0h), half2(5.0h, 6.0…
67 …3> m2 = array<half2x2, 3>{half2x2(1.0h), half2x2(2.0h), half2x2(half2(3.0h, 4.0h), half2(5.0h, 6.0…
68 …array<half2x2, 3> m3 = array<half2x2, 3>{half2x2(1.0h), half2x2(half2(2.0h, 3.0h), half2(4.0h, 5.0…
/third_party/skia/tests/sksl/metal/
DSwizzleHelper.metal10 half2 glob;
12 …3(thread Outputs& _out, thread Globals& _globals, half a, thread half2& b, thread half2& c, thread…
13 …puts& _out, thread Globals& _globals, half _var0, thread half3& b, thread half2& glob, thread half…
14 half2 _var1;
15 half2 _var2 = glob.yx;
23 …3(thread Outputs& _out, thread Globals& _globals, half a, thread half2& b, thread half2& c, thread…
31 Globals _globals{half2(1.0h)};
35 half2 a = half2(1.0h);
DOutParams.metal15 void out_half2_vh2(thread half2& v);
16 void _skOutParamHelper1_out_half2_vh2(thread half2& h2) {
17 half2 _var0;
39 void out_half2_vh2(thread half2& v);
41 half2 _var0;
68 void _skOutParamHelper9_out_pair_vhh(thread half2& h2, thread half2&) {
76 void _skOutParamHelper10_out_pair_vhh(thread half2& h2, thread half2&) {
84 void _skOutParamHelper11_out_pair_vhh(thread half2& h2, thread half3& h3) {
121 void out_half2_vh2(thread half2& v);
123 half2 _var0;
[all …]
/third_party/skia/resources/sksl/folding/
DVectorVectorFolding.sksl8 ok = ok && (half4(half2(1), half2(2, 3)) + half4(5, 6, 7, 8)) == half4(6, 7, 9, 11);
13 ok = ok && (half2(1) == half2(1, 1));
14 ok = ok && (half2(1, 1) == half2(1, 1));
15 ok = ok && !(half2(1) == half2(1, 0));
16 ok = ok && (half4(1) == half4(half2(1), half2(1)));
17 ok = ok && (half4(half3(1), 1) == half4(half2(1), half2(1)));
18 ok = ok && !(half4(half3(1), 1) == half4(half2(1), 1, 0));
19 ok = ok && (half2(1) != half2(1, 0));
20 ok = ok && !(half4(1) != half4(half2(1), half2(1)));
DVectorScalarFolding.sksl8 half4 x = half4(half2(1), half2(2, 3)) + 5;
12 x = half4(half2(8), half2(9)) + 1;
16 x.xy = half2(12) / 4;
24 x = 5 + half4(half2(1), half2(2, 3));
28 x = 1 + half4(half2(8), half2(9));
32 x.xy = 4 / half2(0.5);
DSwizzleFolding.sksl5 const half2 point = half2(40, 60);
21 const half2 pointOffset = point.yx + colorWhite.xz;
22 ok = ok && (pointOffset == half2(61, 41));
/third_party/skia/tests/sksl/intrinsics/
DMatrixCompMultES3.metal31 return half4x2(half2(x0.xy), half2(x0.zw), half2(x1.xy), half2(x1.zw));
62 …half4x2 h42 = matrixCompMult(half4x2(half2(1.0h, 2.0h), half2(3.0h, 4.0h), half2(5.0h, 6.0h), half…
64 …4(0.0h, 9.0h, 0.0h, 9.0h)) && h42 == half4x2(half2(1.0h, 0.0h), half2(0.0h, 4.0h), half2(0.0h, 6.0…
DUnpack.metal15 _out.sk_FragColor.xy = half2(float2(as_type<half2>(_uniforms.a)));
16 _out.sk_FragColor.xy = half2(unpack_unorm2x16_to_float(_uniforms.a));
17 _out.sk_FragColor.xy = half2(unpack_snorm2x16_to_float(_uniforms.a));
DCrossNoInline.metal5 half2 ah;
6 half2 bh;
15 half cross_hh2h2(half2 a, half2 b) {
DSmoothstep.metal20half2(0.0h, 0.0h) == expectedA.xy)) && all(half3(0.0h, 0.0h, 0.84375h) == expectedA.xyz)) && all(h…
DMod.metal20 half2 _skTemp2;
28 half2 _skTemp10;
29 half2 _skTemp11;
36half2(0.75h, 0.0h) == expectedA.xy)) && all(half3(0.75h, 0.0h, 0.75h) == expectedA.xyz)) && all(ha…
/third_party/skia/resources/sksl/errors/
DVectorIndexOutOfRange.sksl17 void half2_neg1() { half2 h; half v = h[-1]; }
18 void half2_0() { half2 h; half v = h[0]; }
19 void half2_1() { half2 h; half v = h[1]; }
20 void half2_2() { half2 h; half v = h[2]; }
21 void half2_3() { half2 h; half v = h[3]; }
22 void half2_4() { half2 h; half v = h[4]; }
23 void half2_huge() { half2 h; half v = h[1000000000]; }
25 void half2_neg1_constidx() { half2 h; const int INDEX = -1; half v = h[INDEX]; }
26 void half2_0_constidx() { half2 h; const int INDEX = 0; half v = h[INDEX]; }
27 void half2_1_constidx() { half2 h; const int INDEX = 1; half v = h[INDEX]; }
[all …]
DMatrixIndexOutOfRange.sksl17 void half4x2_neg1() { half4x2 m; half2 v = m[-1]; }
18 void half4x2_0() { half4x2 m; half2 v = m[0]; }
19 void half4x2_1() { half4x2 m; half2 v = m[1]; }
20 void half4x2_2() { half4x2 m; half2 v = m[2]; }
21 void half4x2_3() { half4x2 m; half2 v = m[3]; }
22 void half4x2_4() { half4x2 m; half2 v = m[4]; }
23 void half4x2_huge() { half4x2 m; half2 v = m[1000000000]; }
/third_party/skia/resources/sksl/inliner/
DInlinerAvoidsVariableNameOverlap.sksl1 inline half2 InlineB(half2 tmp)
3 half2 reusedName = tmp - 1;
7 inline half2 InlineA()
9 half2 reusedName = half2(1, 2);
/third_party/skia/tests/sksl/errors/
DVectorIndexOutOfRange.glsl10 error: 17: index -1 out of range for 'half2'
11 error: 20: index 2 out of range for 'half2'
12 error: 21: index 3 out of range for 'half2'
13 error: 22: index 4 out of range for 'half2'
14 error: 23: index 1000000000 out of range for 'half2'
15 error: 25: index -1 out of range for 'half2'
16 error: 28: index 2 out of range for 'half2'
17 error: 29: index 1000000000 out of range for 'half2'
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/frag/
Dfp16.desktop.invalid.frag17 half2 v2 [[user(locn1)]];
44 half2x2 test_mat2(thread const half2& a, thread const half2& b, thread const half2& c, thread const…
46 return half2x2(half2(a), half2(b)) * half2x2(half2(c), half2(d));
141 res = half4(as_type<half2>(pack0), as_type<half2>(pack1));
169 half2 param = in.v2;
170 half2 param_1 = in.v2;
171 half2 param_2 = in.v3.xy;
172 half2 param_3 = in.v3.xy;
/third_party/skia/resources/sksl/metal/
DSwizzleHelper.sksl3 half2 glob = half2(1);
5 half4 fn(half a, out half2 b, inout half2 c, inout half3 d) {
14 half2 a = half2(1);
/third_party/skia/tests/sksl/runtime/
DConstPreservation.stage3 half2 compute_ba_0(const half2 rg);
8 half2 compute_ba_0(const half2 rg)
15 return half4(half4(opt_barrier_0(r_0), 1.0, compute_ba_0(half2(0.0, opt_barrier_0(g)))));
DPrecisionQualifiers.stage20 half2 mp2 = half2(2.0);
50 half2 mv[2];
51 mv[0] = half2(0.0, 1.0);
52 mv[1] = half2(2.0, 3.0);
/third_party/skia/resources/sksl/intrinsics/
DFwidth.sksl10 sign(fwidth(coords.xx)) == half2(1, 1) &&
11 sign(fwidth(coords.x1)) == half2(1, 0) &&
12 sign(fwidth(coords.yy)) == half2(1, 1) &&
13 sign(fwidth(coords.0y)) == half2(0, 1) &&
14 sign(fwidth(coords.xy)) == half2(1, 1)) ? colorGreen : colorRed;
DUnpack.sksl3 sk_FragColor.xy = half2(unpackHalf2x16(a));
4 sk_FragColor.xy = half2(unpackUnorm2x16(a));
5 sk_FragColor.xy = half2(unpackSnorm2x16(a));
/third_party/skia/resources/sksl/shared/
DOutParamsTricky.sksl5 half2 tricky(half x, half y, inout half2 color, half z) {
7 return half2(x + y, z);
11 half2 t = tricky(1, 2, color.rb, 5);

123456