#include #include using namespace metal; struct B2 { float4 elem2; }; struct C { float4 c; B2 b2; B2 b2_array[4]; }; struct B1 { float4 elem1; }; struct A { float4 a; B1 b1; B1 b1_array[4]; }; struct _10 { A a_block; C c_block; }; kernel void main0(device _10& _4 [[buffer(0)]]) { A _24; _24.a = _4.c_block.c; _24.b1.elem1 = _4.c_block.b2.elem2; _24.b1_array[0].elem1 = _4.c_block.b2_array[0].elem2; _24.b1_array[1].elem1 = _4.c_block.b2_array[1].elem2; _24.b1_array[2].elem1 = _4.c_block.b2_array[2].elem2; _24.b1_array[3].elem1 = _4.c_block.b2_array[3].elem2; _4.a_block = _24; }