552fcb9a1b
All internal usage has migrated to MakeFor..., this removes the old program kind, and updates some tests. Bug: skia:11813 Change-Id: I56733b071270e1ae3fab5d851e23acf6c02e3361 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/402536 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
14 lines
299 B
Plaintext
14 lines
299 B
Plaintext
/*#pragma settings NoInline*/
|
|
|
|
// Ensure that 'const' is preserved on variable and function declarations in the .stage output
|
|
const half r = 0;
|
|
|
|
half2 compute_ba(const half2 rg) {
|
|
return rg;
|
|
}
|
|
|
|
half4 main(float2 xy) {
|
|
const half g = r + 1;
|
|
return half4(r, g, compute_ba(half2(r, g)));
|
|
}
|