blob: 25dd8e2d254d0c115aedda2317674e3ddc0e5d13 [file] [log] [blame]
/*#pragma settings NoInline*/
// Ensure that 'const' is preserved on variable and function declarations in the .stage output
const half r = 0;
noinline half opt_barrier(const half x) {
return x;
}
half2 compute_ba(const half2 rg) {
return rg;
}
half4 main(float2 xy) {
const half g = r + 1;
return half4(opt_barrier(r), g, compute_ba(half2(r, opt_barrier(g))));
}