| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 15 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %func "func" |
| OpName %pointer_root "pointer_root" |
| OpName %main "main" |
| OpName %F "F" |
| OpName %r "r" |
| %int = OpTypeInt 32 1 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %5 = OpTypeFunction %int %_ptr_Function_int |
| %void = OpTypeVoid |
| %10 = OpTypeFunction %void |
| %13 = OpConstantNull %int |
| %func = OpFunction %int None %5 |
| %pointer_root = OpFunctionParameter %_ptr_Function_int |
| %6 = OpLabel |
| %7 = OpLoad %int %pointer_root None |
| OpReturnValue %7 |
| OpFunctionEnd |
| %main = OpFunction %void None %10 |
| %11 = OpLabel |
| %F = OpVariable %_ptr_Function_int Function %13 |
| %r = OpFunctionCall %int %func %F |
| OpReturn |
| OpFunctionEnd |