293497e77f
Bug: skia:12302 Change-Id: I8cf958acf9214d0de903a4097647afd74f2a659e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441541 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
19 lines
589 B
Plaintext
19 lines
589 B
Plaintext
// Expect >= 7 errors (currently 9, due to double-reporting)
|
|
|
|
// Correct declaration (used in some test functions)
|
|
uniform shader s1;
|
|
uniform shader s2;
|
|
|
|
uniform float2 xy;
|
|
|
|
// Incorrect shader declarations (they must be uniform)
|
|
shader s3;
|
|
in shader s4;
|
|
|
|
// Various places that shaders should not be allowed:
|
|
half4 local() { shader s; return shade(s, xy); }
|
|
half4 parameter(shader s) { return shade(s, xy); }
|
|
shader returned() { return s1; }
|
|
half4 constructed() { return shade(shader(s1), xy); }
|
|
half4 expression(bool b) { return shade(b ? s1 : s2, xy); }
|