diff options
Diffstat (limited to 'gfx/skia/skia/src/sksl/sksl_public.sksl')
-rw-r--r-- | gfx/skia/skia/src/sksl/sksl_public.sksl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/sksl/sksl_public.sksl b/gfx/skia/skia/src/sksl/sksl_public.sksl new file mode 100644 index 0000000000..1168612c70 --- /dev/null +++ b/gfx/skia/skia/src/sksl/sksl_public.sksl @@ -0,0 +1,10 @@ +// SkSL intrinsics that are not part of GLSL + +// Color space transformation, between the working (destination) space and fixed (known) spaces: +$pure half3 toLinearSrgb(half3 color); +$pure half3 fromLinearSrgb(half3 color); + +// SkSL intrinsics that reflect Skia's C++ object model: + half4 $eval(float2 coords, shader s); + half4 $eval(half4 color, colorFilter f); + half4 $eval(half4 src, half4 dst, blender b); |