Home
last modified time | relevance | path

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

123

/third_party/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 …]
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;
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;
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;
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;
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;
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;
DClampFloat.sksl8 const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
16 clamp(constVal.x, -1, 1) == expectedA.x &&
17 clamp(constVal.xy, -1, 1) == expectedA.xy &&
18 clamp(constVal.xyz, -1, 1) == expectedA.xyz &&
19 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
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
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
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;
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;
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;
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;
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;
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;
DTan.sksl5 const half4 constVal = half4(0);
10 tan(constVal.x) == expected.x &&
11 tan(constVal.xy) == expected.xy &&
12 tan(constVal.xyz) == expected.xyz &&
13 tan(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;
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;
DRadians.sksl5 const half4 constVal = half4(0);
10 radians(constVal.x) == expected.x &&
11 radians(constVal.xy) == expected.xy &&
12 radians(constVal.xyz) == expected.xyz &&
13 radians(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DFract.sksl5 const half4 constVal = half4(1, 3.25, 2.5, 4.75);
10 fract(constVal.x) == expected.x &&
11 fract(constVal.xy) == expected.xy &&
12 fract(constVal.xyz) == expected.xyz &&
13 fract(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
DTanh.sksl5 const half4 constVal = half4(0);
10 tanh(constVal.x) == expected.x &&
11 tanh(constVal.xy) == expected.xy &&
12 tanh(constVal.xyz) == expected.xyz &&
13 tanh(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;
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;
DDegrees.sksl5 const half4 constVal = half4(1.5707963268, 3.1415926536, 4.7123889804, 6.2831853072);
10 degrees(constVal.x) == expected.x &&
11 degrees(constVal.xy) == expected.xy &&
12 degrees(constVal.xyz) == expected.xyz &&
13 degrees(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;

123