blob: 09034a870214a1ac1cf3ea867db33e14ab7de8ac [file] [log] [blame]
Ben Claytonb07a7ce2021-06-03 11:26:17 +00001fn atan2_57fb13() {
2 var res : vec2<f32> = atan2(vec2<f32>(), vec2<f32>());
3}
4
5[[stage(vertex)]]
James Price9fd3bef2021-06-04 17:31:48 +00006fn vertex_main() -> [[builtin(position)]] vec4<f32> {
Ben Claytonb07a7ce2021-06-03 11:26:17 +00007 atan2_57fb13();
James Price9fd3bef2021-06-04 17:31:48 +00008 return vec4<f32>();
Ben Claytonb07a7ce2021-06-03 11:26:17 +00009}
10
11[[stage(fragment)]]
12fn fragment_main() {
13 atan2_57fb13();
14}
15
Sarahe6cb51e2021-06-29 18:39:44 +000016[[stage(compute), workgroup_size(1)]]
Ben Claytonb07a7ce2021-06-03 11:26:17 +000017fn compute_main() {
18 atan2_57fb13();
19}