| #include <metal_stdlib> |
| using namespace metal; |
| |
| struct tint_module_vars_struct { |
| texture3d<float, access::sample> t_f; |
| texture3d<int, access::sample> t_i; |
| texture3d<uint, access::sample> t_u; |
| }; |
| |
| kernel void tint_symbol(texture3d<float, access::sample> t_f [[texture(0)]], texture3d<int, access::sample> t_i [[texture(1)]], texture3d<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); |
| uint const v_2 = tint_module_vars.t_f.get_height(v); |
| uint3 fdims = uint3(v_1, v_2, tint_module_vars.t_f.get_depth(v)); |
| uint const v_3 = uint(1); |
| uint const v_4 = tint_module_vars.t_i.get_width(v_3); |
| uint const v_5 = tint_module_vars.t_i.get_height(v_3); |
| uint3 idims = uint3(v_4, v_5, tint_module_vars.t_i.get_depth(v_3)); |
| uint const v_6 = uint(1); |
| uint const v_7 = tint_module_vars.t_u.get_width(v_6); |
| uint const v_8 = tint_module_vars.t_u.get_height(v_6); |
| uint3 udims = uint3(v_7, v_8, tint_module_vars.t_u.get_depth(v_6)); |
| } |