| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 30 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %str "str" |
| OpMemberName %str 0 "i" |
| OpName %P "P" |
| OpName %func_F_X "func_F_X" |
| OpName %pointer_base "pointer_base" |
| OpName %pointer_indices "pointer_indices" |
| OpName %main "main" |
| OpMemberDecorate %str 0 Offset 0 |
| OpDecorate %_arr_str_uint_4 ArrayStride 4 |
| OpDecorate %_arr_uint_uint_1 ArrayStride 4 |
| %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 |
| %9 = OpTypeFunction %str %_ptr_Private__arr_str_uint_4 %_arr_uint_uint_1 |
| %17 = OpConstantNull %int |
| %_ptr_Private_str = OpTypePointer Private %str |
| %void = OpTypeVoid |
| %22 = OpTypeFunction %void |
| %uint_2 = OpConstant %uint 2 |
| %29 = OpConstantComposite %_arr_uint_uint_1 %uint_2 |
| %func_F_X = OpFunction %str None %9 |
| %pointer_base = OpFunctionParameter %_ptr_Private__arr_str_uint_4 |
| %pointer_indices = OpFunctionParameter %_arr_uint_uint_1 |
| %15 = OpLabel |
| %18 = OpCompositeExtract %uint %pointer_indices 0 |
| %20 = OpAccessChain %_ptr_Private_str %pointer_base %18 |
| %21 = OpLoad %str %20 |
| OpReturnValue %21 |
| OpFunctionEnd |
| %main = OpFunction %void None %22 |
| %25 = OpLabel |
| %26 = OpFunctionCall %str %func_F_X %P %29 |
| OpReturn |
| OpFunctionEnd |