skia2/resources/sksl
John Stiles 3ef2c61c50 Implement compile-time optimization for normalize().
This one is structured a bit differently; it gets to length() value,
then divides the input by its length using a bit of DSL. Since all the
inputs are constant, the constant-folder will do the right thing.

$genType normalize($genType x);
$genHType normalize($genHType x);

Change-Id: I51e5c65fa9e33738cbe253fcc97ee2160c48cfdd
Bug: skia:12034
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/412340
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-05-26 15:06:08 +00:00
..
blend Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
dslfp Add support for uint types in DSL C++ code generation. 2021-05-10 18:43:52 +00:00
errors Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
folding Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
fp Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
glsl Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
inliner Loosen ES3 restrictions in Runtime Effects for debugging. 2021-04-28 19:59:36 +00:00
intrinsics Implement compile-time optimization for normalize(). 2021-05-26 15:06:08 +00:00
metal Enable proper testing of matrix-scalar ops. 2021-05-17 17:36:22 +00:00
runtime Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
runtime_errors Evaluate single-argument generic intrinsics at compile time. 2021-05-10 14:50:50 +00:00
shared Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
spirv Enable proper testing of matrix-scalar ops. 2021-05-17 17:36:22 +00:00
workarounds Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +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.