| #include <metal_stdlib> |
| using namespace metal; |
| struct tint_module_vars_struct { |
| const constant half2x3* u; |
| device half2x3* s; |
| }; |
| |
| void tint_store_and_preserve_padding(device half2x3* const target, half2x3 value_param) { |
| (*target)[0u] = value_param[0u]; |
| (*target)[1u] = value_param[1u]; |
| } |
| kernel void tint_symbol(const constant half2x3* u [[buffer(0)]], device half2x3* s [[buffer(1)]]) { |
| tint_module_vars_struct const tint_module_vars = {.u=u, .s=s}; |
| half2x3 const x = (*tint_module_vars.u); |
| tint_store_and_preserve_padding(tint_module_vars.s, x); |
| } |