skia2/include/sksl
John Stiles 5420cbcf65 Match GLSL scoping rules more closely in SkSL.
GLSL treats builtin types and user-defined types differently; `int` and
`float` are keywords and cannot be used to name variables. However, it's
fine for a user type like `struct xyz` to be hidden by a variable
`int xyz` or even `xyz xyz` (i.e., a variable of type `struct xyz` named
`xyz`).

We now honor that distinction and include tests for it. This will fix
several ES2 conformance tests (local_struct_variable_hides_struct_type,
local_int_variable_hides_struct_type, etc.).

Change-Id: I7a45c70707087f9f355ce5b06b032fed16683f3e
Bug: skia:12527
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/458721
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-10-12 21:53:28 +00:00
..
DSL.h Broke DSLVar into separate subclasses 2021-07-15 15:40:06 +00:00
DSLBlock.h Fixed some fixups not being applied to DSL code 2021-07-12 14:25:38 +00:00
DSLCase.h Fix line numbers of several DSLParser errors 2021-09-03 22:12:22 +00:00
DSLCore.h Remove ASTNode and SkSLParser 2021-09-28 13:36:49 +00:00
DSLExpression.h Removed a number of utility methods from DSLWriter 2021-10-04 20:42:22 +00:00
DSLFunction.h Removed a number of utility methods from DSLWriter 2021-10-04 20:42:22 +00:00
DSLLayout.h Further unified error handling between SkSL and DSL 2021-08-13 22:26:10 +00:00
DSLModifiers.h Emit qualifiers in the GLSL ES-required order. 2021-10-01 19:09:43 +00:00
DSLRuntimeEffects.h Disallow sk_FragCoord in SkRuntimeEffect 2021-07-21 13:36:56 +00:00
DSLStatement.h Make DSLStatement-from-SkSL ctors public. 2021-09-20 14:09:14 +00:00
DSLSymbols.h Match GLSL scoping rules more closely in SkSL. 2021-10-12 21:53:28 +00:00
DSLType.h Replace illegal DSLTypes with Poison types. 2021-10-06 00:12:07 +00:00
DSLVar.h Removed a number of utility methods from DSLWriter 2021-10-04 20:42:22 +00:00
DSLWrapper.h Initial land of DSLParser 2021-07-20 20:28:54 +00:00
SkSLErrorReporter.h Reland "Renamed SkSL "offset" to "line"" 2021-09-27 19:52:08 +00:00