blob: b01712d4fe1370f0883c0e592e3e85c983747aae [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct Uniforms {
/* 0x0000 */ uint i;
/* 0x0004 */ uint j;
};
struct InnerS {
int v;
};
struct tint_array_wrapper {
InnerS arr[8];
};
struct S1 {
tint_array_wrapper a2;
};
struct tint_array_wrapper_1 {
S1 arr[8];
};
struct OuterS {
tint_array_wrapper_1 a1;
};
uint getNextIndex(thread uint* const tint_symbol_1) {
*(tint_symbol_1) = (*(tint_symbol_1) + 1u);
return *(tint_symbol_1);
}
kernel void tint_symbol(const constant Uniforms* tint_symbol_3 [[buffer(0)]]) {
thread uint tint_symbol_2 = 0u;
InnerS v = {};
OuterS s = {};
s.a1.arr[getNextIndex(&(tint_symbol_2))].a2.arr[(*(tint_symbol_3)).j] = v;
return;
}