blob: f1e749f2ac18343cf666c05cae8ca6b13043cbbd [file] [log] [blame]
Ethan Nicholas00543112018-07-31 09:44:36 -04001STRINGIFY(
2 // special-cased within the compiler - append takes various arguments depending on what kind of
3 // stage is being appended
4 sk_has_side_effects void append();
5
6 float abs(float x);
7 float sin(float x);
8 float cos(float y);
9 float tan(float x);
10 float sqrt(float x);
11 float clamp(float x, float min, float max);
12 float2 clamp(float2 x, float min, float max);
13 float3 clamp(float3 x, float min, float max);
14 float4 clamp(float4 x, float min, float max);
15 sk_has_side_effects void print(float x);
16 layout(builtin=10009) int sk_x;
17 layout(builtin=10010) int sk_y;
18 layout(builtin=10004) out half4 sk_OutColor;
Ethan Nicholasce008112018-08-30 09:19:50 -040019
20 half4 process(fragmentProcessor fp);
Ethan Nicholas00543112018-07-31 09:44:36 -040021)