Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +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 textureLoad_19cf87(depth2d<float, access::sample> tint_symbol_1, device float* const tint_symbol_2) { |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 5 | int2 arg_1 = int2(1); |
Ben Clayton | c3adc78 | 2022-10-25 13:08:45 +0000 | [diff] [blame] | 6 | int arg_2 = 1; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 7 | float res = tint_symbol_1.read(uint2(arg_1), arg_2); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 8 | *(tint_symbol_2) = res; |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | struct tint_symbol { |
| 12 | float4 value [[position]]; |
| 13 | }; |
| 14 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 15 | float4 vertex_main_inner(depth2d<float, access::sample> tint_symbol_3, device float* const tint_symbol_4) { |
| 16 | textureLoad_19cf87(tint_symbol_3, tint_symbol_4); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 17 | return float4(0.0f); |
| 18 | } |
| 19 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 20 | vertex tint_symbol vertex_main(depth2d<float, access::sample> tint_symbol_5 [[texture(0)]], device float* tint_symbol_6 [[buffer(0)]]) { |
| 21 | float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 22 | tint_symbol wrapper_result = {}; |
| 23 | wrapper_result.value = inner_result; |
| 24 | return wrapper_result; |
| 25 | } |
| 26 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 27 | fragment void fragment_main(depth2d<float, access::sample> tint_symbol_7 [[texture(0)]], device float* tint_symbol_8 [[buffer(0)]]) { |
| 28 | textureLoad_19cf87(tint_symbol_7, tint_symbol_8); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 29 | return; |
| 30 | } |
| 31 | |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 32 | kernel void compute_main(depth2d<float, access::sample> tint_symbol_9 [[texture(0)]], device float* tint_symbol_10 [[buffer(0)]]) { |
| 33 | textureLoad_19cf87(tint_symbol_9, tint_symbol_10); |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 34 | return; |
| 35 | } |
| 36 | |