src/sksl/sksl_public.sksl
raw| 1 | // SkSL intrinsics that are not part of GLSL |
| 2 | |
| 3 | // Color space transformation, between the working (destination) space and fixed (known) spaces: |
| 4 | $pure half3 toLinearSrgb(half3 color); |
| 5 | $pure half3 fromLinearSrgb(half3 color); |
| 6 | |
| 7 | // SkSL intrinsics that reflect Skia's C++ object model: |
| 8 | half4 $eval(float2 coords, shader s); |
| 9 | half4 $eval(half4 color, colorFilter f); |
| 10 | half4 $eval(half4 src, half4 dst, blender b); |