diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-02-09 10:15:25 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-09 19:29:33 +0000 |
commit | 67d64605d3421404a94c0717fdff194730579873 (patch) | |
tree | 7ffd92cae8a120704da08be7226c30b120e40d9f /src/sksl/sksl_frag.include | |
parent | 5d4cd9ea8818f65bb4878c050dbdb9dcd48505ad (diff) |
added support for sk_ClipDistance
Change-Id: I9ea202679211b98cf98165c8609f24f9b4e14b66
Reviewed-on: https://skia-review.googlesource.com/8247
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/sksl_frag.include')
-rw-r--r-- | src/sksl/sksl_frag.include | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sksl/sksl_frag.include b/src/sksl/sksl_frag.include index 21849866df..d65545da66 100644 --- a/src/sksl/sksl_frag.include +++ b/src/sksl/sksl_frag.include @@ -3,6 +3,7 @@ STRINGIFY( // defines built-in interfaces supported by SkiaSL fragment shaders layout(builtin=15) in vec4 sk_FragCoord; +layout(builtin=3) float sk_ClipDistance[1]; // 9999 is a temporary value that causes us to ignore these declarations beyond // adding them to the symbol table. This works fine in GLSL (where they do not |