xref: /third_party/skia/resources/sksl/shared/Offset.sksl
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/resources/sksl/shared/
1cb93a386Sopenharmony_cistruct Test {
2cb93a386Sopenharmony_ci    layout(offset = 0) int x;
3cb93a386Sopenharmony_ci    layout(offset = 4) int y;
4cb93a386Sopenharmony_ci    int z;
5cb93a386Sopenharmony_ci} test;
6cb93a386Sopenharmony_ci
7cb93a386Sopenharmony_civoid main() {
8cb93a386Sopenharmony_ci    Test t;
9cb93a386Sopenharmony_ci    t.x = 0;
10cb93a386Sopenharmony_ci    sk_FragColor.r = half(t.x);
11cb93a386Sopenharmony_ci}
12

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