| 1 |
;; Test where src and dst have a function with different parameter count. |
| 2 |
; SPIR-V |
| 3 |
; Version: 1.0 |
| 4 |
; Generator: Khronos Glslang Reference Front End; 10 |
| 5 |
; Bound: 25 |
| 6 |
; Schema: 0 |
| 7 |
OpCapability Shader |
| 8 |
%1 = OpExtInstImport "GLSL.std.450" |
| 9 |
OpMemoryModel Logical GLSL450 |
| 10 |
OpEntryPoint Fragment %4 "main" %20 |
| 11 |
OpExecutionMode %4 OriginUpperLeft |
| 12 |
OpSource ESSL 320 |
| 13 |
OpName %4 "main" |
| 14 |
OpName %11 "f(vf2;" |
| 15 |
OpName %10 "v" |
| 16 |
OpName %20 "o" |
| 17 |
OpName %23 "param" |
| 18 |
OpDecorate %20 RelaxedPrecision |
| 19 |
OpDecorate %20 Location 0 |
| 20 |
%2 = OpTypeVoid |
| 21 |
%3 = OpTypeFunction %2 |
| 22 |
%6 = OpTypeFloat 32 |
| 23 |
%7 = OpTypeVector %6 2 |
| 24 |
%8 = OpTypePointer Function %7 |
| 25 |
%9 = OpTypeFunction %7 %8 |
| 26 |
%14 = OpConstant %6 0.5 |
| 27 |
%15 = OpConstantComposite %7 %14 %14 |
| 28 |
%19 = OpTypePointer Output %7 |
| 29 |
%20 = OpVariable %19 Output |
| 30 |
%21 = OpConstant %6 0 |
| 31 |
%22 = OpConstantComposite %7 %21 %21 |
| 32 |
%4 = OpFunction %2 None %3 |
| 33 |
%5 = OpLabel |
| 34 |
%23 = OpVariable %8 Function |
| 35 |
OpStore %23 %22 |
| 36 |
%24 = OpFunctionCall %7 %11 %23 |
| 37 |
OpStore %20 %24 |
| 38 |
OpReturn |
| 39 |
OpFunctionEnd |
| 40 |
%11 = OpFunction %7 None %9 |
| 41 |
%10 = OpFunctionParameter %8 |
| 42 |
%12 = OpLabel |
| 43 |
%13 = OpLoad %7 %10 |
| 44 |
%16 = OpFAdd %7 %13 %15 |
| 45 |
OpReturnValue %16 |
| 46 |
OpFunctionEnd |