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; |
Natalie Chouinard | 61f763c | 2024-06-26 15:36:52 +0000 | [diff] [blame] | 4 | uint textureNumLayers_54a654(texture2d_array<int, access::read_write> tint_symbol) { |
| 5 | uint res = tint_symbol.get_array_size(); |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 6 | return res; |
James Price | 503e017 | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 7 | } |
| 8 | |
Natalie Chouinard | 61f763c | 2024-06-26 15:36:52 +0000 | [diff] [blame] | 9 | fragment void fragment_main(device uint* tint_symbol_1 [[buffer(0)]], texture2d_array<int, access::read_write> tint_symbol_2 [[texture(0)]]) { |
| 10 | *(tint_symbol_1) = textureNumLayers_54a654(tint_symbol_2); |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 11 | return; |
| 12 | } |
| 13 | |
Natalie Chouinard | 61f763c | 2024-06-26 15:36:52 +0000 | [diff] [blame] | 14 | kernel void compute_main(device uint* tint_symbol_3 [[buffer(0)]], texture2d_array<int, access::read_write> tint_symbol_4 [[texture(0)]]) { |
| 15 | *(tint_symbol_3) = textureNumLayers_54a654(tint_symbol_4); |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 16 | return; |
| 17 | } |
| 18 | |