Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | fn atan2_57fb13() { |
| 2 | var res : vec2<f32> = atan2(vec2<f32>(), vec2<f32>()); |
| 3 | } |
| 4 | |
| 5 | [[stage(vertex)]] |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 6 | fn vertex_main() -> [[builtin(position)]] vec4<f32> { |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 7 | atan2_57fb13(); |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 8 | return vec4<f32>(); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | [[stage(fragment)]] |
| 12 | fn fragment_main() { |
| 13 | atan2_57fb13(); |
| 14 | } |
| 15 | |
Sarah | e6cb51e | 2021-06-29 18:39:44 +0000 | [diff] [blame] | 16 | [[stage(compute), workgroup_size(1)]] |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 17 | fn compute_main() { |
| 18 | atan2_57fb13(); |
| 19 | } |