xref: /aosp_15_r20/external/skia/resources/sksl/spirv/ConstantVectorize.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen;
2
3half4 main(float2 coords) {
4    // We should see only one `OpConstantComposite %v2float %float_3 %float_3` in the output.
5    float2 a = max(coords, 3.0);
6    float2 b = min(coords, 3.0);
7    a = b;
8    return colorGreen;
9}
10