xref: /aosp_15_r20/external/skia/tests/sksl/shared/Offset.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1
2out vec4 sk_FragColor;
3struct Test {
4    layout (offset = 0) int x;
5    layout (offset = 4) int y;
6    int z;
7};
8void main() {
9    Test t;
10    t.x = 0;
11    sk_FragColor.x = float(t.x);
12}
13