b0245494c6
The new test files are intended to be identical to the unit tests in every meaningful way. (Comments and formatting are not preserved exactly.) In cases where a unit-test method contained more than one test, multiple test files were created; in these cases, new names were invented to match the apparent intent of each invocation. Followup CLs will continue to migrate additional tests. Change-Id: I785c6761ba7ee2b25b5ddc0108321734be23b77c Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/316678 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
18 lines
239 B
Plaintext
18 lines
239 B
Plaintext
float foo(float v[2]) {
|
|
return v[0] * v[1];
|
|
}
|
|
|
|
void bar(inout float x) {
|
|
float y[2], z;
|
|
y[0] = x;
|
|
y[1] = x * 2;
|
|
z = foo(y);
|
|
x = z;
|
|
}
|
|
|
|
void main() {
|
|
float x = 10;
|
|
bar(x);
|
|
sk_FragColor = half4(half(x));
|
|
}
|