xref: /third_party/skia/resources/sksl/workarounds/NegatedAtan.sksl (revision cb93a386)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/resources/sksl/workarounds/
1cb93a386Sopenharmony_ci/*#pragma settings MustForceNegatedAtanParamToFloat*/
2cb93a386Sopenharmony_ci
3cb93a386Sopenharmony_ciuniform float unknownInput;
4cb93a386Sopenharmony_ci
5cb93a386Sopenharmony_civoid main() {
6cb93a386Sopenharmony_ci    float2 x = unknownInput.xx;
7cb93a386Sopenharmony_ci    sk_FragColor.r = half(atan(x.x, -x.y));
8cb93a386Sopenharmony_ci}
9

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