| ; 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" | |
| OpName %value "value" | |
| OpName %pointer_root "pointer_root" | |
| OpName %main "main" | |
| OpName %i "i" | |
| OpName %r "r" | |
| %int = OpTypeInt 32 1 | |
| %_ptr_Function_int = OpTypePointer Function %int | |
| %6 = OpTypeFunction %int %int %_ptr_Function_int | |
| %uint = OpTypeInt 32 0 | |
| %void = OpTypeVoid | |
| %16 = OpTypeFunction %void | |
| %int_123 = OpConstant %int 123 | |
| %func = OpFunction %int None %6 | |
| %value = OpFunctionParameter %int | |
| %pointer_root = OpFunctionParameter %_ptr_Function_int | |
| %7 = OpLabel | |
| %8 = OpLoad %int %pointer_root None | |
| %10 = OpBitcast %uint %value | |
| %11 = OpBitcast %uint %8 | |
| %12 = OpIAdd %uint %10 %11 | |
| %13 = OpBitcast %int %12 | |
| OpReturnValue %13 | |
| OpFunctionEnd | |
| %main = OpFunction %void None %16 | |
| %17 = OpLabel | |
| %i = OpVariable %_ptr_Function_int Function | |
| OpStore %i %int_123 | |
| %20 = OpLoad %int %i None | |
| %r = OpFunctionCall %int %func %20 %i | |
| OpReturn | |
| OpFunctionEnd |