2021-03-09 21:00:29 +00:00
|
|
|
/*#pragma settings NoInline*/
|
|
|
|
|
|
|
|
// Ensure that 'const' is preserved on variable and function declarations in the .stage output
|
|
|
|
const half r = 0;
|
|
|
|
|
|
|
|
half2 compute_ba(const half2 rg) {
|
|
|
|
return rg;
|
|
|
|
}
|
|
|
|
|
2021-04-28 21:41:57 +00:00
|
|
|
half4 main(float2 xy) {
|
2021-03-09 21:00:29 +00:00
|
|
|
const half g = r + 1;
|
2021-05-05 13:18:33 +00:00
|
|
|
return half4(sqrt(r), g, compute_ba(half2(r, sqrt(g))));
|
2021-03-09 21:00:29 +00:00
|
|
|
}
|