1 /* 2 * Copyright (c) 2015-2016 The Khronos Group Inc. 3 * Copyright (c) 2015-2016 Valve Corporation 4 * Copyright (c) 2015-2016 LunarG, Inc. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 * Author: Jon Ashburn <jon@lunarg.com> 19 * Author: Lenny Komow <lenny@lunarg.com> 20 */ 21 22 #include "loader.h" 23 #if defined(__GNUC__) && !defined(__clang__) 24 #pragma GCC optimize(3) // force gcc to use tail-calls 25 #endif 26 27 // Clang-format does not understand macros. 28 // clang-format off 29 30 VKAPI_ATTR void VKAPI_CALL vkdev_ext0(VkDevice device); 31 VKAPI_ATTR void VKAPI_CALL vkdev_ext1(VkDevice device); 32 VKAPI_ATTR void VKAPI_CALL vkdev_ext2(VkDevice device); 33 VKAPI_ATTR void VKAPI_CALL vkdev_ext3(VkDevice device); 34 VKAPI_ATTR void VKAPI_CALL vkdev_ext4(VkDevice device); 35 VKAPI_ATTR void VKAPI_CALL vkdev_ext5(VkDevice device); 36 VKAPI_ATTR void VKAPI_CALL vkdev_ext6(VkDevice device); 37 VKAPI_ATTR void VKAPI_CALL vkdev_ext7(VkDevice device); 38 VKAPI_ATTR void VKAPI_CALL vkdev_ext8(VkDevice device); 39 VKAPI_ATTR void VKAPI_CALL vkdev_ext9(VkDevice device); 40 VKAPI_ATTR void VKAPI_CALL vkdev_ext10(VkDevice device); 41 VKAPI_ATTR void VKAPI_CALL vkdev_ext11(VkDevice device); 42 VKAPI_ATTR void VKAPI_CALL vkdev_ext12(VkDevice device); 43 VKAPI_ATTR void VKAPI_CALL vkdev_ext13(VkDevice device); 44 VKAPI_ATTR void VKAPI_CALL vkdev_ext14(VkDevice device); 45 VKAPI_ATTR void VKAPI_CALL vkdev_ext15(VkDevice device); 46 VKAPI_ATTR void VKAPI_CALL vkdev_ext16(VkDevice device); 47 VKAPI_ATTR void VKAPI_CALL vkdev_ext17(VkDevice device); 48 VKAPI_ATTR void VKAPI_CALL vkdev_ext18(VkDevice device); 49 VKAPI_ATTR void VKAPI_CALL vkdev_ext19(VkDevice device); 50 VKAPI_ATTR void VKAPI_CALL vkdev_ext20(VkDevice device); 51 VKAPI_ATTR void VKAPI_CALL vkdev_ext21(VkDevice device); 52 VKAPI_ATTR void VKAPI_CALL vkdev_ext22(VkDevice device); 53 VKAPI_ATTR void VKAPI_CALL vkdev_ext23(VkDevice device); 54 VKAPI_ATTR void VKAPI_CALL vkdev_ext24(VkDevice device); 55 VKAPI_ATTR void VKAPI_CALL vkdev_ext25(VkDevice device); 56 VKAPI_ATTR void VKAPI_CALL vkdev_ext26(VkDevice device); 57 VKAPI_ATTR void VKAPI_CALL vkdev_ext27(VkDevice device); 58 VKAPI_ATTR void VKAPI_CALL vkdev_ext28(VkDevice device); 59 VKAPI_ATTR void VKAPI_CALL vkdev_ext29(VkDevice device); 60 VKAPI_ATTR void VKAPI_CALL vkdev_ext30(VkDevice device); 61 VKAPI_ATTR void VKAPI_CALL vkdev_ext31(VkDevice device); 62 VKAPI_ATTR void VKAPI_CALL vkdev_ext32(VkDevice device); 63 VKAPI_ATTR void VKAPI_CALL vkdev_ext33(VkDevice device); 64 VKAPI_ATTR void VKAPI_CALL vkdev_ext34(VkDevice device); 65 VKAPI_ATTR void VKAPI_CALL vkdev_ext35(VkDevice device); 66 VKAPI_ATTR void VKAPI_CALL vkdev_ext36(VkDevice device); 67 VKAPI_ATTR void VKAPI_CALL vkdev_ext37(VkDevice device); 68 VKAPI_ATTR void VKAPI_CALL vkdev_ext38(VkDevice device); 69 VKAPI_ATTR void VKAPI_CALL vkdev_ext39(VkDevice device); 70 VKAPI_ATTR void VKAPI_CALL vkdev_ext40(VkDevice device); 71 VKAPI_ATTR void VKAPI_CALL vkdev_ext41(VkDevice device); 72 VKAPI_ATTR void VKAPI_CALL vkdev_ext42(VkDevice device); 73 VKAPI_ATTR void VKAPI_CALL vkdev_ext43(VkDevice device); 74 VKAPI_ATTR void VKAPI_CALL vkdev_ext44(VkDevice device); 75 VKAPI_ATTR void VKAPI_CALL vkdev_ext45(VkDevice device); 76 VKAPI_ATTR void VKAPI_CALL vkdev_ext46(VkDevice device); 77 VKAPI_ATTR void VKAPI_CALL vkdev_ext47(VkDevice device); 78 VKAPI_ATTR void VKAPI_CALL vkdev_ext48(VkDevice device); 79 VKAPI_ATTR void VKAPI_CALL vkdev_ext49(VkDevice device); 80 VKAPI_ATTR void VKAPI_CALL vkdev_ext50(VkDevice device); 81 VKAPI_ATTR void VKAPI_CALL vkdev_ext51(VkDevice device); 82 VKAPI_ATTR void VKAPI_CALL vkdev_ext52(VkDevice device); 83 VKAPI_ATTR void VKAPI_CALL vkdev_ext53(VkDevice device); 84 VKAPI_ATTR void VKAPI_CALL vkdev_ext54(VkDevice device); 85 VKAPI_ATTR void VKAPI_CALL vkdev_ext55(VkDevice device); 86 VKAPI_ATTR void VKAPI_CALL vkdev_ext56(VkDevice device); 87 VKAPI_ATTR void VKAPI_CALL vkdev_ext57(VkDevice device); 88 VKAPI_ATTR void VKAPI_CALL vkdev_ext58(VkDevice device); 89 VKAPI_ATTR void VKAPI_CALL vkdev_ext59(VkDevice device); 90 VKAPI_ATTR void VKAPI_CALL vkdev_ext60(VkDevice device); 91 VKAPI_ATTR void VKAPI_CALL vkdev_ext61(VkDevice device); 92 VKAPI_ATTR void VKAPI_CALL vkdev_ext62(VkDevice device); 93 VKAPI_ATTR void VKAPI_CALL vkdev_ext63(VkDevice device); 94 VKAPI_ATTR void VKAPI_CALL vkdev_ext64(VkDevice device); 95 VKAPI_ATTR void VKAPI_CALL vkdev_ext65(VkDevice device); 96 VKAPI_ATTR void VKAPI_CALL vkdev_ext66(VkDevice device); 97 VKAPI_ATTR void VKAPI_CALL vkdev_ext67(VkDevice device); 98 VKAPI_ATTR void VKAPI_CALL vkdev_ext68(VkDevice device); 99 VKAPI_ATTR void VKAPI_CALL vkdev_ext69(VkDevice device); 100 VKAPI_ATTR void VKAPI_CALL vkdev_ext70(VkDevice device); 101 VKAPI_ATTR void VKAPI_CALL vkdev_ext71(VkDevice device); 102 VKAPI_ATTR void VKAPI_CALL vkdev_ext72(VkDevice device); 103 VKAPI_ATTR void VKAPI_CALL vkdev_ext73(VkDevice device); 104 VKAPI_ATTR void VKAPI_CALL vkdev_ext74(VkDevice device); 105 VKAPI_ATTR void VKAPI_CALL vkdev_ext75(VkDevice device); 106 VKAPI_ATTR void VKAPI_CALL vkdev_ext76(VkDevice device); 107 VKAPI_ATTR void VKAPI_CALL vkdev_ext77(VkDevice device); 108 VKAPI_ATTR void VKAPI_CALL vkdev_ext78(VkDevice device); 109 VKAPI_ATTR void VKAPI_CALL vkdev_ext79(VkDevice device); 110 VKAPI_ATTR void VKAPI_CALL vkdev_ext80(VkDevice device); 111 VKAPI_ATTR void VKAPI_CALL vkdev_ext81(VkDevice device); 112 VKAPI_ATTR void VKAPI_CALL vkdev_ext82(VkDevice device); 113 VKAPI_ATTR void VKAPI_CALL vkdev_ext83(VkDevice device); 114 VKAPI_ATTR void VKAPI_CALL vkdev_ext84(VkDevice device); 115 VKAPI_ATTR void VKAPI_CALL vkdev_ext85(VkDevice device); 116 VKAPI_ATTR void VKAPI_CALL vkdev_ext86(VkDevice device); 117 VKAPI_ATTR void VKAPI_CALL vkdev_ext87(VkDevice device); 118 VKAPI_ATTR void VKAPI_CALL vkdev_ext88(VkDevice device); 119 VKAPI_ATTR void VKAPI_CALL vkdev_ext89(VkDevice device); 120 VKAPI_ATTR void VKAPI_CALL vkdev_ext90(VkDevice device); 121 VKAPI_ATTR void VKAPI_CALL vkdev_ext91(VkDevice device); 122 VKAPI_ATTR void VKAPI_CALL vkdev_ext92(VkDevice device); 123 VKAPI_ATTR void VKAPI_CALL vkdev_ext93(VkDevice device); 124 VKAPI_ATTR void VKAPI_CALL vkdev_ext94(VkDevice device); 125 VKAPI_ATTR void VKAPI_CALL vkdev_ext95(VkDevice device); 126 VKAPI_ATTR void VKAPI_CALL vkdev_ext96(VkDevice device); 127 VKAPI_ATTR void VKAPI_CALL vkdev_ext97(VkDevice device); 128 VKAPI_ATTR void VKAPI_CALL vkdev_ext98(VkDevice device); 129 VKAPI_ATTR void VKAPI_CALL vkdev_ext99(VkDevice device); 130 VKAPI_ATTR void VKAPI_CALL vkdev_ext100(VkDevice device); 131 VKAPI_ATTR void VKAPI_CALL vkdev_ext101(VkDevice device); 132 VKAPI_ATTR void VKAPI_CALL vkdev_ext102(VkDevice device); 133 VKAPI_ATTR void VKAPI_CALL vkdev_ext103(VkDevice device); 134 VKAPI_ATTR void VKAPI_CALL vkdev_ext104(VkDevice device); 135 VKAPI_ATTR void VKAPI_CALL vkdev_ext105(VkDevice device); 136 VKAPI_ATTR void VKAPI_CALL vkdev_ext106(VkDevice device); 137 VKAPI_ATTR void VKAPI_CALL vkdev_ext107(VkDevice device); 138 VKAPI_ATTR void VKAPI_CALL vkdev_ext108(VkDevice device); 139 VKAPI_ATTR void VKAPI_CALL vkdev_ext109(VkDevice device); 140 VKAPI_ATTR void VKAPI_CALL vkdev_ext110(VkDevice device); 141 VKAPI_ATTR void VKAPI_CALL vkdev_ext111(VkDevice device); 142 VKAPI_ATTR void VKAPI_CALL vkdev_ext112(VkDevice device); 143 VKAPI_ATTR void VKAPI_CALL vkdev_ext113(VkDevice device); 144 VKAPI_ATTR void VKAPI_CALL vkdev_ext114(VkDevice device); 145 VKAPI_ATTR void VKAPI_CALL vkdev_ext115(VkDevice device); 146 VKAPI_ATTR void VKAPI_CALL vkdev_ext116(VkDevice device); 147 VKAPI_ATTR void VKAPI_CALL vkdev_ext117(VkDevice device); 148 VKAPI_ATTR void VKAPI_CALL vkdev_ext118(VkDevice device); 149 VKAPI_ATTR void VKAPI_CALL vkdev_ext119(VkDevice device); 150 VKAPI_ATTR void VKAPI_CALL vkdev_ext120(VkDevice device); 151 VKAPI_ATTR void VKAPI_CALL vkdev_ext121(VkDevice device); 152 VKAPI_ATTR void VKAPI_CALL vkdev_ext122(VkDevice device); 153 VKAPI_ATTR void VKAPI_CALL vkdev_ext123(VkDevice device); 154 VKAPI_ATTR void VKAPI_CALL vkdev_ext124(VkDevice device); 155 VKAPI_ATTR void VKAPI_CALL vkdev_ext125(VkDevice device); 156 VKAPI_ATTR void VKAPI_CALL vkdev_ext126(VkDevice device); 157 VKAPI_ATTR void VKAPI_CALL vkdev_ext127(VkDevice device); 158 VKAPI_ATTR void VKAPI_CALL vkdev_ext128(VkDevice device); 159 VKAPI_ATTR void VKAPI_CALL vkdev_ext129(VkDevice device); 160 VKAPI_ATTR void VKAPI_CALL vkdev_ext130(VkDevice device); 161 VKAPI_ATTR void VKAPI_CALL vkdev_ext131(VkDevice device); 162 VKAPI_ATTR void VKAPI_CALL vkdev_ext132(VkDevice device); 163 VKAPI_ATTR void VKAPI_CALL vkdev_ext133(VkDevice device); 164 VKAPI_ATTR void VKAPI_CALL vkdev_ext134(VkDevice device); 165 VKAPI_ATTR void VKAPI_CALL vkdev_ext135(VkDevice device); 166 VKAPI_ATTR void VKAPI_CALL vkdev_ext136(VkDevice device); 167 VKAPI_ATTR void VKAPI_CALL vkdev_ext137(VkDevice device); 168 VKAPI_ATTR void VKAPI_CALL vkdev_ext138(VkDevice device); 169 VKAPI_ATTR void VKAPI_CALL vkdev_ext139(VkDevice device); 170 VKAPI_ATTR void VKAPI_CALL vkdev_ext140(VkDevice device); 171 VKAPI_ATTR void VKAPI_CALL vkdev_ext141(VkDevice device); 172 VKAPI_ATTR void VKAPI_CALL vkdev_ext142(VkDevice device); 173 VKAPI_ATTR void VKAPI_CALL vkdev_ext143(VkDevice device); 174 VKAPI_ATTR void VKAPI_CALL vkdev_ext144(VkDevice device); 175 VKAPI_ATTR void VKAPI_CALL vkdev_ext145(VkDevice device); 176 VKAPI_ATTR void VKAPI_CALL vkdev_ext146(VkDevice device); 177 VKAPI_ATTR void VKAPI_CALL vkdev_ext147(VkDevice device); 178 VKAPI_ATTR void VKAPI_CALL vkdev_ext148(VkDevice device); 179 VKAPI_ATTR void VKAPI_CALL vkdev_ext149(VkDevice device); 180 VKAPI_ATTR void VKAPI_CALL vkdev_ext150(VkDevice device); 181 VKAPI_ATTR void VKAPI_CALL vkdev_ext151(VkDevice device); 182 VKAPI_ATTR void VKAPI_CALL vkdev_ext152(VkDevice device); 183 VKAPI_ATTR void VKAPI_CALL vkdev_ext153(VkDevice device); 184 VKAPI_ATTR void VKAPI_CALL vkdev_ext154(VkDevice device); 185 VKAPI_ATTR void VKAPI_CALL vkdev_ext155(VkDevice device); 186 VKAPI_ATTR void VKAPI_CALL vkdev_ext156(VkDevice device); 187 VKAPI_ATTR void VKAPI_CALL vkdev_ext157(VkDevice device); 188 VKAPI_ATTR void VKAPI_CALL vkdev_ext158(VkDevice device); 189 VKAPI_ATTR void VKAPI_CALL vkdev_ext159(VkDevice device); 190 VKAPI_ATTR void VKAPI_CALL vkdev_ext160(VkDevice device); 191 VKAPI_ATTR void VKAPI_CALL vkdev_ext161(VkDevice device); 192 VKAPI_ATTR void VKAPI_CALL vkdev_ext162(VkDevice device); 193 VKAPI_ATTR void VKAPI_CALL vkdev_ext163(VkDevice device); 194 VKAPI_ATTR void VKAPI_CALL vkdev_ext164(VkDevice device); 195 VKAPI_ATTR void VKAPI_CALL vkdev_ext165(VkDevice device); 196 VKAPI_ATTR void VKAPI_CALL vkdev_ext166(VkDevice device); 197 VKAPI_ATTR void VKAPI_CALL vkdev_ext167(VkDevice device); 198 VKAPI_ATTR void VKAPI_CALL vkdev_ext168(VkDevice device); 199 VKAPI_ATTR void VKAPI_CALL vkdev_ext169(VkDevice device); 200 VKAPI_ATTR void VKAPI_CALL vkdev_ext170(VkDevice device); 201 VKAPI_ATTR void VKAPI_CALL vkdev_ext171(VkDevice device); 202 VKAPI_ATTR void VKAPI_CALL vkdev_ext172(VkDevice device); 203 VKAPI_ATTR void VKAPI_CALL vkdev_ext173(VkDevice device); 204 VKAPI_ATTR void VKAPI_CALL vkdev_ext174(VkDevice device); 205 VKAPI_ATTR void VKAPI_CALL vkdev_ext175(VkDevice device); 206 VKAPI_ATTR void VKAPI_CALL vkdev_ext176(VkDevice device); 207 VKAPI_ATTR void VKAPI_CALL vkdev_ext177(VkDevice device); 208 VKAPI_ATTR void VKAPI_CALL vkdev_ext178(VkDevice device); 209 VKAPI_ATTR void VKAPI_CALL vkdev_ext179(VkDevice device); 210 VKAPI_ATTR void VKAPI_CALL vkdev_ext180(VkDevice device); 211 VKAPI_ATTR void VKAPI_CALL vkdev_ext181(VkDevice device); 212 VKAPI_ATTR void VKAPI_CALL vkdev_ext182(VkDevice device); 213 VKAPI_ATTR void VKAPI_CALL vkdev_ext183(VkDevice device); 214 VKAPI_ATTR void VKAPI_CALL vkdev_ext184(VkDevice device); 215 VKAPI_ATTR void VKAPI_CALL vkdev_ext185(VkDevice device); 216 VKAPI_ATTR void VKAPI_CALL vkdev_ext186(VkDevice device); 217 VKAPI_ATTR void VKAPI_CALL vkdev_ext187(VkDevice device); 218 VKAPI_ATTR void VKAPI_CALL vkdev_ext188(VkDevice device); 219 VKAPI_ATTR void VKAPI_CALL vkdev_ext189(VkDevice device); 220 VKAPI_ATTR void VKAPI_CALL vkdev_ext190(VkDevice device); 221 VKAPI_ATTR void VKAPI_CALL vkdev_ext191(VkDevice device); 222 VKAPI_ATTR void VKAPI_CALL vkdev_ext192(VkDevice device); 223 VKAPI_ATTR void VKAPI_CALL vkdev_ext193(VkDevice device); 224 VKAPI_ATTR void VKAPI_CALL vkdev_ext194(VkDevice device); 225 VKAPI_ATTR void VKAPI_CALL vkdev_ext195(VkDevice device); 226 VKAPI_ATTR void VKAPI_CALL vkdev_ext196(VkDevice device); 227 VKAPI_ATTR void VKAPI_CALL vkdev_ext197(VkDevice device); 228 VKAPI_ATTR void VKAPI_CALL vkdev_ext198(VkDevice device); 229 VKAPI_ATTR void VKAPI_CALL vkdev_ext199(VkDevice device); 230 VKAPI_ATTR void VKAPI_CALL vkdev_ext200(VkDevice device); 231 VKAPI_ATTR void VKAPI_CALL vkdev_ext201(VkDevice device); 232 VKAPI_ATTR void VKAPI_CALL vkdev_ext202(VkDevice device); 233 VKAPI_ATTR void VKAPI_CALL vkdev_ext203(VkDevice device); 234 VKAPI_ATTR void VKAPI_CALL vkdev_ext204(VkDevice device); 235 VKAPI_ATTR void VKAPI_CALL vkdev_ext205(VkDevice device); 236 VKAPI_ATTR void VKAPI_CALL vkdev_ext206(VkDevice device); 237 VKAPI_ATTR void VKAPI_CALL vkdev_ext207(VkDevice device); 238 VKAPI_ATTR void VKAPI_CALL vkdev_ext208(VkDevice device); 239 VKAPI_ATTR void VKAPI_CALL vkdev_ext209(VkDevice device); 240 VKAPI_ATTR void VKAPI_CALL vkdev_ext210(VkDevice device); 241 VKAPI_ATTR void VKAPI_CALL vkdev_ext211(VkDevice device); 242 VKAPI_ATTR void VKAPI_CALL vkdev_ext212(VkDevice device); 243 VKAPI_ATTR void VKAPI_CALL vkdev_ext213(VkDevice device); 244 VKAPI_ATTR void VKAPI_CALL vkdev_ext214(VkDevice device); 245 VKAPI_ATTR void VKAPI_CALL vkdev_ext215(VkDevice device); 246 VKAPI_ATTR void VKAPI_CALL vkdev_ext216(VkDevice device); 247 VKAPI_ATTR void VKAPI_CALL vkdev_ext217(VkDevice device); 248 VKAPI_ATTR void VKAPI_CALL vkdev_ext218(VkDevice device); 249 VKAPI_ATTR void VKAPI_CALL vkdev_ext219(VkDevice device); 250 VKAPI_ATTR void VKAPI_CALL vkdev_ext220(VkDevice device); 251 VKAPI_ATTR void VKAPI_CALL vkdev_ext221(VkDevice device); 252 VKAPI_ATTR void VKAPI_CALL vkdev_ext222(VkDevice device); 253 VKAPI_ATTR void VKAPI_CALL vkdev_ext223(VkDevice device); 254 VKAPI_ATTR void VKAPI_CALL vkdev_ext224(VkDevice device); 255 VKAPI_ATTR void VKAPI_CALL vkdev_ext225(VkDevice device); 256 VKAPI_ATTR void VKAPI_CALL vkdev_ext226(VkDevice device); 257 VKAPI_ATTR void VKAPI_CALL vkdev_ext227(VkDevice device); 258 VKAPI_ATTR void VKAPI_CALL vkdev_ext228(VkDevice device); 259 VKAPI_ATTR void VKAPI_CALL vkdev_ext229(VkDevice device); 260 VKAPI_ATTR void VKAPI_CALL vkdev_ext230(VkDevice device); 261 VKAPI_ATTR void VKAPI_CALL vkdev_ext231(VkDevice device); 262 VKAPI_ATTR void VKAPI_CALL vkdev_ext232(VkDevice device); 263 VKAPI_ATTR void VKAPI_CALL vkdev_ext233(VkDevice device); 264 VKAPI_ATTR void VKAPI_CALL vkdev_ext234(VkDevice device); 265 VKAPI_ATTR void VKAPI_CALL vkdev_ext235(VkDevice device); 266 VKAPI_ATTR void VKAPI_CALL vkdev_ext236(VkDevice device); 267 VKAPI_ATTR void VKAPI_CALL vkdev_ext237(VkDevice device); 268 VKAPI_ATTR void VKAPI_CALL vkdev_ext238(VkDevice device); 269 VKAPI_ATTR void VKAPI_CALL vkdev_ext239(VkDevice device); 270 VKAPI_ATTR void VKAPI_CALL vkdev_ext240(VkDevice device); 271 VKAPI_ATTR void VKAPI_CALL vkdev_ext241(VkDevice device); 272 VKAPI_ATTR void VKAPI_CALL vkdev_ext242(VkDevice device); 273 VKAPI_ATTR void VKAPI_CALL vkdev_ext243(VkDevice device); 274 VKAPI_ATTR void VKAPI_CALL vkdev_ext244(VkDevice device); 275 VKAPI_ATTR void VKAPI_CALL vkdev_ext245(VkDevice device); 276 VKAPI_ATTR void VKAPI_CALL vkdev_ext246(VkDevice device); 277 VKAPI_ATTR void VKAPI_CALL vkdev_ext247(VkDevice device); 278 VKAPI_ATTR void VKAPI_CALL vkdev_ext248(VkDevice device); 279 VKAPI_ATTR void VKAPI_CALL vkdev_ext249(VkDevice device); 280 loader_get_dev_ext_trampoline(uint32_t index)281void *loader_get_dev_ext_trampoline(uint32_t index) { 282 switch (index) { 283 #define CASE_HANDLE(num) case num: return vkdev_ext##num 284 CASE_HANDLE(0); 285 CASE_HANDLE(1); 286 CASE_HANDLE(2); 287 CASE_HANDLE(3); 288 CASE_HANDLE(4); 289 CASE_HANDLE(5); 290 CASE_HANDLE(6); 291 CASE_HANDLE(7); 292 CASE_HANDLE(8); 293 CASE_HANDLE(9); 294 CASE_HANDLE(10); 295 CASE_HANDLE(11); 296 CASE_HANDLE(12); 297 CASE_HANDLE(13); 298 CASE_HANDLE(14); 299 CASE_HANDLE(15); 300 CASE_HANDLE(16); 301 CASE_HANDLE(17); 302 CASE_HANDLE(18); 303 CASE_HANDLE(19); 304 CASE_HANDLE(20); 305 CASE_HANDLE(21); 306 CASE_HANDLE(22); 307 CASE_HANDLE(23); 308 CASE_HANDLE(24); 309 CASE_HANDLE(25); 310 CASE_HANDLE(26); 311 CASE_HANDLE(27); 312 CASE_HANDLE(28); 313 CASE_HANDLE(29); 314 CASE_HANDLE(30); 315 CASE_HANDLE(31); 316 CASE_HANDLE(32); 317 CASE_HANDLE(33); 318 CASE_HANDLE(34); 319 CASE_HANDLE(35); 320 CASE_HANDLE(36); 321 CASE_HANDLE(37); 322 CASE_HANDLE(38); 323 CASE_HANDLE(39); 324 CASE_HANDLE(40); 325 CASE_HANDLE(41); 326 CASE_HANDLE(42); 327 CASE_HANDLE(43); 328 CASE_HANDLE(44); 329 CASE_HANDLE(45); 330 CASE_HANDLE(46); 331 CASE_HANDLE(47); 332 CASE_HANDLE(48); 333 CASE_HANDLE(49); 334 CASE_HANDLE(50); 335 CASE_HANDLE(51); 336 CASE_HANDLE(52); 337 CASE_HANDLE(53); 338 CASE_HANDLE(54); 339 CASE_HANDLE(55); 340 CASE_HANDLE(56); 341 CASE_HANDLE(57); 342 CASE_HANDLE(58); 343 CASE_HANDLE(59); 344 CASE_HANDLE(60); 345 CASE_HANDLE(61); 346 CASE_HANDLE(62); 347 CASE_HANDLE(63); 348 CASE_HANDLE(64); 349 CASE_HANDLE(65); 350 CASE_HANDLE(66); 351 CASE_HANDLE(67); 352 CASE_HANDLE(68); 353 CASE_HANDLE(69); 354 CASE_HANDLE(70); 355 CASE_HANDLE(71); 356 CASE_HANDLE(72); 357 CASE_HANDLE(73); 358 CASE_HANDLE(74); 359 CASE_HANDLE(75); 360 CASE_HANDLE(76); 361 CASE_HANDLE(77); 362 CASE_HANDLE(78); 363 CASE_HANDLE(79); 364 CASE_HANDLE(80); 365 CASE_HANDLE(81); 366 CASE_HANDLE(82); 367 CASE_HANDLE(83); 368 CASE_HANDLE(84); 369 CASE_HANDLE(85); 370 CASE_HANDLE(86); 371 CASE_HANDLE(87); 372 CASE_HANDLE(88); 373 CASE_HANDLE(89); 374 CASE_HANDLE(90); 375 CASE_HANDLE(91); 376 CASE_HANDLE(92); 377 CASE_HANDLE(93); 378 CASE_HANDLE(94); 379 CASE_HANDLE(95); 380 CASE_HANDLE(96); 381 CASE_HANDLE(97); 382 CASE_HANDLE(98); 383 CASE_HANDLE(99); 384 CASE_HANDLE(100); 385 CASE_HANDLE(101); 386 CASE_HANDLE(102); 387 CASE_HANDLE(103); 388 CASE_HANDLE(104); 389 CASE_HANDLE(105); 390 CASE_HANDLE(106); 391 CASE_HANDLE(107); 392 CASE_HANDLE(108); 393 CASE_HANDLE(109); 394 CASE_HANDLE(110); 395 CASE_HANDLE(111); 396 CASE_HANDLE(112); 397 CASE_HANDLE(113); 398 CASE_HANDLE(114); 399 CASE_HANDLE(115); 400 CASE_HANDLE(116); 401 CASE_HANDLE(117); 402 CASE_HANDLE(118); 403 CASE_HANDLE(119); 404 CASE_HANDLE(120); 405 CASE_HANDLE(121); 406 CASE_HANDLE(122); 407 CASE_HANDLE(123); 408 CASE_HANDLE(124); 409 CASE_HANDLE(125); 410 CASE_HANDLE(126); 411 CASE_HANDLE(127); 412 CASE_HANDLE(128); 413 CASE_HANDLE(129); 414 CASE_HANDLE(130); 415 CASE_HANDLE(131); 416 CASE_HANDLE(132); 417 CASE_HANDLE(133); 418 CASE_HANDLE(134); 419 CASE_HANDLE(135); 420 CASE_HANDLE(136); 421 CASE_HANDLE(137); 422 CASE_HANDLE(138); 423 CASE_HANDLE(139); 424 CASE_HANDLE(140); 425 CASE_HANDLE(141); 426 CASE_HANDLE(142); 427 CASE_HANDLE(143); 428 CASE_HANDLE(144); 429 CASE_HANDLE(145); 430 CASE_HANDLE(146); 431 CASE_HANDLE(147); 432 CASE_HANDLE(148); 433 CASE_HANDLE(149); 434 CASE_HANDLE(150); 435 CASE_HANDLE(151); 436 CASE_HANDLE(152); 437 CASE_HANDLE(153); 438 CASE_HANDLE(154); 439 CASE_HANDLE(155); 440 CASE_HANDLE(156); 441 CASE_HANDLE(157); 442 CASE_HANDLE(158); 443 CASE_HANDLE(159); 444 CASE_HANDLE(160); 445 CASE_HANDLE(161); 446 CASE_HANDLE(162); 447 CASE_HANDLE(163); 448 CASE_HANDLE(164); 449 CASE_HANDLE(165); 450 CASE_HANDLE(166); 451 CASE_HANDLE(167); 452 CASE_HANDLE(168); 453 CASE_HANDLE(169); 454 CASE_HANDLE(170); 455 CASE_HANDLE(171); 456 CASE_HANDLE(172); 457 CASE_HANDLE(173); 458 CASE_HANDLE(174); 459 CASE_HANDLE(175); 460 CASE_HANDLE(176); 461 CASE_HANDLE(177); 462 CASE_HANDLE(178); 463 CASE_HANDLE(179); 464 CASE_HANDLE(180); 465 CASE_HANDLE(181); 466 CASE_HANDLE(182); 467 CASE_HANDLE(183); 468 CASE_HANDLE(184); 469 CASE_HANDLE(185); 470 CASE_HANDLE(186); 471 CASE_HANDLE(187); 472 CASE_HANDLE(188); 473 CASE_HANDLE(189); 474 CASE_HANDLE(190); 475 CASE_HANDLE(191); 476 CASE_HANDLE(192); 477 CASE_HANDLE(193); 478 CASE_HANDLE(194); 479 CASE_HANDLE(195); 480 CASE_HANDLE(196); 481 CASE_HANDLE(197); 482 CASE_HANDLE(198); 483 CASE_HANDLE(199); 484 CASE_HANDLE(200); 485 CASE_HANDLE(201); 486 CASE_HANDLE(202); 487 CASE_HANDLE(203); 488 CASE_HANDLE(204); 489 CASE_HANDLE(205); 490 CASE_HANDLE(206); 491 CASE_HANDLE(207); 492 CASE_HANDLE(208); 493 CASE_HANDLE(209); 494 CASE_HANDLE(210); 495 CASE_HANDLE(211); 496 CASE_HANDLE(212); 497 CASE_HANDLE(213); 498 CASE_HANDLE(214); 499 CASE_HANDLE(215); 500 CASE_HANDLE(216); 501 CASE_HANDLE(217); 502 CASE_HANDLE(218); 503 CASE_HANDLE(219); 504 CASE_HANDLE(220); 505 CASE_HANDLE(221); 506 CASE_HANDLE(222); 507 CASE_HANDLE(223); 508 CASE_HANDLE(224); 509 CASE_HANDLE(225); 510 CASE_HANDLE(226); 511 CASE_HANDLE(227); 512 CASE_HANDLE(228); 513 CASE_HANDLE(229); 514 CASE_HANDLE(230); 515 CASE_HANDLE(231); 516 CASE_HANDLE(232); 517 CASE_HANDLE(233); 518 CASE_HANDLE(234); 519 CASE_HANDLE(235); 520 CASE_HANDLE(236); 521 CASE_HANDLE(237); 522 CASE_HANDLE(238); 523 CASE_HANDLE(239); 524 CASE_HANDLE(240); 525 CASE_HANDLE(241); 526 CASE_HANDLE(242); 527 CASE_HANDLE(243); 528 CASE_HANDLE(244); 529 CASE_HANDLE(245); 530 CASE_HANDLE(246); 531 CASE_HANDLE(247); 532 CASE_HANDLE(248); 533 CASE_HANDLE(249); 534 } 535 536 return NULL; 537 } 538