skia2/tests/sksl/workarounds/BlendGuardedDivide.sksl
John Stiles eaaa71b705 Add test for sk_Caps.mustGuardDivisionEvenAfterExplicitZeroCheck.
Change-Id: Ib1374e1dce1a654a83813dbe341774bd91729796
Bug: skia:10694, skia:10819
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/324356
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-10-09 13:48:13 +00:00

10 lines
244 B
Plaintext

/*#pragma settings MustGuardDivisionEvenAfterExplicitZeroCheck*/
in half4 src, dst;
void main() {
sk_FragColor = blend_color_dodge(src, dst);
sk_FragColor = blend_color_burn(src, dst);
sk_FragColor = blend_soft_light(src, dst);
}