| #include <metal_stdlib> |
| using namespace metal; |
| |
| struct tint_module_vars_struct { |
| texture2d_ms<float, access::read> t_f; |
| texture2d_ms<int, access::read> t_i; |
| texture2d_ms<uint, access::read> t_u; |
| }; |
| |
| kernel void tint_symbol(texture2d_ms<float, access::read> t_f [[texture(0)]], texture2d_ms<int, access::read> t_i [[texture(1)]], texture2d_ms<uint, access::read> 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 = tint_module_vars.t_f.get_width(); |
| uint2 fdims = uint2(v, tint_module_vars.t_f.get_height()); |
| uint const v_1 = tint_module_vars.t_i.get_width(); |
| uint2 idims = uint2(v_1, tint_module_vars.t_i.get_height()); |
| uint const v_2 = tint_module_vars.t_u.get_width(); |
| uint2 udims = uint2(v_2, tint_module_vars.t_u.get_height()); |
| } |