skia2/tests/sksl
Ethan Nicholas f393067c37 Made SkSL type aliases into first-class objects
Previously, type aliases ('vec2') were just an additional name which
could be used to refer to a type ('float2'). This was simple and worked,
except that error messages would be wrong - any type-related error
message would refer to the type as 'float2' rather than the 'vec2' that
the user actually typed.

This CL adds an AliasType class so that we can track which name was
used to refer to an aliased type and report messages using the correct
type name.

Bug: skia:12737

Change-Id: I40e234239ab47557033e0695e4fbbd5f01da354e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/490256
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-01-05 16:20:19 +00:00
..
blend Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
errors Prevent interface block members from using invalid names. 2021-12-28 20:57:18 +00:00
folding Replace getConstantSubexpression with getConstantValue. 2021-11-15 14:46:21 +00:00
glsl Report an error if sk_LastFragColor is referenced without fbFetchSupport 2021-09-15 15:41:49 +00:00
inliner Allow inlining of functions with unassigned out-params. 2021-11-11 19:33:06 +00:00
intrinsics Rename SkSL's 2D cross product builtin function 2021-12-14 22:00:26 +00:00
metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
runtime Made SkSL type aliases into first-class objects 2022-01-05 16:20:19 +00:00
runtime_errors Made SkSL type aliases into first-class objects 2022-01-05 16:20:19 +00:00
shared Add support for anonymous function parameters in SkSL. 2021-12-28 20:47:05 +00:00
spirv Roll SPIRV-Headers and SPIRV-Tools 2021-11-19 19:22:54 +00:00
workarounds Remove the "in blend modes randomly fail for all zero vec" workaround 2021-10-21 16:54:51 +00:00
README.txt

This directory contains skslc-compiled output from matching source files
in the /resources/sksl/ directory.