skia2/resources/sksl
John Stiles 0bd5578c31 Replace Metal constant keyword with const.
"Constant" is an address space qualifier and can't be applied to a
local variable. "Const" in GLSL (and hypothetically SkSL) is meant to
apply to a constant expression regardless of address space.

Our previous test was not finding any error because the optimizer was
eliminating the constant expressions entirely.

Change-Id: I6cfe8e2a621c79945b33e0166780d81e79890a1b
Bug: skia:11304
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/368517
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-02-10 15:23:25 +00:00
..
blend Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
errors Added detection for non-constant-folded divide by zero errors in 2021-02-06 03:13:16 +00:00
folding Add SkSL test demonstrating missed optimization with +=. 2021-02-09 19:17:26 +00:00
fp Add bool2/bool3/bool4 to GrSLType. 2021-02-02 00:25:29 +00:00
glsl Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
inliner Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
intrinsics Revert "Add intrinsic tests for mod() and fract()." 2021-01-30 13:38:31 +00:00
metal Add default uniform binding value for Metal/SPIR-V. 2021-01-28 19:23:49 +00:00
runtime Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
runtime_errors Reject array-typed vardecls and array ctors in strict ES2 mode. 2021-02-04 19:36:50 +00:00
shared Replace Metal constant keyword with const. 2021-02-10 15:23:25 +00:00
spirv Improve memory layout handling in SPIRV generator 2021-01-22 22:16:48 +00:00
workarounds Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
README.txt Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00

This directory contains source files for testing skslc compilation.
The compiled output files are in the /tests/sksl/ directory.