dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | using namespace metal; |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 3 | |
James Price | 2cc6b3c | 2024-06-13 20:31:41 +0000 | [diff] [blame] | 4 | struct VertexOutput { |
| 5 | float4 pos; |
| 6 | }; |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 7 | |
James Price | 02cf911 | 2024-05-29 14:43:19 +0000 | [diff] [blame] | 8 | struct vertex_main_outputs { |
James Price | 2cc6b3c | 2024-06-13 20:31:41 +0000 | [diff] [blame] | 9 | float4 VertexOutput_pos [[position]]; |
James Price | 02cf911 | 2024-05-29 14:43:19 +0000 | [diff] [blame] | 10 | }; |
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 11 | |
dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 12 | void ldexp_a6126e() { |
| 13 | int3 arg_1 = int3(1); |
| 14 | float3 res = ldexp(float3(1.0f), arg_1); |
| 15 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 16 | |
dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 17 | fragment void fragment_main() { |
| 18 | ldexp_a6126e(); |
| 19 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 20 | |
dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 21 | kernel void compute_main() { |
| 22 | ldexp_a6126e(); |
| 23 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 24 | |
James Price | 2cc6b3c | 2024-06-13 20:31:41 +0000 | [diff] [blame] | 25 | VertexOutput vertex_main_inner() { |
| 26 | VertexOutput out = {}; |
| 27 | out.pos = float4(0.0f); |
| 28 | ldexp_a6126e(); |
| 29 | return out; |
| 30 | } |
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 31 | |
James Price | 02cf911 | 2024-05-29 14:43:19 +0000 | [diff] [blame] | 32 | vertex vertex_main_outputs vertex_main() { |
James Price | 6d87fa6 | 2024-09-03 23:24:13 +0000 | [diff] [blame] | 33 | vertex_main_outputs tint_wrapper_result = {}; |
| 34 | tint_wrapper_result.VertexOutput_pos = vertex_main_inner().pos; |
| 35 | return tint_wrapper_result; |
James Price | 02cf911 | 2024-05-29 14:43:19 +0000 | [diff] [blame] | 36 | } |