skia2/resources/sksl/runtime
John Stiles 50d0d097c3 Add dest-color support to the Pipeline stage.
Previously, when converting a program, the pipeline stage could assume
that an input to main() of type half4/float4 was always the input color.
This was a good assumption since the only possible inputs were
coordinates, or the input color.

This CL now recognizes that when a second float4 is passed to the main()
function, it should be a SK_DEST_COLOR_BUILTIN. This will let blend
functions pass in two colors.

ProgramToSkVM now takes a dest-color argument as well, but existing call
sites won't reference it (since they aren't for blend functions). I've
just passed the input-color a second time, since the value will never
actually be accessed.

Change-Id: I4214586bda605c6d287aa25b1b099e6ef5ba15a4
Bug: skia:12080
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417261
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-06-09 22:09:21 +00:00
..
ArrayIndexing.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
Blend.rtb Add dest-color support to the Pipeline stage. 2021-06-09 22:09:21 +00:00
ConstPreservation.rts Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
ConversionConstructors.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
GlobalVariables.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
GLSLTypeNames.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
LoopFloat.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
LoopInt.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
SampleWithExplicitCoord.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
VectorIndexing.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00