aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/README
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-02-07 17:28:31 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-09 14:48:18 +0000
commit6f223283661c1ddc4a5334d2464804c6b6ba3ffa (patch)
treeea9a73a68bc283bea25ed317c870668ab99f1823 /src/sksl/README
parent9eae62c039304b4c315d0ba343c7cb209221cf45 (diff)
skslc type constructor cleanups
BUG=skia: Change-Id: I87108b5e107419d99c996ef032eda512a68451ab Reviewed-on: https://skia-review.googlesource.com/8117 Commit-Queue: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/sksl/README')
-rw-r--r--src/sksl/README3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sksl/README b/src/sksl/README
index d78953f595..98103fa64f 100644
--- a/src/sksl/README
+++ b/src/sksl/README
@@ -41,6 +41,9 @@ following differences between SkSL and GLSL:
have to be expressed "vec2(x, y) * 4.0". There is no performance penalty for
this, as the number is converted to a float at compile time)
* type suffixes on numbers (1.0f, 0xFFu) are both unnecessary and unsupported
+* creating a smaller vector from a larger vector (e.g. vec2(vec3(1))) is
+ intentionally disallowed, as it is just a wordier way of performing a swizzle.
+ Use swizzles instead.
* Use texture() instead of textureProj(), e.g. texture(sampler2D, vec3) is
equivalent to GLSL's textureProj(sampler2D, vec3)
* some built-in functions and one or two rarely-used language features are not