a65441b3c4
These need to change because type coercion in SkSL is about to become more strict in a followup CL; we are disallowing expressions that mix ints and floats without a cast. Change-Id: I0f6c3cba53fb67078f447345338262c153236c51 Bug: skia:11164 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353102 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
9 lines
147 B
Plaintext
9 lines
147 B
Plaintext
half attr1;
|
|
int attr2 = 123;
|
|
float attr3;
|
|
half4 attr4 = half4(4, 5, 6, 7);
|
|
void main()
|
|
{
|
|
sk_FragColor = half4(attr1, attr2, attr3, attr4.x);
|
|
}
|