| 1 |
;; Test for multiple entry points with the same execution model. |
| 2 |
OpCapability Shader |
| 3 |
%1 = OpExtInstImport "GLSL.std.450" |
| 4 |
OpMemoryModel Logical GLSL450 |
| 5 |
OpEntryPoint Vertex %4 "main1" %8 %10 |
| 6 |
OpEntryPoint Vertex %12 "main2" %13 %14 %15 |
| 7 |
OpSource ESSL 310 |
| 8 |
OpName %4 "main1" |
| 9 |
OpName %12 "main2" |
| 10 |
OpName %8 "v" |
| 11 |
OpName %10 "a" |
| 12 |
OpName %13 "v" |
| 13 |
OpName %14 "a" |
| 14 |
OpName %15 "b" |
| 15 |
OpDecorate %8 Location 0 |
| 16 |
OpDecorate %10 Location 0 |
| 17 |
OpDecorate %13 Location 0 |
| 18 |
OpDecorate %14 Location 0 |
| 19 |
OpDecorate %15 Location 1 |
| 20 |
%2 = OpTypeVoid |
| 21 |
%3 = OpTypeFunction %2 |
| 22 |
%6 = OpTypeFloat 32 |
| 23 |
|
| 24 |
%7 = OpTypePointer Output %6 |
| 25 |
%9 = OpTypePointer Input %6 |
| 26 |
%8 = OpVariable %7 Output |
| 27 |
%10 = OpVariable %9 Input |
| 28 |
%13 = OpVariable %7 Output |
| 29 |
%14 = OpVariable %9 Input |
| 30 |
%15 = OpVariable %9 Input |
| 31 |
|
| 32 |
%4 = OpFunction %2 None %3 |
| 33 |
%5 = OpLabel |
| 34 |
%11 = OpLoad %6 %10 |
| 35 |
OpStore %8 %11 |
| 36 |
OpReturn |
| 37 |
OpFunctionEnd |
| 38 |
|
| 39 |
%12 = OpFunction %2 None %3 |
| 40 |
%16 = OpLabel |
| 41 |
%17 = OpLoad %6 %14 |
| 42 |
%18 = OpLoad %6 %15 |
| 43 |
%19 = OpFAdd %6 %17 %18 |
| 44 |
OpStore %13 %19 |
| 45 |
OpReturn |
| 46 |
OpFunctionEnd |