blob: f39cf807090e27d9446d4da4dd9b247fb56432ea [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct SSBO {
float2x2 m;
};
struct tint_module_vars_struct {
device SSBO* ssbo;
};
kernel void f(device SSBO* ssbo [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.ssbo=ssbo};
float2x2 const v = (*tint_module_vars.ssbo).m;
(*tint_module_vars.ssbo).m = v;
}