xref: /aosp_15_r20/external/skia/tests/sksl/shared/UniformBuffers.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1
2out vec4 sk_FragColor;
3layout (binding = 0) uniform testBlock {
4    layout (offset = 0) float x;
5    layout (offset = 4) int w;
6    layout (offset = 16) float[2] y;
7    layout (offset = 48) mat3 z;
8};
9void main() {
10    sk_FragColor = vec4(x, y[0], y[1], 0.0);
11}
12