sksl_pipeline.inc 711 B

123456789101112131415161718192021
  1. STRINGIFY(
  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. float abs(float x);
  6. float sin(float x);
  7. float cos(float y);
  8. float tan(float x);
  9. float sqrt(float x);
  10. float clamp(float x, float min, float max);
  11. float2 clamp(float2 x, float min, float max);
  12. float3 clamp(float3 x, float min, float max);
  13. float4 clamp(float4 x, float min, float max);
  14. sk_has_side_effects void print(float x);
  15. layout(builtin=10009) int sk_x;
  16. layout(builtin=10010) int sk_y;
  17. layout(builtin=10004) out half4 sk_OutColor;
  18. half4 process(fragmentProcessor fp);
  19. )