blob: fd0cc59558d61d1fde06553bbed1d6b05c927f6c [file] [log] [blame]
James Price05c839632023-08-11 13:55:52 +00001#include <metal_stdlib>
James Price503e0172023-08-11 00:45:54 +00002
James Price05c839632023-08-11 13:55:52 +00003using namespace metal;
Natalie Chouinard61f763c2024-06-26 15:36:52 +00004uint textureNumLayers_54a654(texture2d_array<int, access::read_write> tint_symbol) {
5 uint res = tint_symbol.get_array_size();
Natalie Chouinarde9027182024-06-13 18:50:19 +00006 return res;
James Price503e0172023-08-11 00:45:54 +00007}
8
Natalie Chouinard61f763c2024-06-26 15:36:52 +00009fragment 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 Chouinarde9027182024-06-13 18:50:19 +000011 return;
12}
13
Natalie Chouinard61f763c2024-06-26 15:36:52 +000014kernel 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 Chouinarde9027182024-06-13 18:50:19 +000016 return;
17}
18