• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*#pragma settings NoInline*/
2
3// Ensure that 'const' is preserved on variable and function declarations in the .stage output
4const half r = 0;
5
6half2 compute_ba(const half2 rg) {
7    return rg;
8}
9
10half4 main(float2 xy) {
11    const half g = r + 1;
12    return half4(sqrt(r), g, compute_ba(half2(r, sqrt(g))));
13}
14