f972313fa1
This golden verifies that when the inline threshold is zero, inlining is not performed. Change-Id: Icad6e1faed569dd1b2469874be3b9e635ad0b9ad Reviewed-on: https://skia-review.googlesource.com/c/skia/+/325656 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
33 lines
692 B
Plaintext
33 lines
692 B
Plaintext
/*#pragma settings NoInline*/
|
|
|
|
uniform half4 color;
|
|
|
|
half singleuse() {
|
|
return 1.25;
|
|
}
|
|
|
|
half add(half a, half b) {
|
|
half c = a + b;
|
|
return c;
|
|
}
|
|
|
|
half mul(half a, half b) {
|
|
return a * b;
|
|
}
|
|
|
|
half fma(half a, half b, half c) {
|
|
return add(mul(a, b), c);
|
|
}
|
|
|
|
void main() {
|
|
// Functions used multiple times:
|
|
sk_FragColor = fma(color.x, color.y, color.z).xxxx;
|
|
// Functions used only once:
|
|
sk_FragColor *= singleuse();
|
|
// Intrinsic functions:
|
|
sk_FragColor *= blend_src_in(color.xxyy, color.zzww);
|
|
sk_FragColor *= blend_dst_in(color.xxyy, color.zzww);
|
|
sk_FragColor *= blend_hue(color, color.wwww);
|
|
sk_FragColor *= blend_hue(color, color.wzyx);
|
|
}
|