xref: /aosp_15_r20/external/skia/tests/sksl/errors/ConstructorArgumentCount.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 1: invalid arguments to 'float3' constructor (expected 3 scalars, but found 2)
4void construct_float3_from_float_float()             { float3 x = float3(1.0, 2.0); }
5                                                                  ^^^^^^^^^^^^^^^^
6error: 2: invalid arguments to 'float3' constructor (expected 3 scalars, but found 4)
7void construct_float3_from_float_float_float_float() { float3 x = float3(1.0, 2.0, 3.0, 4.0); }
8                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
9error: 3: 'int3' is not a valid parameter to 'bool' constructor
10void construct_bool_from_int3()                      { bool   x = bool(int3(77)); }
11                                                                  ^^^^^^^^^^^^^^
123 errors
13