| 1 |
;; Don't forget to map between source and destination ids when grouping functions by return type. |
| 2 |
OpCapability Shader |
| 3 |
OpCapability Linkage |
| 4 |
OpMemoryModel Logical GLSL450 |
| 5 |
%void = OpTypeVoid |
| 6 |
%2 = OpTypeInt 32 0 |
| 7 |
%1 = OpTypeInt 32 1 |
| 8 |
|
| 9 |
%fn_uint = OpTypeFunction %2 |
| 10 |
%fn_int = OpTypeFunction %1 |
| 11 |
|
| 12 |
%uint_42 = OpConstant %2 42 |
| 13 |
%int_1729 = OpConstant %1 1729 |
| 14 |
|
| 15 |
%f = OpFunction %2 None %fn_uint |
| 16 |
%f_prologue = OpLabel |
| 17 |
OpReturnValue %uint_42 |
| 18 |
OpFunctionEnd |
| 19 |
|
| 20 |
%g = OpFunction %1 None %fn_int |
| 21 |
%g_prologue = OpLabel |
| 22 |
OpReturnValue %int_1729 |
| 23 |
OpFunctionEnd |