skia2/tests/sksl
John Stiles 4f2bcff08e Implement Type cloning for enums and structs.
As far as I know, there shouldn't be a way to introduce a struct or enum
other than at global scope; the keywords are not accepted inside a
function body. In fact, I wasn't able to find a way to exercise these
code paths in practice. But we now have concrete assurance that any
possible type can be cloned into a symbol table safely; all Types are
either built-in (available everywhere by design) or are clonable.

Change-Id: I4b006b6cab995b3e598b683736ab9689828629c9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/354664
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-15 21:45:56 +00:00
..
blend Deduplicate vector constants in SPIR-V output. 2021-01-06 21:05:50 +00:00
errors Enforce (valid) array sizes in many more places 2021-01-14 22:14:59 +00:00
folding Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
fp Allow type-fluid GLSL-style vec2(int, bool) ctors in SkSL. 2021-01-13 19:45:14 +00:00
glsl Replace array indexing on vector types with swizzles. 2020-12-07 21:16:40 +00:00
inliner Implement Type cloning for enums and structs. 2021-01-15 21:45:56 +00:00
intrinsics Factor out SPIR-V typecasting helper functions. 2021-01-14 00:00:15 +00:00
metal Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
runtime restore select() in bool->int 2021-01-14 21:09:58 +00:00
runtime_errors Disallow switch statements in runtime effects 2021-01-14 17:45:16 +00:00
shared Fix for fuzzer-discovered use-after-free. 2021-01-15 15:11:00 +00:00
spirv Factor out SPIR-V typecasting helper functions. 2021-01-14 00:00:15 +00:00
workarounds Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00