xref: /aosp_15_r20/external/skia/resources/sksl/shared/ArrayConstructors.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3half4 main(float2 coords) {
4    float test1[4] = float[4](1, 2, 3, 4);
5    float2 test2[2] = float2[2](float2(1, 2), float2(3, 4));
6    float4x4 test3[1] = float4x4[1](float4x4(16));
7
8    return (test1[3] + test2[1][1] + test3[0][3][3] == 24) ? colorGreen : colorRed;
9}
10