blob: 018df464315eeb99200330feb1c43e9eb251450b [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;
}