| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 28 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %f "f" |
| OpName %a "a" |
| OpName %i "i" |
| OpName %unused_entry_point "unused_entry_point" |
| OpDecorate %_arr_int_uint_8 ArrayStride 4 |
| %int = OpTypeInt 32 1 |
| %3 = OpTypeFunction %int |
| %uint = OpTypeInt 32 0 |
| %uint_8 = OpConstant %uint 8 |
| %_arr_int_uint_8 = OpTypeArray %int %uint_8 |
| %int_1 = OpConstant %int 1 |
| %int_2 = OpConstant %int 2 |
| %int_3 = OpConstant %int 3 |
| %int_4 = OpConstant %int 4 |
| %int_5 = OpConstant %int 5 |
| %int_6 = OpConstant %int 6 |
| %int_7 = OpConstant %int 7 |
| %int_8 = OpConstant %int 8 |
| %a = OpConstantComposite %_arr_int_uint_8 %int_1 %int_2 %int_3 %int_4 %int_5 %int_6 %int_7 %int_8 |
| %_ptr_Function__arr_int_uint_8 = OpTypePointer Function %_arr_int_uint_8 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %void = OpTypeVoid |
| %26 = OpTypeFunction %void |
| %f = OpFunction %int None %3 |
| %4 = OpLabel |
| %17 = OpVariable %_ptr_Function__arr_int_uint_8 Function |
| %i = OpVariable %_ptr_Function_int Function |
| OpStore %17 %a |
| OpStore %i %int_1 |
| %21 = OpLoad %int %i None |
| %22 = OpAccessChain %_ptr_Function_int %17 %21 |
| %23 = OpLoad %int %22 None |
| OpReturnValue %23 |
| OpFunctionEnd |
| %unused_entry_point = OpFunction %void None %26 |
| %27 = OpLabel |
| OpReturn |
| OpFunctionEnd |