skia2/tests/sksl/runtime
Mike Klein ff4decc35e add fast_mul(F32,F32)
This is just like mul(F32,F32) but optimizes 0*x == 0.
Use it in SkSLVMGenerator; sksl already applies this optimization.

PS2 has a sneaky version using % as a fast_mul() operator, and
PS3 has a sneakier version using ** instead.

We could of course write this all out using fast_mul() the long way,
but I found that quickly became difficult to read.

Change-Id: Iae35ce54411abc00e7729e178eb6a10f151a5304
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/368838
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2021-02-11 01:13:01 +00:00
..
ArrayIndexing.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ArrayIndexing.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
ConversionConstructors.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ConversionConstructors.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
LoopFloat.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopFloat.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
LoopInt.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopInt.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
SampleWithConstantMatrix.skvm add fast_mul(F32,F32) 2021-02-11 01:13:01 +00:00
SampleWithConstantMatrix.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
SampleWithExplicitCoord.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
SampleWithExplicitCoord.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
SampleWithUniformMatrix.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
SampleWithUniformMatrix.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
SampleWithVariableMatrix.skvm add fast_mul(F32,F32) 2021-02-11 01:13:01 +00:00
SampleWithVariableMatrix.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
VectorIndexing.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
VectorIndexing.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00