dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | using namespace metal; |
James Price | 02cf911 | 2024-05-29 14:43:19 +0000 | [diff] [blame] | 3 | struct vertex_main_outputs { |
| 4 | float4 tint_symbol [[position]]; |
| 5 | }; |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 6 | |
dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 7 | void cosh_f67ff1() { |
| 8 | float3 res = float3(1.0f); |
| 9 | } |
James Price | 02cf911 | 2024-05-29 14:43:19 +0000 | [diff] [blame] | 10 | float4 vertex_main_inner() { |
dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 11 | cosh_f67ff1(); |
| 12 | return float4(0.0f); |
| 13 | } |
| 14 | fragment void fragment_main() { |
| 15 | cosh_f67ff1(); |
| 16 | } |
| 17 | kernel void compute_main() { |
| 18 | cosh_f67ff1(); |
| 19 | } |
James Price | 02cf911 | 2024-05-29 14:43:19 +0000 | [diff] [blame] | 20 | vertex vertex_main_outputs vertex_main() { |
| 21 | return vertex_main_outputs{.tint_symbol=vertex_main_inner()}; |
| 22 | } |