| #include <metal_stdlib> |
| using namespace metal; |
| struct tint_module_vars_struct { |
| texture2d_array<float, access::sample> t_f; |
| texture2d_array<int, access::sample> t_i; |
| texture2d_array<uint, access::sample> t_u; |
| }; |
| |
| kernel void tint_symbol(texture2d_array<float, access::sample> t_f [[texture(0)]], texture2d_array<int, access::sample> t_i [[texture(1)]], texture2d_array<uint, access::sample> t_u [[texture(2)]]) { |
| tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.t_f=t_f, .t_i=t_i, .t_u=t_u}; |
| uint const v = uint(1); |
| uint const v_1 = tint_module_vars.t_f.get_width(v); |
| uint2 fdims = uint2(v_1, tint_module_vars.t_f.get_height(v)); |
| uint const v_2 = uint(1); |
| uint const v_3 = tint_module_vars.t_i.get_width(v_2); |
| uint2 idims = uint2(v_3, tint_module_vars.t_i.get_height(v_2)); |
| uint const v_4 = uint(1); |
| uint const v_5 = tint_module_vars.t_u.get_width(v_4); |
| uint2 udims = uint2(v_5, tint_module_vars.t_u.get_height(v_4)); |
| } |