| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 22 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %func "func" |
| OpMemberName %str 0 "arr" |
| OpName %str "str" |
| OpName %pointer_root "pointer_root" |
| OpName %main "main" |
| OpName %F "F" |
| OpName %r "r" |
| OpDecorate %_arr_int_uint_4 ArrayStride 4 |
| OpMemberDecorate %str 0 Offset 0 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_int_uint_4 = OpTypeArray %int %uint_4 |
| %str = OpTypeStruct %_arr_int_uint_4 |
| %_ptr_Function_str = OpTypePointer Function %str |
| %9 = OpTypeFunction %_arr_int_uint_4 %_ptr_Function_str |
| %_ptr_Function__arr_int_uint_4 = OpTypePointer Function %_arr_int_uint_4 |
| %uint_0 = OpConstant %uint 0 |
| %void = OpTypeVoid |
| %17 = OpTypeFunction %void |
| %20 = OpConstantNull %str |
| %func = OpFunction %_arr_int_uint_4 None %9 |
| %pointer_root = OpFunctionParameter %_ptr_Function_str |
| %10 = OpLabel |
| %11 = OpAccessChain %_ptr_Function__arr_int_uint_4 %pointer_root %uint_0 |
| %14 = OpLoad %_arr_int_uint_4 %11 |
| OpReturnValue %14 |
| OpFunctionEnd |
| %main = OpFunction %void None %17 |
| %18 = OpLabel |
| %F = OpVariable %_ptr_Function_str Function %20 |
| %r = OpFunctionCall %_arr_int_uint_4 %func %F |
| OpReturn |
| OpFunctionEnd |