| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 0 | |
| ; Bound: 22 | |
| ; 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 %func_F_i "func_F_i" | |
| OpName %pointer "pointer" | |
| OpName %main "main" | |
| OpName %F "F" | |
| OpMemberDecorate %str 0 Offset 0 | |
| %int = OpTypeInt 32 1 | |
| %str = OpTypeStruct %int | |
| %_ptr_Function_str = OpTypePointer Function %str | |
| %1 = OpTypeFunction %int %_ptr_Function_str | |
| %uint = OpTypeInt 32 0 | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_Function_int = OpTypePointer Function %int | |
| %void = OpTypeVoid | |
| %14 = OpTypeFunction %void | |
| %19 = OpConstantNull %str | |
| %func_F_i = OpFunction %int None %1 | |
| %pointer = OpFunctionParameter %_ptr_Function_str | |
| %7 = OpLabel | |
| %12 = OpAccessChain %_ptr_Function_int %pointer %uint_0 | |
| %13 = OpLoad %int %12 | |
| OpReturnValue %13 | |
| OpFunctionEnd | |
| %main = OpFunction %void None %14 | |
| %17 = OpLabel | |
| %F = OpVariable %_ptr_Function_str Function %19 | |
| %20 = OpFunctionCall %int %func_F_i %F | |
| OpReturn | |
| OpFunctionEnd |