| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 26 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpMemberName %str 0 "i" | |
| OpName %str "str" | |
| OpName %P "P" | |
| OpName %func "func" | |
| OpName %pointer_indices "pointer_indices" | |
| OpName %main "main" | |
| OpName %r "r" | |
| %int = OpTypeInt 32 1 | |
| %str = OpTypeStruct %int | |
| %uint = OpTypeInt 32 0 | |
| %uint_4 = OpConstant %uint 4 | |
| %_arr_str_uint_4 = OpTypeArray %str %uint_4 | |
| %_ptr_Private__arr_str_uint_4 = OpTypePointer Private %_arr_str_uint_4 | |
| %8 = OpConstantNull %_arr_str_uint_4 | |
| %P = OpVariable %_ptr_Private__arr_str_uint_4 Private %8 | |
| %uint_1 = OpConstant %uint 1 | |
| %_arr_uint_uint_1 = OpTypeArray %uint %uint_1 | |
| %13 = OpTypeFunction %str %_arr_uint_uint_1 | |
| %_ptr_Private_str = OpTypePointer Private %str | |
| %void = OpTypeVoid | |
| %21 = OpTypeFunction %void | |
| %uint_2 = OpConstant %uint 2 | |
| %func = OpFunction %str None %13 | |
| %pointer_indices = OpFunctionParameter %_arr_uint_uint_1 | |
| %14 = OpLabel | |
| %15 = OpCompositeExtract %uint %pointer_indices 0 | |
| %16 = OpAccessChain %_ptr_Private_str %P %15 | |
| %18 = OpLoad %str %16 None | |
| OpReturnValue %18 | |
| OpFunctionEnd | |
| %main = OpFunction %void None %21 | |
| %22 = OpLabel | |
| %23 = OpCompositeConstruct %_arr_uint_uint_1 %uint_2 | |
| %r = OpFunctionCall %str %func %23 | |
| OpReturn | |
| OpFunctionEnd |