| #include <metal_stdlib> | |
| using namespace metal; | |
| struct S { | |
| /* 0x0000 */ array<int, 1> a; | |
| }; | |
| struct tint_immediate_data_struct { | |
| /* 0x0000 */ uint tint_non_constant_zero; | |
| /* 0x0004 */ array<int8_t, 2044> tint_pad; | |
| /* 0x0800 */ array<uint, 1> tint_storage_buffer_sizes; | |
| }; | |
| struct tint_module_vars_struct { | |
| const device S* G; | |
| const constant tint_immediate_data_struct* tint_immediate_data; | |
| }; | |
| struct tint_array_lengths_struct { | |
| uint tint_array_length_0_0; | |
| }; | |
| [[max_total_threads_per_threadgroup(1)]] | |
| kernel void v(const device S* G [[buffer(0)]], const constant tint_immediate_data_struct* tint_immediate_data [[buffer(30)]]) { | |
| tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.G=G, .tint_immediate_data=tint_immediate_data}; | |
| const device S* const p = tint_module_vars.G; | |
| const device S* const p2 = p; | |
| const device array<int, 1>* const p3 = (&(*p).a); | |
| uint const l1 = tint_array_lengths_struct{.tint_array_length_0_0=(((*tint_module_vars.tint_immediate_data).tint_storage_buffer_sizes[0u] - 0u) / 4u)}.tint_array_length_0_0; | |
| } |