Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
| 2 | |
| 3 | using namespace metal; |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 4 | void clamp_553ffb(device half* const tint_symbol_1) { |
dan sinclair | d9b68eb | 2022-11-10 00:32:12 +0000 | [diff] [blame] | 5 | half res = 1.0h; |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 6 | *(tint_symbol_1) = res; |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 7 | } |
| 8 | |
| 9 | struct tint_symbol { |
| 10 | float4 value [[position]]; |
| 11 | }; |
| 12 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 13 | float4 vertex_main_inner(device half* const tint_symbol_2) { |
| 14 | clamp_553ffb(tint_symbol_2); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 15 | return float4(0.0f); |
| 16 | } |
| 17 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 18 | vertex tint_symbol vertex_main(device half* tint_symbol_3 [[buffer(0)]]) { |
| 19 | float4 const inner_result = vertex_main_inner(tint_symbol_3); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 20 | tint_symbol wrapper_result = {}; |
| 21 | wrapper_result.value = inner_result; |
| 22 | return wrapper_result; |
| 23 | } |
| 24 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 25 | fragment void fragment_main(device half* tint_symbol_4 [[buffer(0)]]) { |
| 26 | clamp_553ffb(tint_symbol_4); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 27 | return; |
| 28 | } |
| 29 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 30 | kernel void compute_main(device half* tint_symbol_5 [[buffer(0)]]) { |
| 31 | clamp_553ffb(tint_symbol_5); |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 32 | return; |
| 33 | } |
| 34 | |