skia2/tests/sksl
John Stiles 16cbfb41df Implement statements and expressions in DSL C++ code generator.
This CL removes the bulk of the existing C++ code generator, especially
all the complex format-string assembly code. It has been replaced with
actual DSL code generation. Simple IR can now be successfully translated
to a working DSL fragment processor.

This CL also adds a simple test harness which is patterned after the
existing SkSLTest; it renders a pixel, reads it back, and fails the test
if the result isn't solid green (RGBA=0101).

This CL doesn't implement every feature. Some obvious gaps include:
- Sampling from children
- Uniforms/inputs of any kind
- Function calls of any kind

Change-Id: Ib80c23fe1ba4453f7c3cb43b65f93c5ea0deb709
Bug: skia:11854
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/396757
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-04-20 19:28:36 +00:00
..
blend Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
dslfp Implement statements and expressions in DSL C++ code generator. 2021-04-20 19:28:36 +00:00
errors Simplify for init-stmts at the IR level. 2021-04-20 14:38:36 +00:00
folding Represent matrix resizes as a dedicated expression type. 2021-04-06 18:35:06 +00:00
fp Implement statements and expressions in DSL C++ code generator. 2021-04-20 19:28:36 +00:00
glsl Remove specific blend mode layout qualifiers 2021-02-23 15:45:55 +00:00
inliner Run SkSL inliner tests as part of dm. 2021-03-25 22:58:54 +00:00
intrinsics Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
metal Mangle function names in Metal. 2021-03-22 17:23:21 +00:00
runtime Add ivec GLSL type aliases to runtime effects 2021-04-12 16:55:41 +00:00
runtime_errors Remove layout(marker) from runtime effect SkSL 2021-04-19 18:48:45 +00:00
shared Simplify for init-stmts at the IR level. 2021-04-20 14:38:36 +00:00
spirv Represent vector-cast constructors with ConstructorVectorCast. 2021-04-05 16:28:06 +00:00
workarounds Rewrite matrix * vector multiplication on ARM GPUs. 2021-03-24 19:21:44 +00:00
README.txt Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00

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