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