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