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