diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-05-10 15:06:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-10 19:31:34 +0000 |
commit | 5ac13c23628c6ee8c3f6056f38527706b403e502 (patch) | |
tree | c8a96588eed9009037bd368bb155a0f990cd4cc3 /src/sksl/README | |
parent | 37c5a96bbdeac2000c8b31d40f4786b31c39f2dd (diff) |
sksl support for static ifs & switches
Bug: skia:
Change-Id: Ic9e01a3a18efddb19bab26e92bfb473cad294fc1
Reviewed-on: https://skia-review.googlesource.com/16144
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Diffstat (limited to 'src/sksl/README')
-rw-r--r-- | src/sksl/README | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sksl/README b/src/sksl/README index 5e8e21b92f..a16dd80858 100644 --- a/src/sksl/README +++ b/src/sksl/README @@ -18,6 +18,9 @@ differences (for instance, you always use "in" and "out", and skslc will handle translating them to "varying" and "attribute" as appropriate). Be aware of the following differences between SkSL and GLSL: +* "@if" and "@switch" are static versions of if and switch. They behave exactly + the same as if and switch in all respects other than it being a compile-time + error to use a non-constant expression as a test. * GLSL caps can be referenced via the syntax 'sk_Caps.<name>', e.g. sk_Caps.sampleVariablesSupport. The value will be a constant boolean or int, as appropriate. As SkSL supports constant folding and branch elimination, this |