skia2/tests/sksl/errors/PrivateVariables.glsl
John Stiles 9f681e6df8 Reject $ in variable names for non-builtin code.
These identifiers are reserved for SkSL internal use (and can't be
exposed to GLSL or Metal anyway).

Change-Id: Id554cbf21ed2fb66785e77700ff79424ecdf66db
Bug: skia:12854
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/498036
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-01-24 14:17:36 +00:00

8 lines
162 B
GLSL

### Compilation failed:
error: 1: name '$a' is reserved
error: 2: name '$b' is reserved
error: 3: name '$c' is reserved
error: 4: name '$d' is reserved
4 errors