xref: /third_party/skia/resources/sksl/intrinsics/Log.sksl
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/resources/sksl/intrinsics/
1cb93a386Sopenharmony_ciuniform half4 inputVal, expected;
2cb93a386Sopenharmony_ciuniform half4 colorGreen, colorRed;
3cb93a386Sopenharmony_ci
4cb93a386Sopenharmony_cihalf4 main(float2 coords) {
5cb93a386Sopenharmony_ci    const half4 constVal = half4(1);
6cb93a386Sopenharmony_ci    return (log(inputVal.x)    == expected.x     &&
7cb93a386Sopenharmony_ci            log(inputVal.xy)   == expected.xy    &&
8cb93a386Sopenharmony_ci            log(inputVal.xyz)  == expected.xyz   &&
9cb93a386Sopenharmony_ci            log(inputVal.xyzw) == expected.xyzw  &&
10cb93a386Sopenharmony_ci            log(constVal.x)    == expected.x     &&
11cb93a386Sopenharmony_ci            log(constVal.xy)   == expected.xy    &&
12cb93a386Sopenharmony_ci            log(constVal.xyz)  == expected.xyz   &&
13cb93a386Sopenharmony_ci            log(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
14cb93a386Sopenharmony_ci}
15

Indexes created Thu Nov 07 10:32:03 CST 2024