Antonio Maiorano | 4de90f0 | 2022-07-27 14:51:27 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | |
| 3 | using namespace metal; |
| 4 | void atan2_3c2865() { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 5 | float3 res = float3(0.78539818525314331055f); |
Antonio Maiorano | 4de90f0 | 2022-07-27 14:51:27 +0000 | [diff] [blame] | 6 | } |
| 7 | |
Antonio Maiorano | 4de90f0 | 2022-07-27 14:51:27 +0000 | [diff] [blame] | 8 | fragment void fragment_main() { |
| 9 | atan2_3c2865(); |
| 10 | return; |
| 11 | } |
| 12 | |
| 13 | kernel void compute_main() { |
| 14 | atan2_3c2865(); |
| 15 | return; |
| 16 | } |
| 17 | |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 18 | struct VertexOutput { |
| 19 | float4 pos; |
| 20 | }; |
| 21 | |
| 22 | struct tint_symbol { |
| 23 | float4 pos [[position]]; |
| 24 | }; |
| 25 | |
| 26 | VertexOutput vertex_main_inner() { |
| 27 | VertexOutput out = {}; |
| 28 | out.pos = float4(0.0f); |
| 29 | atan2_3c2865(); |
| 30 | return out; |
| 31 | } |
| 32 | |
| 33 | vertex tint_symbol vertex_main() { |
| 34 | VertexOutput const inner_result = vertex_main_inner(); |
| 35 | tint_symbol wrapper_result = {}; |
| 36 | wrapper_result.pos = inner_result.pos; |
| 37 | return wrapper_result; |
| 38 | } |
| 39 | |