James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 2 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 3 | using namespace metal; |
| 4 | void textureNumLayers_6da0eb(texture2d_array<float, access::read_write> tint_symbol_1, device uint* const tint_symbol_2) { |
| 5 | uint res = tint_symbol_1.get_array_size(); |
| 6 | *(tint_symbol_2) = res; |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 7 | } |
| 8 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 9 | struct tint_symbol { |
| 10 | float4 value [[position]]; |
| 11 | }; |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 12 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 13 | float4 vertex_main_inner(texture2d_array<float, access::read_write> tint_symbol_3, device uint* const tint_symbol_4) { |
| 14 | textureNumLayers_6da0eb(tint_symbol_3, tint_symbol_4); |
| 15 | return float4(0.0f); |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 16 | } |
| 17 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 18 | vertex tint_symbol vertex_main(texture2d_array<float, access::read_write> tint_symbol_5 [[texture(0)]], device uint* tint_symbol_6 [[buffer(0)]]) { |
| 19 | float4 const inner_result = vertex_main_inner(tint_symbol_5, tint_symbol_6); |
| 20 | tint_symbol wrapper_result = {}; |
| 21 | wrapper_result.value = inner_result; |
| 22 | return wrapper_result; |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 23 | } |
| 24 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 25 | fragment void fragment_main(texture2d_array<float, access::read_write> tint_symbol_7 [[texture(0)]], device uint* tint_symbol_8 [[buffer(0)]]) { |
| 26 | textureNumLayers_6da0eb(tint_symbol_7, tint_symbol_8); |
| 27 | return; |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 28 | } |
| 29 | |
James Price | 05c83963 | 2023-08-11 13:55:52 +0000 | [diff] [blame] | 30 | kernel void compute_main(texture2d_array<float, access::read_write> tint_symbol_9 [[texture(0)]], device uint* tint_symbol_10 [[buffer(0)]]) { |
| 31 | textureNumLayers_6da0eb(tint_symbol_9, tint_symbol_10); |
| 32 | return; |
| 33 | } |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 34 | |