Home
last modified time | relevance | path

Searched refs:constVal (Results 1 – 25 of 62) sorted by relevance

123

/external/skia/resources/sksl/intrinsics/
DSmoothstep.sksl5 const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
12 return (smoothstep(0, 1, constVal.x) == expectedA.x &&
13 smoothstep(0, 1, constVal.xy) == expectedA.xy &&
14 smoothstep(0, 1, constVal.xyz) == expectedA.xyz &&
15 smoothstep(0, 1, constVal.xyzw) == expectedA.xyzw &&
16 smoothstep(0, 1, constVal.x) == expectedA.x &&
17 smoothstep(0, 1, constVal.xy) == expectedA.xy &&
18 smoothstep(0, 1, constVal.xyz) == expectedA.xyz &&
19 smoothstep(0, 1, constVal.xyzw) == expectedA.xyzw &&
20 smoothstep(colorRed.g, colorGreen.g, constVal.x) == expectedA.x &&
[all …]
DMinFloat.sksl7 const float4 constVal = half4(-1.25, 0, 0.75, 2.25);
13 min(constVal.x, 0.5) == expectedA.x &&
14 min(constVal.xy, 0.5) == expectedA.xy &&
15 min(constVal.xyz, 0.5) == expectedA.xyz &&
16 min(constVal.xyzw, 0.5) == expectedA.xyzw &&
21 min(constVal.x, constGreen.x) == expectedB.x &&
22 min(constVal.xy, constGreen.xy) == expectedB.xy &&
23 min(constVal.xyz, constGreen.xyz) == expectedB.xyz &&
24 min(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DMaxFloat.sksl7 const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
13 max(constVal.x, 0.5) == expectedA.x &&
14 max(constVal.xy, 0.5) == expectedA.xy &&
15 max(constVal.xyz, 0.5) == expectedA.xyz &&
16 max(constVal.xyzw, 0.5) == expectedA.xyzw &&
21 max(constVal.x, constGreen.x) == expectedB.x &&
22 max(constVal.xy, constGreen.xy) == expectedB.xy &&
23 max(constVal.xyz, constGreen.xyz) == expectedB.xyz &&
24 max(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DStep.sksl5 const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
14 step(0.5, constVal.x) == expectedA.x &&
15 step(0.5, constVal.xy) == expectedA.xy &&
16 step(0.5, constVal.xyz) == expectedA.xyz &&
17 step(0.5, constVal.xyzw) == expectedA.xyzw &&
22 step(constVal.x, constGreen.x) == expectedB.x &&
23 step(constVal.xy, constGreen.xy) == expectedB.xy &&
24 step(constVal.xyz, constGreen.xyz) == expectedB.xyz &&
25 step(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DMod.sksl7 const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
13 mod(constVal.x, 1) == expectedA.x &&
14 mod(constVal.xy, 1) == expectedA.xy &&
15 mod(constVal.xyz, 1) == expectedA.xyz &&
16 mod(constVal.xyzw, 1) == expectedA.xyzw &&
21 mod(constVal.x, constRamp.x) == expectedB.x &&
22 mod(constVal.xy, constRamp.xy) == expectedB.xy &&
23 mod(constVal.xyz, constRamp.xyz) == expectedB.xyz &&
24 mod(constVal.xyzw, constRamp.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DMinInt.sksl7 const int4 constVal = int4(-125, 0, 75, 225);
16 min(constVal.x, 50) == expectedA.x &&
17 min(constVal.xy, 50) == expectedA.xy &&
18 min(constVal.xyz, 50) == expectedA.xyz &&
19 min(constVal.xyzw, 50) == expectedA.xyzw &&
24 min(constVal.x, constGreen.x) == expectedB.x &&
25 min(constVal.xy, constGreen.xy) == expectedB.xy &&
26 min(constVal.xyz, constGreen.xyz) == expectedB.xyz &&
27 min(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DMaxUint.sksl7 const uint4 constVal = uint4(125, 0, 75, 225);
16 max(constVal.x, 80) == expectedA.x &&
17 max(constVal.xy, 80) == expectedA.xy &&
18 max(constVal.xyz, 80) == expectedA.xyz &&
19 max(constVal.xyzw, 80) == expectedA.xyzw &&
24 max(constVal.x, constGreen.x) == expectedB.x &&
25 max(constVal.xy, constGreen.xy) == expectedB.xy &&
26 max(constVal.xyz, constGreen.xyz) == expectedB.xyz &&
27 max(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DMinUint.sksl7 const uint4 constVal = uint4(125, 0, 75, 225);
16 min(constVal.x, 50) == expectedA.x &&
17 min(constVal.xy, 50) == expectedA.xy &&
18 min(constVal.xyz, 50) == expectedA.xyz &&
19 min(constVal.xyzw, 50) == expectedA.xyzw &&
24 min(constVal.x, constGreen.x) == expectedB.x &&
25 min(constVal.xy, constGreen.xy) == expectedB.xy &&
26 min(constVal.xyz, constGreen.xyz) == expectedB.xyz &&
27 min(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DMaxInt.sksl7 const int4 constVal = int4(-125, 0, 75, 225);
16 max(constVal.x, 50) == expectedA.x &&
17 max(constVal.xy, 50) == expectedA.xy &&
18 max(constVal.xyz, 50) == expectedA.xyz &&
19 max(constVal.xyzw, 50) == expectedA.xyzw &&
24 max(constVal.x, constGreen.x) == expectedB.x &&
25 max(constVal.xy, constGreen.xy) == expectedB.xy &&
26 max(constVal.xyz, constGreen.xyz) == expectedB.xyz &&
27 max(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
DClampFloat.sksl8 const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
20 clamp(constVal.x, -1, 1) == expectedA.x &&
21 clamp(constVal.xy, -1, 1) == expectedA.xy &&
22 clamp(constVal.xyz, -1, 1) == expectedA.xyz &&
23 clamp(constVal.xyzw, -1, 1) == expectedA.xyzw &&
24 clamp(constVal.x, clampLow.x, clampHigh.x ) == expectedB.x &&
25 clamp(constVal.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy &&
26 clamp(constVal.xyz, clampLow.xyz, clampHigh.xyz ) == expectedB.xyz &&
27 clamp(constVal.xyzw, clampLow.xyzw, clampHigh.xyzw) == expectedB.xyzw) ? colorGreen
DClampInt.sksl10 const int4 constVal = int4(-125, 0, 75, 225);
18 clamp(constVal.x, -100, 100) == expectedA.x &&
19 clamp(constVal.xy, -100, 100) == expectedA.xy &&
20 clamp(constVal.xyz, -100, 100) == expectedA.xyz &&
21 clamp(constVal.xyzw, -100, 100) == expectedA.xyzw &&
26 clamp(constVal.x, clampLow.x, clampHigh.x ) == expectedB.x &&
27 clamp(constVal.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy &&
28 clamp(constVal.xyz, clampLow.xyz, clampHigh.xyz ) == expectedB.xyz &&
29 clamp(constVal.xyzw, clampLow.xyzw, clampHigh.xyzw) == expectedB.xyzw) ? colorGreen
DClampUInt.sksl10 const uint4 constVal = uint4( 75, 200, 275, 425);
18 clamp(constVal.x, 100, 300) == expectedA.x &&
19 clamp(constVal.xy, 100, 300) == expectedA.xy &&
20 clamp(constVal.xyz, 100, 300) == expectedA.xyz &&
21 clamp(constVal.xyzw, 100, 300) == expectedA.xyzw &&
26 clamp(constVal.x, clampLow.x, clampHigh.x ) == expectedB.x &&
27 clamp(constVal.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy &&
28 clamp(constVal.xyz, clampLow.xyz, clampHigh.xyz ) == expectedB.xyz &&
29 clamp(constVal.xyzw, clampLow.xyzw, clampHigh.xyzw) == expectedB.xyzw) ? colorGreen
DMixFloatES3.sksl9 const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
23 mix(constWhite.x, constVal.x, constTFTF.x) == constVal.x &&
24 mix(constWhite.xy, constVal.xy, constTFTF.xy) == constVal.x1 &&
25 mix(constWhite.xyz, constVal.xyz, constTFTF.xyz) == constVal.x1z &&
26 mix(constWhite.xyzw, constVal.xyzw, constTFTF.xyzw) == constVal.x1z1)
DDegrees.sksl5 const float4 constVal = half4(-1.25, 0, 0.75, 2.25);
6 const float4 expected = constVal * 57.2957795131;
13 ( (abs(degrees(constVal.x) - expected.x) < allowedDelta.x)) &&
14 all(lessThan(abs(degrees(constVal.xy) - expected.xy), allowedDelta.xy)) &&
15 all(lessThan(abs(degrees(constVal.xyz) - expected.xyz), allowedDelta.xyz)) &&
16 all(lessThan(abs(degrees(constVal.xyzw) - expected.xyzw), allowedDelta.xyzw)))
DRadians.sksl5 const float4 constVal = half4(-1.25, 0, 0.75, 2.25);
6 const float4 expected = constVal * 0.01745329251;
13 ( (abs(radians(constVal.x) - expected.x) < allowedDelta.x)) &&
14 all(lessThan(abs(radians(constVal.xy) - expected.xy), allowedDelta.xy)) &&
15 all(lessThan(abs(radians(constVal.xyz) - expected.xyz), allowedDelta.xyz)) &&
16 all(lessThan(abs(radians(constVal.xyzw) - expected.xyzw), allowedDelta.xyzw)))
DExp2.sksl5 const half4 constVal = half4(0, 1, 2, 3);
10 exp2(constVal.x) == expected.x &&
11 exp2(constVal.xy) == expected.xy &&
12 exp2(constVal.xyz) == expected.xyz &&
13 exp2(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DSinh.sksl5 const half4 constVal = half4(0);
10 sinh(constVal.x) == expected.x &&
11 sinh(constVal.xy) == expected.xy &&
12 sinh(constVal.xyz) == expected.xyz &&
13 sinh(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DLog.sksl5 const half4 constVal = half4(1);
10 log(constVal.x) == expected.x &&
11 log(constVal.xy) == expected.xy &&
12 log(constVal.xyz) == expected.xyz &&
13 log(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DExp.sksl5 const half4 constVal = half4(0);
10 exp(constVal.x) == expected.x &&
11 exp(constVal.xy) == expected.xy &&
12 exp(constVal.xyz) == expected.xyz &&
13 exp(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DAsin.sksl5 const half4 constVal = half4(0);
10 asin(constVal.x) == expected.x &&
11 asin(constVal.xy) == expected.xy &&
12 asin(constVal.xyz) == expected.xyz &&
13 asin(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DCos.sksl5 const half4 constVal = half4(0);
10 cos(constVal.x) == expected.x &&
11 cos(constVal.xy) == expected.xy &&
12 cos(constVal.xyz) == expected.xyz &&
13 cos(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DAcos.sksl5 const half4 constVal = half4(1);
10 acos(constVal.x) == expected.x &&
11 acos(constVal.xy) == expected.xy &&
12 acos(constVal.xyz) == expected.xyz &&
13 acos(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DSin.sksl5 const half4 constVal = half4(0);
10 sin(constVal.x) == expected.x &&
11 sin(constVal.xy) == expected.xy &&
12 sin(constVal.xyz) == expected.xyz &&
13 sin(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DLog2.sksl5 const half4 constVal = half4(1, 2, 4, 8);
10 log2(constVal.x) == expected.x &&
11 log2(constVal.xy) == expected.xy &&
12 log2(constVal.xyz) == expected.xyz &&
13 log2(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DCosh.sksl5 const half4 constVal = half4(0);
10 cosh(constVal.x) == expected.x &&
11 cosh(constVal.xy) == expected.xy &&
12 cosh(constVal.xyz) == expected.xyz &&
13 cosh(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;

123