Ben Clayton | b07a7ce | 2021-06-03 11:26: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 unpack2x16unorm_7699c0(device float2* const tint_symbol_1) { |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 5 | float2 res = float2(0.00001525902189314365f, 0.0f); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 6 | *(tint_symbol_1) = res; |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 7 | } |
| 8 | |
Ben Clayton | 8ec32a6 | 2022-02-09 23:55:51 +0000 | [diff] [blame] | 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 float2* const tint_symbol_2) { |
| 14 | unpack2x16unorm_7699c0(tint_symbol_2); |
Ben Clayton | cb6ddd2 | 2022-06-01 10:08:29 +0000 | [diff] [blame] | 15 | return float4(0.0f); |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 16 | } |
| 17 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 18 | vertex tint_symbol vertex_main(device float2* tint_symbol_3 [[buffer(0)]]) { |
| 19 | float4 const inner_result = vertex_main_inner(tint_symbol_3); |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 20 | tint_symbol wrapper_result = {}; |
| 21 | wrapper_result.value = inner_result; |
| 22 | return wrapper_result; |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 23 | } |
| 24 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 25 | fragment void fragment_main(device float2* tint_symbol_4 [[buffer(0)]]) { |
| 26 | unpack2x16unorm_7699c0(tint_symbol_4); |
Ben Clayton | b07a7ce | 2021-06-03 11:26: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 float2* tint_symbol_5 [[buffer(0)]]) { |
| 31 | unpack2x16unorm_7699c0(tint_symbol_5); |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 32 | return; |
| 33 | } |
| 34 | |