blob: 52c0a3ad6b69dc5a6cfc235537faa53723c3fa5d [file] [log] [blame]
Ben Clayton13f08902022-10-26 18:36:44 +00001#include <metal_stdlib>
2
3using namespace metal;
Natalie Chouinard61f763c2024-06-26 15:36:52 +00004uint2 textureDimensions_674058(texture2d_array<int, access::write> tint_symbol) {
5 uint2 res = uint2(tint_symbol.get_width(), tint_symbol.get_height());
Natalie Chouinarde9027182024-06-13 18:50:19 +00006 return res;
Ben Clayton13f08902022-10-26 18:36:44 +00007}
8
Natalie Chouinard61f763c2024-06-26 15:36:52 +00009fragment void fragment_main(device uint2* tint_symbol_1 [[buffer(0)]], texture2d_array<int, access::write> tint_symbol_2 [[texture(0)]]) {
10 *(tint_symbol_1) = textureDimensions_674058(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 uint2* tint_symbol_3 [[buffer(0)]], texture2d_array<int, access::write> tint_symbol_4 [[texture(0)]]) {
15 *(tint_symbol_3) = textureDimensions_674058(tint_symbol_4);
Natalie Chouinarde9027182024-06-13 18:50:19 +000016 return;
17}
18