• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Expect >= 7 errors (currently 9, due to double-reporting)
2
3// Correct declaration (used in some test functions)
4uniform shader s1;
5uniform shader s2;
6
7uniform float2 xy;
8
9// Incorrect shader declarations (they must be uniform)
10shader s3;
11in shader s4;
12
13// Various places that shaders should not be allowed:
14half4  local()             { shader s; return sample(s, xy); }
15half4  parameter(shader s) { return sample(s, xy); }
16shader returned()          { return s1; }
17half4  constructed()       { return sample(shader(s1), xy); }
18half4  expression(bool b)  { return sample(b ? s1 : s2, xy); }
19