1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
/* automatically generated by rust-bindgen 0.58.1 */

pub type ktx_size_t = usize;
#[cfg(target_os = "windows")]
pub type ktx_off_t = i64;
#[cfg(not(target_os = "windows"))]
pub type ktx_off_t = isize;

#[repr(C)]
pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>);
impl<T> __BindgenUnionField<T> {
    #[inline]
    pub const fn new() -> Self {
        __BindgenUnionField(::std::marker::PhantomData)
    }
    #[inline]
    pub unsafe fn as_ref(&self) -> &T {
        ::std::mem::transmute(self)
    }
    #[inline]
    pub unsafe fn as_mut(&mut self) -> &mut T {
        ::std::mem::transmute(self)
    }
}
impl<T> ::std::default::Default for __BindgenUnionField<T> {
    #[inline]
    fn default() -> Self {
        Self::new()
    }
}
impl<T> ::std::clone::Clone for __BindgenUnionField<T> {
    #[inline]
    fn clone(&self) -> Self {
        Self::new()
    }
}
impl<T> ::std::marker::Copy for __BindgenUnionField<T> {}
impl<T> ::std::fmt::Debug for __BindgenUnionField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__BindgenUnionField")
    }
}
impl<T> ::std::hash::Hash for __BindgenUnionField<T> {
    fn hash<H: ::std::hash::Hasher>(&self, _state: &mut H) {}
}
impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> {
    fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
        true
    }
}
impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {}
pub const KTX_ANIMDATA_KEY: &'static [u8; 12usize] = b"KTXanimData\0";
pub const KTX_ORIENTATION_KEY: &'static [u8; 15usize] = b"KTXorientation\0";
pub const KTX_SWIZZLE_KEY: &'static [u8; 11usize] = b"KTXswizzle\0";
pub const KTX_WRITER_KEY: &'static [u8; 10usize] = b"KTXwriter\0";
pub const KTX_WRITER_SCPARAMS_KEY: &'static [u8; 18usize] = b"KTXwriterScParams\0";
pub const KTX_ORIENTATION1_FMT: &'static [u8; 5usize] = b"S=%c\0";
pub const KTX_ORIENTATION2_FMT: &'static [u8; 10usize] = b"S=%c,T=%c\0";
pub const KTX_ORIENTATION3_FMT: &'static [u8; 15usize] = b"S=%c,T=%c,R=%c\0";
pub const KTX_GL_UNPACK_ALIGNMENT: u32 = 4;
pub const KTX_TRUE: u32 = 1;
pub const KTX_FALSE: u32 = 0;
pub const KTX_ENDIAN_REF: u32 = 67305985;
pub const KTX_ENDIAN_REF_REV: u32 = 16909060;
pub const KTX_HEADER_SIZE: u32 = 64;
pub type size_t = ::std::os::raw::c_ulong;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type FILE = [u64; 27usize];
pub type off_t = __off_t;
#[doc = " To avoid including <KHR/khrplatform.h> define our own types."]
pub type ktx_uint8_t = ::std::os::raw::c_uchar;
pub type ktx_bool_t = bool;
pub type ktx_uint16_t = u16;
pub type ktx_int16_t = i16;
pub type ktx_uint32_t = u32;
pub type ktx_int32_t = i32;
pub type ktx_uint64_t = u64;
pub type ktx_int64_t = i64;
#[doc = " This will cause compilation to fail if size of uint32 != 4."]
pub type ktx_uint32_t_SIZE_ASSERT = [::std::os::raw::c_uchar; 1usize];
pub type GLenum = ::std::os::raw::c_uint;
pub type GLuint = ::std::os::raw::c_uint;
#[doc = "< Operation was successful."]
pub const ktx_error_code_e_KTX_SUCCESS: ktx_error_code_e = 0;
#[doc = "< The data in the file is inconsistent with the spec."]
pub const ktx_error_code_e_KTX_FILE_DATA_ERROR: ktx_error_code_e = 1;
#[doc = "< The file is a pipe or named pipe."]
pub const ktx_error_code_e_KTX_FILE_ISPIPE: ktx_error_code_e = 2;
#[doc = "< The target file could not be opened."]
pub const ktx_error_code_e_KTX_FILE_OPEN_FAILED: ktx_error_code_e = 3;
#[doc = "< The operation would exceed the max file size."]
pub const ktx_error_code_e_KTX_FILE_OVERFLOW: ktx_error_code_e = 4;
#[doc = "< An error occurred while reading from the file."]
pub const ktx_error_code_e_KTX_FILE_READ_ERROR: ktx_error_code_e = 5;
#[doc = "< An error occurred while seeking in the file."]
pub const ktx_error_code_e_KTX_FILE_SEEK_ERROR: ktx_error_code_e = 6;
#[doc = "< File does not have enough data to satisfy request."]
pub const ktx_error_code_e_KTX_FILE_UNEXPECTED_EOF: ktx_error_code_e = 7;
#[doc = "< An error occurred while writing to the file."]
pub const ktx_error_code_e_KTX_FILE_WRITE_ERROR: ktx_error_code_e = 8;
#[doc = "< GL operations resulted in an error."]
pub const ktx_error_code_e_KTX_GL_ERROR: ktx_error_code_e = 9;
#[doc = "< The operation is not allowed in the current state."]
pub const ktx_error_code_e_KTX_INVALID_OPERATION: ktx_error_code_e = 10;
#[doc = "< A parameter value was not valid"]
pub const ktx_error_code_e_KTX_INVALID_VALUE: ktx_error_code_e = 11;
#[doc = "< Requested key was not found"]
pub const ktx_error_code_e_KTX_NOT_FOUND: ktx_error_code_e = 12;
#[doc = "< Not enough memory to complete the operation."]
pub const ktx_error_code_e_KTX_OUT_OF_MEMORY: ktx_error_code_e = 13;
#[doc = "< Transcoding of block compressed texture failed."]
pub const ktx_error_code_e_KTX_TRANSCODE_FAILED: ktx_error_code_e = 14;
#[doc = "< The file not a KTX file"]
pub const ktx_error_code_e_KTX_UNKNOWN_FILE_FORMAT: ktx_error_code_e = 15;
#[doc = "< The KTX file specifies an unsupported texture type."]
pub const ktx_error_code_e_KTX_UNSUPPORTED_TEXTURE_TYPE: ktx_error_code_e = 16;
#[doc = "< Feature not included in in-use library or not yet implemented."]
pub const ktx_error_code_e_KTX_UNSUPPORTED_FEATURE: ktx_error_code_e = 17;
#[doc = "< Library dependency (OpenGL or Vulkan) not linked into application."]
pub const ktx_error_code_e_KTX_LIBRARY_NOT_LINKED: ktx_error_code_e = 18;
#[doc = "< For safety checks."]
pub const ktx_error_code_e_KTX_ERROR_MAX_ENUM: ktx_error_code_e = 18;
#[doc = " @~English"]
#[doc = " @brief Error codes returned by library functions."]
pub type ktx_error_code_e = ::std::os::raw::c_uint;
#[doc = " @~English"]
#[doc = " @brief Result codes returned by library functions."]
pub use self::ktx_error_code_e as ktxResult;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxKVListEntry {
    _unused: [u8; 0],
}
#[doc = " @class ktxHashList"]
#[doc = " @~English"]
#[doc = " @brief Opaque handle to a ktxHashList."]
pub type ktxHashList = *mut ktxKVListEntry;
#[doc = " @class ktxHashListEntry"]
#[doc = " @~English"]
#[doc = " @brief Opaque handle to an entry in a @ref ktxHashList."]
pub type ktxHashListEntry = ktxKVListEntry;
pub const ktxOrientationX_KTX_ORIENT_X_LEFT: ktxOrientationX = 108;
pub const ktxOrientationX_KTX_ORIENT_X_RIGHT: ktxOrientationX = 114;
pub type ktxOrientationX = ::std::os::raw::c_uint;
pub const ktxOrientationY_KTX_ORIENT_Y_UP: ktxOrientationY = 117;
pub const ktxOrientationY_KTX_ORIENT_Y_DOWN: ktxOrientationY = 100;
pub type ktxOrientationY = ::std::os::raw::c_uint;
pub const ktxOrientationZ_KTX_ORIENT_Z_IN: ktxOrientationZ = 105;
pub const ktxOrientationZ_KTX_ORIENT_Z_OUT: ktxOrientationZ = 111;
pub type ktxOrientationZ = ::std::os::raw::c_uint;
pub const class_id_ktxTexture1_c: class_id = 1;
pub const class_id_ktxTexture2_c: class_id = 2;
pub type class_id = ::std::os::raw::c_uint;
#[doc = " @~English"]
#[doc = " @brief Struct describing the logical orientation of an image."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxOrientation {
    #[doc = "< Orientation in X"]
    pub x: ktxOrientationX,
    #[doc = "< Orientation in Y"]
    pub y: ktxOrientationY,
    #[doc = "< Orientation in Z"]
    pub z: ktxOrientationZ,
}
#[test]
fn bindgen_test_layout_ktxOrientation() {
    assert_eq!(
        ::std::mem::size_of::<ktxOrientation>(),
        12usize,
        concat!("Size of: ", stringify!(ktxOrientation))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxOrientation>(),
        4usize,
        concat!("Alignment of ", stringify!(ktxOrientation))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxOrientation>())).x as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxOrientation),
            "::",
            stringify!(x)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxOrientation>())).y as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxOrientation),
            "::",
            stringify!(y)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxOrientation>())).z as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxOrientation),
            "::",
            stringify!(z)
        )
    );
}
#[doc = " @class ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Base class representing a texture."]
#[doc = ""]
#[doc = " ktxTextures should be created only by one of the provided"]
#[doc = " functions and these fields should be considered read-only."]
#[repr(C)]
pub struct ktxTexture {
    pub classId: class_id,
    pub vtbl: *mut ktxTexture_vtbl,
    pub vvtbl: *mut ktxTexture_vvtbl,
    pub _protected: *mut ktxTexture_protected,
    pub isArray: ktx_bool_t,
    pub isCubemap: ktx_bool_t,
    pub isCompressed: ktx_bool_t,
    pub generateMipmaps: ktx_bool_t,
    pub baseWidth: ktx_uint32_t,
    pub baseHeight: ktx_uint32_t,
    pub baseDepth: ktx_uint32_t,
    pub numDimensions: ktx_uint32_t,
    pub numLevels: ktx_uint32_t,
    pub numLayers: ktx_uint32_t,
    pub numFaces: ktx_uint32_t,
    pub orientation: ktxOrientation,
    pub kvDataHead: ktxHashList,
    pub kvDataLen: ktx_uint32_t,
    pub kvData: *mut ktx_uint8_t,
    pub dataSize: ktx_size_t,
    pub pData: *mut ktx_uint8_t,
}
#[test]
fn bindgen_test_layout_ktxTexture() {
    assert_eq!(
        ::std::mem::size_of::<ktxTexture>(),
        120usize,
        concat!("Size of: ", stringify!(ktxTexture))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxTexture>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxTexture))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).classId as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(classId)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).vtbl as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(vtbl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).vvtbl as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(vvtbl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>()))._protected as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(_protected)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).isArray as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(isArray)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).isCubemap as *const _ as usize },
        33usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(isCubemap)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).isCompressed as *const _ as usize },
        34usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(isCompressed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).generateMipmaps as *const _ as usize },
        35usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(generateMipmaps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).baseWidth as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(baseWidth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).baseHeight as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(baseHeight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).baseDepth as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(baseDepth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).numDimensions as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(numDimensions)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).numLevels as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(numLevels)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).numLayers as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(numLayers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).numFaces as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(numFaces)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).orientation as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(orientation)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).kvDataHead as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(kvDataHead)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).kvDataLen as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(kvDataLen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).kvData as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(kvData)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).dataSize as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(dataSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture>())).pData as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture),
            "::",
            stringify!(pData)
        )
    );
}
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Signature of function called by the <tt>ktxTexture_Iterate*</tt>"]
#[doc = "        functions to receive image data."]
#[doc = ""]
#[doc = " The function parameters are used to pass values which change for each image."]
#[doc = " Obtain values which are uniform across all images from the @c ktxTexture"]
#[doc = " object."]
#[doc = ""]
#[doc = " @param [in] miplevel        MIP level from 0 to the max level which is"]
#[doc = "                             dependent on the texture size."]
#[doc = " @param [in] face            usually 0; for cube maps, one of the 6 cube"]
#[doc = "                             faces in the order +X, -X, +Y, -Y, +Z, -Z,"]
#[doc = "                             0 to 5."]
#[doc = " @param [in] width           width of the image."]
#[doc = " @param [in] height          height of the image or, for 1D textures"]
#[doc = "                             textures, 1."]
#[doc = " @param [in] depth           depth of the image or, for 1D & 2D"]
#[doc = "                             textures, 1."]
#[doc = " @param [in] faceLodSize     number of bytes of data pointed at by"]
#[doc = "                             @p pixels."]
#[doc = " @param [in] pixels          pointer to the image data."]
#[doc = " @param [in,out] userdata    pointer for the application to pass data to and"]
#[doc = "                             from the callback function."]
pub type PFNKTXITERCB = ::std::option::Option<
    unsafe extern "C" fn(
        miplevel: ::std::os::raw::c_int,
        face: ::std::os::raw::c_int,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        depth: ::std::os::raw::c_int,
        faceLodSize: ktx_uint64_t,
        pixels: *mut ::std::os::raw::c_void,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e,
>;
#[doc = " Don't use KTX_APIENTRYP to avoid a Doxygen bug."]
pub type PFNKTEXDESTROY = ::std::option::Option<unsafe extern "C" fn(This: *mut ktxTexture)>;
pub type PFNKTEXGETIMAGEOFFSET = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        layer: ktx_uint32_t,
        faceSlice: ktx_uint32_t,
        pOffset: *mut ktx_size_t,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXGETDATASIZEUNCOMPRESSED =
    ::std::option::Option<unsafe extern "C" fn(This: *mut ktxTexture) -> ktx_size_t>;
pub type PFNKTEXGETIMAGESIZE = ::std::option::Option<
    unsafe extern "C" fn(This: *mut ktxTexture, level: ktx_uint32_t) -> ktx_size_t,
>;
pub type PFNKTEXITERATELEVELS = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        iterCb: PFNKTXITERCB,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXITERATELOADLEVELFACES = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        iterCb: PFNKTXITERCB,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXLOADIMAGEDATA = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        pBuffer: *mut ktx_uint8_t,
        bufSize: ktx_size_t,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXNEEDSTRANSCODING =
    ::std::option::Option<unsafe extern "C" fn(This: *mut ktxTexture) -> ktx_bool_t>;
pub type PFNKTEXSETIMAGEFROMMEMORY = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        layer: ktx_uint32_t,
        faceSlice: ktx_uint32_t,
        src: *const ktx_uint8_t,
        srcSize: ktx_size_t,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXSETIMAGEFROMSTDIOSTREAM = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        layer: ktx_uint32_t,
        faceSlice: ktx_uint32_t,
        src: *mut FILE,
        srcSize: ktx_size_t,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXWRITETOSTDIOSTREAM = ::std::option::Option<
    unsafe extern "C" fn(This: *mut ktxTexture, dstsstr: *mut FILE) -> ktx_error_code_e,
>;
pub type PFNKTEXWRITETONAMEDFILE = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        dstname: *const ::std::os::raw::c_char,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXWRITETOMEMORY = ::std::option::Option<
    unsafe extern "C" fn(
        This: *mut ktxTexture,
        bytes: *mut *mut ktx_uint8_t,
        size: *mut ktx_size_t,
    ) -> ktx_error_code_e,
>;
pub type PFNKTEXWRITETOSTREAM = ::std::option::Option<
    unsafe extern "C" fn(This: *mut ktxTexture, dststr: *mut ktxStream) -> ktx_error_code_e,
>;
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Table of virtual ktxTexture methods."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxTexture_vtbl {
    pub Destroy: PFNKTEXDESTROY,
    pub GetImageOffset: PFNKTEXGETIMAGEOFFSET,
    pub GetDataSizeUncompressed: PFNKTEXGETDATASIZEUNCOMPRESSED,
    pub GetImageSize: PFNKTEXGETIMAGESIZE,
    pub IterateLevels: PFNKTEXITERATELEVELS,
    pub IterateLoadLevelFaces: PFNKTEXITERATELOADLEVELFACES,
    pub NeedsTranscoding: PFNKTEXNEEDSTRANSCODING,
    pub LoadImageData: PFNKTEXLOADIMAGEDATA,
    pub SetImageFromMemory: PFNKTEXSETIMAGEFROMMEMORY,
    pub SetImageFromStdioStream: PFNKTEXSETIMAGEFROMSTDIOSTREAM,
    pub WriteToStdioStream: PFNKTEXWRITETOSTDIOSTREAM,
    pub WriteToNamedFile: PFNKTEXWRITETONAMEDFILE,
    pub WriteToMemory: PFNKTEXWRITETOMEMORY,
    pub WriteToStream: PFNKTEXWRITETOSTREAM,
}
#[test]
fn bindgen_test_layout_ktxTexture_vtbl() {
    assert_eq!(
        ::std::mem::size_of::<ktxTexture_vtbl>(),
        112usize,
        concat!("Size of: ", stringify!(ktxTexture_vtbl))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxTexture_vtbl>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxTexture_vtbl))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_vtbl>())).Destroy as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(Destroy)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_vtbl>())).GetImageOffset as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(GetImageOffset)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtbl>())).GetDataSizeUncompressed as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(GetDataSizeUncompressed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_vtbl>())).GetImageSize as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(GetImageSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_vtbl>())).IterateLevels as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(IterateLevels)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtbl>())).IterateLoadLevelFaces as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(IterateLoadLevelFaces)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtbl>())).NeedsTranscoding as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(NeedsTranscoding)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_vtbl>())).LoadImageData as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(LoadImageData)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtbl>())).SetImageFromMemory as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(SetImageFromMemory)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtbl>())).SetImageFromStdioStream as *const _ as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(SetImageFromStdioStream)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtbl>())).WriteToStdioStream as *const _ as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(WriteToStdioStream)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtbl>())).WriteToNamedFile as *const _ as usize
        },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(WriteToNamedFile)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_vtbl>())).WriteToMemory as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(WriteToMemory)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_vtbl>())).WriteToStream as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtbl),
            "::",
            stringify!(WriteToStream)
        )
    );
}
#[doc = " @class ktxTexture1"]
#[doc = " @~English"]
#[doc = " @brief Class representing a KTX version 1 format texture."]
#[doc = ""]
#[doc = " ktxTextures should be created only by one of the ktxTexture_Create*"]
#[doc = " functions and these fields should be considered read-only."]
#[repr(C)]
pub struct ktxTexture1 {
    pub classId: class_id,
    pub vtbl: *mut ktxTexture_vtbl,
    pub vvtbl: *mut ktxTexture_vvtbl,
    pub _protected: *mut ktxTexture_protected,
    pub isArray: ktx_bool_t,
    pub isCubemap: ktx_bool_t,
    pub isCompressed: ktx_bool_t,
    pub generateMipmaps: ktx_bool_t,
    pub baseWidth: ktx_uint32_t,
    pub baseHeight: ktx_uint32_t,
    pub baseDepth: ktx_uint32_t,
    pub numDimensions: ktx_uint32_t,
    pub numLevels: ktx_uint32_t,
    pub numLayers: ktx_uint32_t,
    pub numFaces: ktx_uint32_t,
    pub orientation: ktxOrientation,
    pub kvDataHead: ktxHashList,
    pub kvDataLen: ktx_uint32_t,
    pub kvData: *mut ktx_uint8_t,
    pub dataSize: ktx_size_t,
    pub pData: *mut ktx_uint8_t,
    #[doc = "< Format of the texture data, e.g., GL_RGB."]
    pub glFormat: ktx_uint32_t,
    #[doc = "< Internal format of the texture data,"]
    #[doc = "e.g., GL_RGB8."]
    pub glInternalformat: ktx_uint32_t,
    #[doc = "< Base format of the texture data,"]
    #[doc = "e.g., GL_RGB."]
    pub glBaseInternalformat: ktx_uint32_t,
    #[doc = "< Type of the texture data, e.g, GL_UNSIGNED_BYTE."]
    pub glType: ktx_uint32_t,
    #[doc = "< Private data."]
    pub _private: *mut ktxTexture1_private,
}
#[test]
fn bindgen_test_layout_ktxTexture1() {
    assert_eq!(
        ::std::mem::size_of::<ktxTexture1>(),
        144usize,
        concat!("Size of: ", stringify!(ktxTexture1))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxTexture1>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxTexture1))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).classId as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(classId)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).vtbl as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(vtbl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).vvtbl as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(vvtbl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>()))._protected as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(_protected)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).isArray as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(isArray)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).isCubemap as *const _ as usize },
        33usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(isCubemap)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).isCompressed as *const _ as usize },
        34usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(isCompressed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).generateMipmaps as *const _ as usize },
        35usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(generateMipmaps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).baseWidth as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(baseWidth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).baseHeight as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(baseHeight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).baseDepth as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(baseDepth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).numDimensions as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(numDimensions)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).numLevels as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(numLevels)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).numLayers as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(numLayers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).numFaces as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(numFaces)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).orientation as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(orientation)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).kvDataHead as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(kvDataHead)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).kvDataLen as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(kvDataLen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).kvData as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(kvData)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).dataSize as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(dataSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).pData as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(pData)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).glFormat as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(glFormat)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).glInternalformat as *const _ as usize },
        124usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(glInternalformat)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture1>())).glBaseInternalformat as *const _ as usize
        },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(glBaseInternalformat)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>())).glType as *const _ as usize },
        132usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(glType)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture1>()))._private as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture1),
            "::",
            stringify!(_private)
        )
    );
}
#[doc = "< No supercompression."]
pub const ktxSupercmpScheme_KTX_SS_NONE: ktxSupercmpScheme = 0;
#[doc = "< Basis LZ supercompression."]
pub const ktxSupercmpScheme_KTX_SS_BASIS_LZ: ktxSupercmpScheme = 1;
#[doc = "< ZStd supercompression."]
pub const ktxSupercmpScheme_KTX_SS_ZSTD: ktxSupercmpScheme = 2;
pub const ktxSupercmpScheme_KTX_SS_BEGIN_RANGE: ktxSupercmpScheme = 0;
pub const ktxSupercmpScheme_KTX_SS_END_RANGE: ktxSupercmpScheme = 2;
pub const ktxSupercmpScheme_KTX_SS_BEGIN_VENDOR_RANGE: ktxSupercmpScheme = 65536;
pub const ktxSupercmpScheme_KTX_SS_END_VENDOR_RANGE: ktxSupercmpScheme = 131071;
pub const ktxSupercmpScheme_KTX_SS_BEGIN_RESERVED: ktxSupercmpScheme = 131072;
pub const ktxSupercmpScheme_KTX_SUPERCOMPRESSION_BASIS: ktxSupercmpScheme = 1;
pub const ktxSupercmpScheme_KTX_SUPERCOMPRESSION_ZSTD: ktxSupercmpScheme = 2;
#[doc = " @~English"]
#[doc = " @brief Enumerators identifying the supercompression scheme."]
pub type ktxSupercmpScheme = ::std::os::raw::c_uint;
#[doc = " @class ktxTexture2"]
#[doc = " @~English"]
#[doc = " @brief Class representing a KTX version 2 format texture."]
#[doc = ""]
#[doc = " ktxTextures should be created only by one of the ktxTexture_Create*"]
#[doc = " functions and these fields should be considered read-only."]
#[repr(C)]
pub struct ktxTexture2 {
    pub classId: class_id,
    pub vtbl: *mut ktxTexture_vtbl,
    pub vvtbl: *mut ktxTexture_vvtbl,
    pub _protected: *mut ktxTexture_protected,
    pub isArray: ktx_bool_t,
    pub isCubemap: ktx_bool_t,
    pub isCompressed: ktx_bool_t,
    pub generateMipmaps: ktx_bool_t,
    pub baseWidth: ktx_uint32_t,
    pub baseHeight: ktx_uint32_t,
    pub baseDepth: ktx_uint32_t,
    pub numDimensions: ktx_uint32_t,
    pub numLevels: ktx_uint32_t,
    pub numLayers: ktx_uint32_t,
    pub numFaces: ktx_uint32_t,
    pub orientation: ktxOrientation,
    pub kvDataHead: ktxHashList,
    pub kvDataLen: ktx_uint32_t,
    pub kvData: *mut ktx_uint8_t,
    pub dataSize: ktx_size_t,
    pub pData: *mut ktx_uint8_t,
    pub vkFormat: ktx_uint32_t,
    pub pDfd: *mut ktx_uint32_t,
    pub supercompressionScheme: ktxSupercmpScheme,
    pub isVideo: ktx_bool_t,
    pub duration: ktx_uint32_t,
    pub timescale: ktx_uint32_t,
    pub loopcount: ktx_uint32_t,
    #[doc = "< Private data."]
    pub _private: *mut ktxTexture2_private,
}
#[test]
fn bindgen_test_layout_ktxTexture2() {
    assert_eq!(
        ::std::mem::size_of::<ktxTexture2>(),
        168usize,
        concat!("Size of: ", stringify!(ktxTexture2))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxTexture2>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxTexture2))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).classId as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(classId)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).vtbl as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(vtbl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).vvtbl as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(vvtbl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>()))._protected as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(_protected)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).isArray as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(isArray)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).isCubemap as *const _ as usize },
        33usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(isCubemap)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).isCompressed as *const _ as usize },
        34usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(isCompressed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).generateMipmaps as *const _ as usize },
        35usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(generateMipmaps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).baseWidth as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(baseWidth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).baseHeight as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(baseHeight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).baseDepth as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(baseDepth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).numDimensions as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(numDimensions)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).numLevels as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(numLevels)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).numLayers as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(numLayers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).numFaces as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(numFaces)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).orientation as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(orientation)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).kvDataHead as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(kvDataHead)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).kvDataLen as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(kvDataLen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).kvData as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(kvData)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).dataSize as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(dataSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).pData as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(pData)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).vkFormat as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(vkFormat)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).pDfd as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(pDfd)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture2>())).supercompressionScheme as *const _ as usize
        },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(supercompressionScheme)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).isVideo as *const _ as usize },
        140usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(isVideo)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).duration as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(duration)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).timescale as *const _ as usize },
        148usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(timescale)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>())).loopcount as *const _ as usize },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(loopcount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture2>()))._private as *const _ as usize },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture2),
            "::",
            stringify!(_private)
        )
    );
}
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Structure for passing texture information to ktxTexture[12]_Create()."]
#[doc = ""]
#[doc = " @sa ktxTexture_Create()"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxTextureCreateInfo {
    #[doc = "< Internal format for the texture, e.g.,"]
    #[doc = "GL_RGB8. Ignored when creating a"]
    #[doc = "ktxTexture2."]
    pub glInternalformat: ktx_uint32_t,
    #[doc = "< VkFormat for texture. Ignored when creating a"]
    #[doc = "ktxTexture1."]
    pub vkFormat: ktx_uint32_t,
    #[doc = "< Pointer to DFD. Used only when creating a"]
    #[doc = "ktxTexture2 and only if vkFormat is"]
    #[doc = "VK_FORMAT_UNDEFINED."]
    pub pDfd: *mut ktx_uint32_t,
    #[doc = "< Width of the base level of the texture."]
    pub baseWidth: ktx_uint32_t,
    #[doc = "< Height of the base level of the texture."]
    pub baseHeight: ktx_uint32_t,
    #[doc = "< Depth of the base level of the texture."]
    pub baseDepth: ktx_uint32_t,
    #[doc = "< Number of dimensions in the texture, 1, 2"]
    #[doc = "or 3."]
    pub numDimensions: ktx_uint32_t,
    #[doc = "< Number of mip levels in the texture. Should be"]
    #[doc = "1 if @c generateMipmaps is KTX_TRUE;"]
    pub numLevels: ktx_uint32_t,
    #[doc = "< Number of array layers in the texture."]
    pub numLayers: ktx_uint32_t,
    #[doc = "< Number of faces: 6 for cube maps, 1 otherwise."]
    pub numFaces: ktx_uint32_t,
    #[doc = "< Set to KTX_TRUE if the texture is to be an"]
    #[doc = "array texture. Means OpenGL will use a"]
    #[doc = "GL_TEXTURE_*_ARRAY target."]
    pub isArray: ktx_bool_t,
    #[doc = "< Set to KTX_TRUE if mipmaps should be"]
    #[doc = "generated for the texture when loading"]
    #[doc = "into a 3D API."]
    pub generateMipmaps: ktx_bool_t,
}
#[test]
fn bindgen_test_layout_ktxTextureCreateInfo() {
    assert_eq!(
        ::std::mem::size_of::<ktxTextureCreateInfo>(),
        48usize,
        concat!("Size of: ", stringify!(ktxTextureCreateInfo))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxTextureCreateInfo>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxTextureCreateInfo))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTextureCreateInfo>())).glInternalformat as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(glInternalformat)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).vkFormat as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(vkFormat)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).pDfd as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(pDfd)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).baseWidth as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(baseWidth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).baseHeight as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(baseHeight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).baseDepth as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(baseDepth)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTextureCreateInfo>())).numDimensions as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(numDimensions)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).numLevels as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(numLevels)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).numLayers as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(numLayers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).numFaces as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(numFaces)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTextureCreateInfo>())).isArray as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(isArray)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTextureCreateInfo>())).generateMipmaps as *const _ as usize
        },
        45usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTextureCreateInfo),
            "::",
            stringify!(generateMipmaps)
        )
    );
}
#[doc = "< Don't allocate any image storage."]
pub const ktxTextureCreateStorageEnum_KTX_TEXTURE_CREATE_NO_STORAGE: ktxTextureCreateStorageEnum =
    0;
#[doc = "< Allocate image storage."]
pub const ktxTextureCreateStorageEnum_KTX_TEXTURE_CREATE_ALLOC_STORAGE:
    ktxTextureCreateStorageEnum = 1;
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Enum for requesting, or not, allocation of storage for images."]
#[doc = ""]
#[doc = " @sa ktxTexture_Create()"]
pub type ktxTextureCreateStorageEnum = ::std::os::raw::c_uint;
pub const ktxTextureCreateFlagBits_KTX_TEXTURE_CREATE_NO_FLAGS: ktxTextureCreateFlagBits = 0;
pub const ktxTextureCreateFlagBits_KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT:
    ktxTextureCreateFlagBits = 1;
pub const ktxTextureCreateFlagBits_KTX_TEXTURE_CREATE_RAW_KVDATA_BIT: ktxTextureCreateFlagBits = 2;
pub const ktxTextureCreateFlagBits_KTX_TEXTURE_CREATE_SKIP_KVDATA_BIT: ktxTextureCreateFlagBits = 4;
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Flags for requesting services during creation."]
#[doc = ""]
#[doc = " @sa ktxTexture_CreateFrom*"]
pub type ktxTextureCreateFlagBits = ::std::os::raw::c_uint;
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Type for TextureCreateFlags parameters."]
#[doc = ""]
#[doc = " @sa ktxTexture_CreateFrom*()"]
pub type ktxTextureCreateFlags = ktx_uint32_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxMem {
    _unused: [u8; 0],
}
pub const streamType_eStreamTypeFile: streamType = 1;
pub const streamType_eStreamTypeMemory: streamType = 2;
pub const streamType_eStreamTypeCustom: streamType = 3;
pub type streamType = ::std::os::raw::c_uint;
#[doc = " @~English"]
#[doc = " @brief type for a pointer to a stream reading function"]
pub type ktxStream_read = ::std::option::Option<
    unsafe extern "C" fn(
        str_: *mut ktxStream,
        dst: *mut ::std::os::raw::c_void,
        count: ktx_size_t,
    ) -> ktx_error_code_e,
>;
#[doc = " @~English"]
#[doc = " @brief type for a pointer to a stream skipping function"]
pub type ktxStream_skip = ::std::option::Option<
    unsafe extern "C" fn(str_: *mut ktxStream, count: ktx_size_t) -> ktx_error_code_e,
>;
#[doc = " @~English"]
#[doc = " @brief type for a pointer to a stream reading function"]
pub type ktxStream_write = ::std::option::Option<
    unsafe extern "C" fn(
        str_: *mut ktxStream,
        src: *const ::std::os::raw::c_void,
        size: ktx_size_t,
        count: ktx_size_t,
    ) -> ktx_error_code_e,
>;
#[doc = " @~English"]
#[doc = " @brief type for a pointer to a stream position query function"]
pub type ktxStream_getpos = ::std::option::Option<
    unsafe extern "C" fn(str_: *mut ktxStream, offset: *mut ktx_off_t) -> ktx_error_code_e,
>;
#[doc = " @~English"]
#[doc = " @brief type for a pointer to a stream position query function"]
pub type ktxStream_setpos = ::std::option::Option<
    unsafe extern "C" fn(str_: *mut ktxStream, offset: ktx_off_t) -> ktx_error_code_e,
>;
#[doc = " @~English"]
#[doc = " @brief type for a pointer to a stream size query function"]
pub type ktxStream_getsize = ::std::option::Option<
    unsafe extern "C" fn(str_: *mut ktxStream, size: *mut ktx_size_t) -> ktx_error_code_e,
>;
#[doc = " @~English"]
#[doc = " @brief Destruct a stream"]
pub type ktxStream_destruct = ::std::option::Option<unsafe extern "C" fn(str_: *mut ktxStream)>;
#[doc = " @~English"]
#[doc = ""]
#[doc = " @brief Interface of ktxStream."]
#[doc = ""]
#[doc = " @author Maksim Kolesin"]
#[doc = " @author Georg Kolling, Imagination Technology"]
#[doc = " @author Mark Callow, HI Corporation"]
#[repr(C)]
pub struct ktxStream {
    #[doc = "< @internal pointer to function for reading bytes."]
    pub read: ktxStream_read,
    #[doc = "< @internal pointer to function for skipping bytes."]
    pub skip: ktxStream_skip,
    #[doc = "< @internal pointer to function for writing bytes."]
    pub write: ktxStream_write,
    #[doc = "< @internal pointer to function for getting current position in stream."]
    pub getpos: ktxStream_getpos,
    #[doc = "< @internal pointer to function for setting current position in stream."]
    pub setpos: ktxStream_setpos,
    #[doc = "< @internal pointer to function for querying size."]
    pub getsize: ktxStream_getsize,
    #[doc = "< @internal destruct the stream."]
    pub destruct: ktxStream_destruct,
    pub type_: streamType,
    #[doc = "< @internal pointer to the stream data."]
    pub data: ktxStream__bindgen_ty_1,
    #[doc = "< @internal used by FileStream for stdin."]
    pub readpos: ktx_off_t,
    #[doc = "< @internal Close FILE* or dispose of memory on destruct."]
    pub closeOnDestruct: ktx_bool_t,
}
#[repr(C)]
pub struct ktxStream__bindgen_ty_1 {
    pub file: __BindgenUnionField<*mut FILE>,
    pub mem: __BindgenUnionField<*mut ktxMem>,
    pub custom_ptr: __BindgenUnionField<ktxStream__bindgen_ty_1__bindgen_ty_1>,
    pub bindgen_union_field: [u64; 3usize],
}
#[repr(C)]
pub struct ktxStream__bindgen_ty_1__bindgen_ty_1 {
    pub address: *mut ::std::os::raw::c_void,
    pub allocatorAddress: *mut ::std::os::raw::c_void,
    pub size: ktx_size_t,
}
#[test]
fn bindgen_test_layout_ktxStream__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<ktxStream__bindgen_ty_1__bindgen_ty_1>(),
        24usize,
        concat!(
            "Size of: ",
            stringify!(ktxStream__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<ktxStream__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(ktxStream__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxStream__bindgen_ty_1__bindgen_ty_1>())).address as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxStream__bindgen_ty_1__bindgen_ty_1>())).allocatorAddress
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(allocatorAddress)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxStream__bindgen_ty_1__bindgen_ty_1>())).size as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(size)
        )
    );
}
#[test]
fn bindgen_test_layout_ktxStream__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<ktxStream__bindgen_ty_1>(),
        24usize,
        concat!("Size of: ", stringify!(ktxStream__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxStream__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxStream__bindgen_ty_1))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream__bindgen_ty_1>())).file as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream__bindgen_ty_1),
            "::",
            stringify!(file)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream__bindgen_ty_1>())).mem as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream__bindgen_ty_1),
            "::",
            stringify!(mem)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxStream__bindgen_ty_1>())).custom_ptr as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream__bindgen_ty_1),
            "::",
            stringify!(custom_ptr)
        )
    );
}
#[test]
fn bindgen_test_layout_ktxStream() {
    assert_eq!(
        ::std::mem::size_of::<ktxStream>(),
        104usize,
        concat!("Size of: ", stringify!(ktxStream))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxStream>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxStream))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).read as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(read)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).skip as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(skip)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).write as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(write)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).getpos as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(getpos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).setpos as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(setpos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).getsize as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(getsize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).destruct as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(destruct)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).type_ as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).data as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).readpos as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(readpos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxStream>())).closeOnDestruct as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxStream),
            "::",
            stringify!(closeOnDestruct)
        )
    );
}
extern "C" {
    #[doc = " These four create a ktxTexture1 or ktxTexture2 according to the data"]
    #[doc = " header, and return a pointer to the base ktxTexture class."]
    pub fn ktxTexture_CreateFromStdioStream(
        stdioStream: *mut FILE,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture_CreateFromNamedFile(
        filename: *const ::std::os::raw::c_char,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture_CreateFromMemory(
        bytes: *const ktx_uint8_t,
        size: ktx_size_t,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture_CreateFromStream(
        stream: *mut ktxStream,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Returns a pointer to the image data of a ktxTexture object."]
    pub fn ktxTexture_GetData(This: *mut ktxTexture) -> *mut ktx_uint8_t;
}
extern "C" {
    #[doc = " Returns the pitch of a row of an image at the specified level."]
    #[doc = " Similar to the rowPitch in a VkSubResourceLayout."]
    pub fn ktxTexture_GetRowPitch(This: *mut ktxTexture, level: ktx_uint32_t) -> ktx_uint32_t;
}
extern "C" {
    #[doc = " Return the element size of the texture's images."]
    pub fn ktxTexture_GetElementSize(This: *mut ktxTexture) -> ktx_uint32_t;
}
extern "C" {
    #[doc = " Returns the size of all the image data of a ktxTexture object in bytes."]
    pub fn ktxTexture_GetDataSize(This: *mut ktxTexture) -> ktx_size_t;
}
extern "C" {
    #[doc = " Uploads a texture to OpenGL {,ES}."]
    pub fn ktxTexture_GLUpload(
        This: *mut ktxTexture,
        pTexture: *mut GLuint,
        pTarget: *mut GLenum,
        pGlerror: *mut GLenum,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Iterate over the levels or faces in a ktxTexture object."]
    pub fn ktxTexture_IterateLevelFaces(
        This: *mut ktxTexture,
        iterCb: PFNKTXITERCB,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Create a new ktxTexture1."]
    pub fn ktxTexture1_Create(
        createInfo: *mut ktxTextureCreateInfo,
        storageAllocation: ktxTextureCreateStorageEnum,
        newTex: *mut *mut ktxTexture1,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " These four create a ktxTexture1 provided the data is in KTX format."]
    pub fn ktxTexture1_CreateFromStdioStream(
        stdioStream: *mut FILE,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture1,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture1_CreateFromNamedFile(
        filename: *const ::std::os::raw::c_char,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture1,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture1_CreateFromMemory(
        bytes: *const ktx_uint8_t,
        size: ktx_size_t,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture1,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture1_CreateFromStream(
        stream: *mut ktxStream,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture1,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture1_NeedsTranscoding(This: *mut ktxTexture1) -> ktx_bool_t;
}
extern "C" {
    #[doc = " Write a ktxTexture object to a stdio stream in KTX format."]
    pub fn ktxTexture1_WriteKTX2ToStdioStream(
        This: *mut ktxTexture1,
        dstsstr: *mut FILE,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Write a ktxTexture object to a named file in KTX format."]
    pub fn ktxTexture1_WriteKTX2ToNamedFile(
        This: *mut ktxTexture1,
        dstname: *const ::std::os::raw::c_char,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Write a ktxTexture object to a block of memory in KTX format."]
    pub fn ktxTexture1_WriteKTX2ToMemory(
        This: *mut ktxTexture1,
        bytes: *mut *mut ktx_uint8_t,
        size: *mut ktx_size_t,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Write a ktxTexture object to a ktxStream in KTX format."]
    pub fn ktxTexture1_WriteKTX2ToStream(
        This: *mut ktxTexture1,
        dststr: *mut ktxStream,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Create a new ktxTexture2."]
    pub fn ktxTexture2_Create(
        createInfo: *mut ktxTextureCreateInfo,
        storageAllocation: ktxTextureCreateStorageEnum,
        newTex: *mut *mut ktxTexture2,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Create a new ktxTexture2 as a copy of an existing texture."]
    pub fn ktxTexture2_CreateCopy(
        orig: *mut ktxTexture2,
        newTex: *mut *mut ktxTexture2,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " These four create a ktxTexture2 provided the data is in KTX2 format."]
    pub fn ktxTexture2_CreateFromStdioStream(
        stdioStream: *mut FILE,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture2,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture2_CreateFromNamedFile(
        filename: *const ::std::os::raw::c_char,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture2,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture2_CreateFromMemory(
        bytes: *const ktx_uint8_t,
        size: ktx_size_t,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture2,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture2_CreateFromStream(
        stream: *mut ktxStream,
        createFlags: ktxTextureCreateFlags,
        newTex: *mut *mut ktxTexture2,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture2_CompressBasis(
        This: *mut ktxTexture2,
        quality: ktx_uint32_t,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture2_DeflateZstd(This: *mut ktxTexture2, level: ktx_uint32_t)
        -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture2_GetComponentInfo(
        This: *mut ktxTexture2,
        numComponents: *mut ktx_uint32_t,
        componentByteLength: *mut ktx_uint32_t,
    );
}
extern "C" {
    pub fn ktxTexture2_GetNumComponents(This: *mut ktxTexture2) -> ktx_uint32_t;
}
extern "C" {
    pub fn ktxTexture2_GetOETF(This: *mut ktxTexture2) -> ktx_uint32_t;
}
extern "C" {
    pub fn ktxTexture2_GetPremultipliedAlpha(This: *mut ktxTexture2) -> ktx_bool_t;
}
extern "C" {
    pub fn ktxTexture2_NeedsTranscoding(This: *mut ktxTexture2) -> ktx_bool_t;
}
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_LEVEL_FASTEST: ktx_pack_uastc_flag_bits_e = 0;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_LEVEL_FASTER: ktx_pack_uastc_flag_bits_e = 1;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_LEVEL_DEFAULT: ktx_pack_uastc_flag_bits_e = 2;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_LEVEL_SLOWER: ktx_pack_uastc_flag_bits_e = 3;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_LEVEL_VERYSLOW: ktx_pack_uastc_flag_bits_e = 4;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_MAX_LEVEL: ktx_pack_uastc_flag_bits_e = 4;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_LEVEL_MASK: ktx_pack_uastc_flag_bits_e = 15;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_FAVOR_UASTC_ERROR: ktx_pack_uastc_flag_bits_e =
    8;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_FAVOR_BC7_ERROR: ktx_pack_uastc_flag_bits_e =
    16;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_ETC1_FASTER_HINTS: ktx_pack_uastc_flag_bits_e =
    64;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC_ETC1_FASTEST_HINTS: ktx_pack_uastc_flag_bits_e =
    128;
pub const ktx_pack_uastc_flag_bits_e_KTX_PACK_UASTC__ETC1_DISABLE_FLIP_AND_INDIVIDUAL:
    ktx_pack_uastc_flag_bits_e = 256;
#[doc = " @~English"]
#[doc = " @brief Flags specifiying UASTC encoding options."]
pub type ktx_pack_uastc_flag_bits_e = ::std::os::raw::c_uint;
pub type ktx_pack_uastc_flags = ktx_uint32_t;
pub const ktx_pack_astc_quality_levels_e_KTX_PACK_ASTC_QUALITY_LEVEL_FASTEST:
    ktx_pack_astc_quality_levels_e = 0;
pub const ktx_pack_astc_quality_levels_e_KTX_PACK_ASTC_QUALITY_LEVEL_FAST:
    ktx_pack_astc_quality_levels_e = 10;
pub const ktx_pack_astc_quality_levels_e_KTX_PACK_ASTC_QUALITY_LEVEL_MEDIUM:
    ktx_pack_astc_quality_levels_e = 60;
pub const ktx_pack_astc_quality_levels_e_KTX_PACK_ASTC_QUALITY_LEVEL_THOROUGH:
    ktx_pack_astc_quality_levels_e = 98;
pub const ktx_pack_astc_quality_levels_e_KTX_PACK_ASTC_QUALITY_LEVEL_EXHAUSTIVE:
    ktx_pack_astc_quality_levels_e = 100;
pub const ktx_pack_astc_quality_levels_e_KTX_PACK_ASTC_QUALITY_LEVEL_MAX:
    ktx_pack_astc_quality_levels_e = 100;
#[doc = " @~English"]
#[doc = " @brief Options specifiying ASTC encoding quality levels."]
pub type ktx_pack_astc_quality_levels_e = ::std::os::raw::c_uint;
#[doc = ": 8.00 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_4x4:
    ktx_pack_astc_block_dimension_e = 0;
#[doc = ": 6.40 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_5x4:
    ktx_pack_astc_block_dimension_e = 1;
#[doc = ": 5.12 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_5x5:
    ktx_pack_astc_block_dimension_e = 2;
#[doc = ": 4.27 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_6x5:
    ktx_pack_astc_block_dimension_e = 3;
#[doc = ": 3.56 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_6x6:
    ktx_pack_astc_block_dimension_e = 4;
#[doc = ": 3.20 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_8x5:
    ktx_pack_astc_block_dimension_e = 5;
#[doc = ": 2.67 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_8x6:
    ktx_pack_astc_block_dimension_e = 6;
#[doc = ": 2.56 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_10x5:
    ktx_pack_astc_block_dimension_e = 7;
#[doc = ": 2.13 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_10x6:
    ktx_pack_astc_block_dimension_e = 8;
#[doc = ": 2.00 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_8x8:
    ktx_pack_astc_block_dimension_e = 9;
#[doc = ": 1.60 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_10x8:
    ktx_pack_astc_block_dimension_e = 10;
#[doc = ": 1.28 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_10x10:
    ktx_pack_astc_block_dimension_e = 11;
#[doc = ": 1.07 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_12x10:
    ktx_pack_astc_block_dimension_e = 12;
#[doc = ": 0.89 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_12x12:
    ktx_pack_astc_block_dimension_e = 13;
#[doc = ": 4.74 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_3x3x3:
    ktx_pack_astc_block_dimension_e = 14;
#[doc = ": 3.56 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_4x3x3:
    ktx_pack_astc_block_dimension_e = 15;
#[doc = ": 2.67 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_4x4x3:
    ktx_pack_astc_block_dimension_e = 16;
#[doc = ": 2.00 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_4x4x4:
    ktx_pack_astc_block_dimension_e = 17;
#[doc = ": 1.60 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_5x4x4:
    ktx_pack_astc_block_dimension_e = 18;
#[doc = ": 1.28 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_5x5x4:
    ktx_pack_astc_block_dimension_e = 19;
#[doc = ": 1.02 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_5x5x5:
    ktx_pack_astc_block_dimension_e = 20;
#[doc = ": 0.85 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_6x5x5:
    ktx_pack_astc_block_dimension_e = 21;
#[doc = ": 0.71 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_6x6x5:
    ktx_pack_astc_block_dimension_e = 22;
#[doc = ": 0.59 bpp"]
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_6x6x6:
    ktx_pack_astc_block_dimension_e = 23;
pub const ktx_pack_astc_block_dimension_e_KTX_PACK_ASTC_BLOCK_DIMENSION_MAX:
    ktx_pack_astc_block_dimension_e = 23;
#[doc = " @~English"]
#[doc = " @brief Options specifiying ASTC encoding block dimensions"]
pub type ktx_pack_astc_block_dimension_e = ::std::os::raw::c_uint;
pub const ktx_pack_astc_encoder_function_e_KTX_PACK_ASTC_ENCODER_FUNCTION_UNKNOWN:
    ktx_pack_astc_encoder_function_e = 0;
pub const ktx_pack_astc_encoder_function_e_KTX_PACK_ASTC_ENCODER_FUNCTION_SRGB:
    ktx_pack_astc_encoder_function_e = 1;
pub const ktx_pack_astc_encoder_function_e_KTX_PACK_ASTC_ENCODER_FUNCTION_LINEAR:
    ktx_pack_astc_encoder_function_e = 2;
pub const ktx_pack_astc_encoder_function_e_KTX_PACK_ASTC_ENCODER_FUNCTION_MAX:
    ktx_pack_astc_encoder_function_e = 2;
#[doc = " @~English"]
#[doc = " @brief Options specifiying ASTC encoder profile function"]
pub type ktx_pack_astc_encoder_function_e = ::std::os::raw::c_uint;
pub const ktx_pack_astc_encoder_mode_e_KTX_PACK_ASTC_ENCODER_MODE_DEFAULT:
    ktx_pack_astc_encoder_mode_e = 0;
pub const ktx_pack_astc_encoder_mode_e_KTX_PACK_ASTC_ENCODER_MODE_LDR:
    ktx_pack_astc_encoder_mode_e = 1;
pub const ktx_pack_astc_encoder_mode_e_KTX_PACK_ASTC_ENCODER_MODE_HDR:
    ktx_pack_astc_encoder_mode_e = 2;
pub const ktx_pack_astc_encoder_mode_e_KTX_PACK_ASTC_ENCODER_MODE_MAX:
    ktx_pack_astc_encoder_mode_e = 2;
#[doc = " @~English"]
#[doc = " @brief Options specifying ASTC encoder profile mode"]
#[doc = "        This and function is used later to derive the profile."]
pub type ktx_pack_astc_encoder_mode_e = ::std::os::raw::c_uint;
extern "C" {
    pub static KTX_ETC1S_DEFAULT_COMPRESSION_LEVEL: ktx_uint32_t;
}
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = " @brief Structure for passing extended parameters to"]
#[doc = "        ktxTexture_CompressAstc."]
#[doc = ""]
#[doc = " Passing a struct initialized to 0 (e.g. \" = {};\") will use the default"]
#[doc = " values. Only those settings to be modified need be non-zero."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxAstcParams {
    pub structSize: ktx_uint32_t,
    pub verbose: ktx_bool_t,
    pub threadCount: ktx_uint32_t,
    #[doc = " astcenc params"]
    pub blockDimension: ktx_uint32_t,
    pub function: ktx_uint32_t,
    pub mode: ktx_uint32_t,
    pub qualityLevel: ktx_uint32_t,
    pub normalMap: ktx_bool_t,
    pub inputSwizzle: [::std::os::raw::c_char; 4usize],
}
#[test]
fn bindgen_test_layout_ktxAstcParams() {
    assert_eq!(
        ::std::mem::size_of::<ktxAstcParams>(),
        36usize,
        concat!("Size of: ", stringify!(ktxAstcParams))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxAstcParams>(),
        4usize,
        concat!("Alignment of ", stringify!(ktxAstcParams))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).structSize as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(structSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).verbose as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(verbose)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).threadCount as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(threadCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).blockDimension as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(blockDimension)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).function as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(function)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).mode as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(mode)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).qualityLevel as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(qualityLevel)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).normalMap as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(normalMap)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxAstcParams>())).inputSwizzle as *const _ as usize },
        29usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxAstcParams),
            "::",
            stringify!(inputSwizzle)
        )
    );
}
extern "C" {
    pub fn ktxTexture2_CompressAstcEx(
        This: *mut ktxTexture2,
        params: *mut ktxAstcParams,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture2_CompressAstc(
        This: *mut ktxTexture2,
        quality: ktx_uint32_t,
    ) -> ktx_error_code_e;
}
#[doc = " @memberof ktxTexture2"]
#[doc = " @~English"]
#[doc = " @brief Structure for passing extended parameters to"]
#[doc = "        ktxTexture2_CompressBasisEx."]
#[doc = ""]
#[doc = " Passing a struct initialized to 0 (e.g. \" = {};\") will use the default"]
#[doc = " values. Only those settings to be modified need be non-zero."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxBasisParams {
    pub structSize: ktx_uint32_t,
    pub uastc: ktx_bool_t,
    pub verbose: ktx_bool_t,
    pub noSSE: ktx_bool_t,
    pub threadCount: ktx_uint32_t,
    #[doc = " ETC1S params"]
    pub compressionLevel: ktx_uint32_t,
    pub qualityLevel: ktx_uint32_t,
    pub maxEndpoints: ktx_uint32_t,
    pub endpointRDOThreshold: f32,
    pub maxSelectors: ktx_uint32_t,
    pub selectorRDOThreshold: f32,
    pub inputSwizzle: [::std::os::raw::c_char; 4usize],
    pub normalMap: ktx_bool_t,
    pub separateRGToRGB_A: ktx_bool_t,
    pub preSwizzle: ktx_bool_t,
    pub noEndpointRDO: ktx_bool_t,
    pub noSelectorRDO: ktx_bool_t,
    #[doc = " UASTC params"]
    pub uastcFlags: ktx_pack_uastc_flags,
    pub uastcRDO: ktx_bool_t,
    pub uastcRDOQualityScalar: f32,
    pub uastcRDODictSize: ktx_uint32_t,
    pub uastcRDOMaxSmoothBlockErrorScale: f32,
    pub uastcRDOMaxSmoothBlockStdDev: f32,
    pub uastcRDODontFavorSimplerModes: ktx_bool_t,
    pub uastcRDONoMultithreading: ktx_bool_t,
}
#[test]
fn bindgen_test_layout_ktxBasisParams() {
    assert_eq!(
        ::std::mem::size_of::<ktxBasisParams>(),
        76usize,
        concat!("Size of: ", stringify!(ktxBasisParams))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxBasisParams>(),
        4usize,
        concat!("Alignment of ", stringify!(ktxBasisParams))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).structSize as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(structSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).uastc as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).verbose as *const _ as usize },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(verbose)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).noSSE as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(noSSE)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).threadCount as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(threadCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).compressionLevel as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(compressionLevel)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).qualityLevel as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(qualityLevel)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).maxEndpoints as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(maxEndpoints)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).endpointRDOThreshold as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(endpointRDOThreshold)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).maxSelectors as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(maxSelectors)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).selectorRDOThreshold as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(selectorRDOThreshold)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).inputSwizzle as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(inputSwizzle)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).normalMap as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(normalMap)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).separateRGToRGB_A as *const _ as usize
        },
        41usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(separateRGToRGB_A)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).preSwizzle as *const _ as usize },
        42usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(preSwizzle)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).noEndpointRDO as *const _ as usize },
        43usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(noEndpointRDO)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).noSelectorRDO as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(noSelectorRDO)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).uastcFlags as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcFlags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).uastcRDO as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcRDO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).uastcRDOQualityScalar as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcRDOQualityScalar)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxBasisParams>())).uastcRDODictSize as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcRDODictSize)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).uastcRDOMaxSmoothBlockErrorScale as *const _
                as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcRDOMaxSmoothBlockErrorScale)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).uastcRDOMaxSmoothBlockStdDev as *const _
                as usize
        },
        68usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcRDOMaxSmoothBlockStdDev)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).uastcRDODontFavorSimplerModes as *const _
                as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcRDODontFavorSimplerModes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxBasisParams>())).uastcRDONoMultithreading as *const _ as usize
        },
        73usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxBasisParams),
            "::",
            stringify!(uastcRDONoMultithreading)
        )
    );
}
extern "C" {
    pub fn ktxTexture2_CompressBasisEx(
        This: *mut ktxTexture2,
        params: *mut ktxBasisParams,
    ) -> ktx_error_code_e;
}
#[doc = " ETC1-2"]
pub const ktx_transcode_fmt_e_KTX_TTF_ETC1_RGB: ktx_transcode_fmt_e = 0;
pub const ktx_transcode_fmt_e_KTX_TTF_ETC2_RGBA: ktx_transcode_fmt_e = 1;
#[doc = " BC1-5, BC7 (desktop, some mobile devices)"]
pub const ktx_transcode_fmt_e_KTX_TTF_BC1_RGB: ktx_transcode_fmt_e = 2;
pub const ktx_transcode_fmt_e_KTX_TTF_BC3_RGBA: ktx_transcode_fmt_e = 3;
pub const ktx_transcode_fmt_e_KTX_TTF_BC4_R: ktx_transcode_fmt_e = 4;
pub const ktx_transcode_fmt_e_KTX_TTF_BC5_RG: ktx_transcode_fmt_e = 5;
pub const ktx_transcode_fmt_e_KTX_TTF_BC7_RGBA: ktx_transcode_fmt_e = 6;
#[doc = " PVRTC1 4bpp (mobile, PowerVR devices)"]
pub const ktx_transcode_fmt_e_KTX_TTF_PVRTC1_4_RGB: ktx_transcode_fmt_e = 8;
pub const ktx_transcode_fmt_e_KTX_TTF_PVRTC1_4_RGBA: ktx_transcode_fmt_e = 9;
#[doc = " ASTC (mobile, Intel devices, hopefully all desktop GPU's one day)"]
pub const ktx_transcode_fmt_e_KTX_TTF_ASTC_4x4_RGBA: ktx_transcode_fmt_e = 10;
#[doc = " ATC and FXT1 formats are not supported by KTX2 as there"]
#[doc = " are no equivalent VkFormats."]
pub const ktx_transcode_fmt_e_KTX_TTF_PVRTC2_4_RGB: ktx_transcode_fmt_e = 18;
pub const ktx_transcode_fmt_e_KTX_TTF_PVRTC2_4_RGBA: ktx_transcode_fmt_e = 19;
pub const ktx_transcode_fmt_e_KTX_TTF_ETC2_EAC_R11: ktx_transcode_fmt_e = 20;
pub const ktx_transcode_fmt_e_KTX_TTF_ETC2_EAC_RG11: ktx_transcode_fmt_e = 21;
#[doc = " Uncompressed (raw pixel) formats"]
pub const ktx_transcode_fmt_e_KTX_TTF_RGBA32: ktx_transcode_fmt_e = 13;
pub const ktx_transcode_fmt_e_KTX_TTF_RGB565: ktx_transcode_fmt_e = 14;
pub const ktx_transcode_fmt_e_KTX_TTF_BGR565: ktx_transcode_fmt_e = 15;
pub const ktx_transcode_fmt_e_KTX_TTF_RGBA4444: ktx_transcode_fmt_e = 16;
#[doc = " Values for automatic selection of RGB or RGBA depending if alpha"]
#[doc = " present."]
pub const ktx_transcode_fmt_e_KTX_TTF_ETC: ktx_transcode_fmt_e = 22;
pub const ktx_transcode_fmt_e_KTX_TTF_BC1_OR_3: ktx_transcode_fmt_e = 23;
pub const ktx_transcode_fmt_e_KTX_TTF_NOSELECTION: ktx_transcode_fmt_e = 2147483647;
#[doc = " Old enums for compatibility with code compiled against previous"]
#[doc = " versions of libktx."]
pub const ktx_transcode_fmt_e_KTX_TF_ETC1: ktx_transcode_fmt_e = 0;
pub const ktx_transcode_fmt_e_KTX_TF_ETC2: ktx_transcode_fmt_e = 22;
pub const ktx_transcode_fmt_e_KTX_TF_BC1: ktx_transcode_fmt_e = 2;
pub const ktx_transcode_fmt_e_KTX_TF_BC3: ktx_transcode_fmt_e = 3;
pub const ktx_transcode_fmt_e_KTX_TF_BC4: ktx_transcode_fmt_e = 4;
pub const ktx_transcode_fmt_e_KTX_TF_BC5: ktx_transcode_fmt_e = 5;
pub const ktx_transcode_fmt_e_KTX_TTF_BC7_M6_RGB: ktx_transcode_fmt_e = 6;
pub const ktx_transcode_fmt_e_KTX_TTF_BC7_M5_RGBA: ktx_transcode_fmt_e = 6;
pub const ktx_transcode_fmt_e_KTX_TF_BC7_M6_OPAQUE_ONLY: ktx_transcode_fmt_e = 6;
pub const ktx_transcode_fmt_e_KTX_TF_PVRTC1_4_OPAQUE_ONLY: ktx_transcode_fmt_e = 8;
#[doc = " @~English"]
#[doc = " @brief Enumerators for specifying the transcode target format."]
#[doc = ""]
#[doc = " For BasisU/ETC1S format, @e Opaque and @e alpha here refer to 2 separate"]
#[doc = " RGB images, a.k.a slices within the BasisU compressed data. For UASTC"]
#[doc = " format they refer to the RGB and the alpha components of the UASTC data. If"]
#[doc = " the original image had only 2 components, R will be in the opaque portion"]
#[doc = " and G in the alpha portion. The R value will be replicated in the RGB"]
#[doc = " components. In the case of BasisU the G value will be replicated in all 3"]
#[doc = " components of the alpha slice. If the original image had only 1 component"]
#[doc = " it's value is replicated in all 3 components of the opaque portion and"]
#[doc = " there is no alpha."]
#[doc = ""]
#[doc = " @note You should not transcode sRGB encoded data to @c KTX_TTF_BC4_R,"]
#[doc = " @c KTX_TTF_BC5_RG, @c KTX_TTF_ETC2_EAC_R{,G}11, @c KTX_TTF_RGB565,"]
#[doc = " @c KTX_TTF_BGR565 or @c KTX_TTF_RGBA4444 formats as neither OpenGL nor"]
#[doc = " Vulkan support sRGB variants of these. Doing sRGB decoding in the shader"]
#[doc = " will not produce correct results if any texture filtering is being used."]
pub type ktx_transcode_fmt_e = ::std::os::raw::c_uint;
pub const ktx_transcode_flag_bits_e_KTX_TF_PVRTC_DECODE_TO_NEXT_POW2: ktx_transcode_flag_bits_e = 2;
pub const ktx_transcode_flag_bits_e_KTX_TF_TRANSCODE_ALPHA_DATA_TO_OPAQUE_FORMATS:
    ktx_transcode_flag_bits_e = 4;
pub const ktx_transcode_flag_bits_e_KTX_TF_HIGH_QUALITY: ktx_transcode_flag_bits_e = 32;
#[doc = " @~English"]
#[doc = " @brief Flags guiding transcoding of Basis Universal compressed textures."]
pub type ktx_transcode_flag_bits_e = ::std::os::raw::c_uint;
pub type ktx_transcode_flags = ktx_uint32_t;
extern "C" {
    pub fn ktxTexture2_TranscodeBasis(
        This: *mut ktxTexture2,
        fmt: ktx_transcode_fmt_e,
        transcodeFlags: ktx_transcode_flags,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Returns a string corresponding to a KTX error code."]
    pub fn ktxErrorString(error: ktx_error_code_e) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Returns a string corresponding to a supercompression scheme."]
    pub fn ktxSupercompressionSchemeString(
        scheme: ktxSupercmpScheme,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Returns a string corresponding to a transcode target format."]
    pub fn ktxTranscodeFormatString(format: ktx_transcode_fmt_e) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ktxHashList_Create(ppHl: *mut *mut ktxHashList) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxHashList_CreateCopy(
        ppHl: *mut *mut ktxHashList,
        orig: ktxHashList,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxHashList_Construct(pHl: *mut ktxHashList);
}
extern "C" {
    pub fn ktxHashList_ConstructCopy(pHl: *mut ktxHashList, orig: ktxHashList);
}
extern "C" {
    pub fn ktxHashList_Destroy(head: *mut ktxHashList);
}
extern "C" {
    pub fn ktxHashList_Destruct(head: *mut ktxHashList);
}
extern "C" {
    #[doc = " Adds a key-value pair to a hash list."]
    pub fn ktxHashList_AddKVPair(
        pHead: *mut ktxHashList,
        key: *const ::std::os::raw::c_char,
        valueLen: ::std::os::raw::c_uint,
        value: *const ::std::os::raw::c_void,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Deletes a ktxHashListEntry from a ktxHashList."]
    pub fn ktxHashList_DeleteEntry(
        pHead: *mut ktxHashList,
        pEntry: *mut ktxHashListEntry,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Finds the entry for a key in a ktxHashList and deletes it."]
    pub fn ktxHashList_DeleteKVPair(
        pHead: *mut ktxHashList,
        key: *const ::std::os::raw::c_char,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Looks up a key and returns the ktxHashListEntry."]
    pub fn ktxHashList_FindEntry(
        pHead: *mut ktxHashList,
        key: *const ::std::os::raw::c_char,
        ppEntry: *mut *mut ktxHashListEntry,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Looks up a key and returns the value."]
    pub fn ktxHashList_FindValue(
        pHead: *mut ktxHashList,
        key: *const ::std::os::raw::c_char,
        pValueLen: *mut ::std::os::raw::c_uint,
        pValue: *mut *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Return the next entry in a ktxHashList."]
    pub fn ktxHashList_Next(entry: *mut ktxHashListEntry) -> *mut ktxHashListEntry;
}
extern "C" {
    #[doc = " Sorts a ktxHashList into order of the key codepoints."]
    pub fn ktxHashList_Sort(pHead: *mut ktxHashList) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Serializes a ktxHashList to a block of memory suitable for"]
    #[doc = " writing to a KTX file."]
    pub fn ktxHashList_Serialize(
        pHead: *mut ktxHashList,
        kvdLen: *mut ::std::os::raw::c_uint,
        kvd: *mut *mut ::std::os::raw::c_uchar,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Creates a hash table from the serialized data read from a"]
    #[doc = " a KTX file."]
    pub fn ktxHashList_Deserialize(
        pHead: *mut ktxHashList,
        kvdLen: ::std::os::raw::c_uint,
        kvd: *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Get the key from a ktxHashListEntry"]
    pub fn ktxHashListEntry_GetKey(
        This: *mut ktxHashListEntry,
        pKeyLen: *mut ::std::os::raw::c_uint,
        ppKey: *mut *mut ::std::os::raw::c_char,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = " Get the value from a ktxHashListEntry"]
    pub fn ktxHashListEntry_GetValue(
        This: *mut ktxHashListEntry,
        pValueLen: *mut ::std::os::raw::c_uint,
        ppValue: *mut *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e;
}
extern "C" {
    #[doc = "===========================================================*"]
    #[doc = " Utilities for printing info about a KTX file.             *"]
    #[doc = "==========================================================="]
    pub fn ktxPrintInfoForStdioStream(stdioStream: *mut FILE) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxPrintInfoForNamedFile(filename: *const ::std::os::raw::c_char) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxPrintInfoForMemory(bytes: *const ktx_uint8_t, size: ktx_size_t) -> ktx_error_code_e;
}
pub const ktxFormatSizeFlagBits_KTX_FORMAT_SIZE_PACKED_BIT: ktxFormatSizeFlagBits = 1;
pub const ktxFormatSizeFlagBits_KTX_FORMAT_SIZE_COMPRESSED_BIT: ktxFormatSizeFlagBits = 2;
pub const ktxFormatSizeFlagBits_KTX_FORMAT_SIZE_PALETTIZED_BIT: ktxFormatSizeFlagBits = 4;
pub const ktxFormatSizeFlagBits_KTX_FORMAT_SIZE_DEPTH_BIT: ktxFormatSizeFlagBits = 8;
pub const ktxFormatSizeFlagBits_KTX_FORMAT_SIZE_STENCIL_BIT: ktxFormatSizeFlagBits = 16;
pub type ktxFormatSizeFlagBits = ::std::os::raw::c_uint;
pub type ktxFormatSizeFlags = ktx_uint32_t;
#[doc = " @brief Structure for holding size information for a texture format."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxFormatSize {
    pub flags: ktxFormatSizeFlags,
    #[doc = " For KTX1."]
    pub paletteSizeInBits: ::std::os::raw::c_uint,
    pub blockSizeInBits: ::std::os::raw::c_uint,
    #[doc = " in texels"]
    pub blockWidth: ::std::os::raw::c_uint,
    #[doc = " in texels"]
    pub blockHeight: ::std::os::raw::c_uint,
    #[doc = " in texels"]
    pub blockDepth: ::std::os::raw::c_uint,
    #[doc = " Minimum required number of blocks"]
    pub minBlocksX: ::std::os::raw::c_uint,
    pub minBlocksY: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_ktxFormatSize() {
    assert_eq!(
        ::std::mem::size_of::<ktxFormatSize>(),
        32usize,
        concat!("Size of: ", stringify!(ktxFormatSize))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxFormatSize>(),
        4usize,
        concat!("Alignment of ", stringify!(ktxFormatSize))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).flags as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).paletteSizeInBits as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(paletteSizeInBits)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).blockSizeInBits as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(blockSizeInBits)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).blockWidth as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(blockWidth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).blockHeight as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(blockHeight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).blockDepth as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(blockDepth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).minBlocksX as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(minBlocksX)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxFormatSize>())).minBlocksY as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxFormatSize),
            "::",
            stringify!(minBlocksY)
        )
    );
}
extern "C" {
    pub fn ktxFormatSize_initFromDfd(This: *mut ktxFormatSize, pDfd: *mut ktx_uint32_t) -> bool;
}
pub const ktxFormatVersionEnum_KTX_FORMAT_VERSION_ONE: ktxFormatVersionEnum = 1;
pub const ktxFormatVersionEnum_KTX_FORMAT_VERSION_TWO: ktxFormatVersionEnum = 2;
pub type ktxFormatVersionEnum = ::std::os::raw::c_uint;
pub type PFNCALCDATASIZELEVELS = ::std::option::Option<
    unsafe extern "C" fn(This: *mut ktxTexture, levels: ktx_uint32_t) -> ktx_size_t,
>;
pub type PFNCALCFACELODSIZE = ::std::option::Option<
    unsafe extern "C" fn(This: *mut ktxTexture, level: ktx_uint32_t) -> ktx_size_t,
>;
pub type PFNCALCLEVELOFFSET = ::std::option::Option<
    unsafe extern "C" fn(This: *mut ktxTexture, level: ktx_uint32_t) -> ktx_size_t,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxTexture_vtblInt {
    pub calcDataSizeLevels: PFNCALCDATASIZELEVELS,
    pub calcFaceLodSize: PFNCALCFACELODSIZE,
    pub calcLevelOffset: PFNCALCLEVELOFFSET,
}
#[test]
fn bindgen_test_layout_ktxTexture_vtblInt() {
    assert_eq!(
        ::std::mem::size_of::<ktxTexture_vtblInt>(),
        24usize,
        concat!("Size of: ", stringify!(ktxTexture_vtblInt))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxTexture_vtblInt>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxTexture_vtblInt))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtblInt>())).calcDataSizeLevels as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtblInt),
            "::",
            stringify!(calcDataSizeLevels)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtblInt>())).calcFaceLodSize as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtblInt),
            "::",
            stringify!(calcFaceLodSize)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_vtblInt>())).calcLevelOffset as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_vtblInt),
            "::",
            stringify!(calcLevelOffset)
        )
    );
}
#[doc = " @memberof ktxTexture"]
#[doc = " @~English"]
#[doc = ""]
#[doc = " @brief protected members of ktxTexture."]
#[repr(C)]
pub struct ktxTexture_protected {
    pub _vtbl: ktxTexture_vtblInt,
    pub _formatSize: ktxFormatSize,
    pub _typeSize: ktx_uint32_t,
    pub _stream: ktxStream,
}
#[test]
fn bindgen_test_layout_ktxTexture_protected() {
    assert_eq!(
        ::std::mem::size_of::<ktxTexture_protected>(),
        168usize,
        concat!("Size of: ", stringify!(ktxTexture_protected))
    );
    assert_eq!(
        ::std::mem::align_of::<ktxTexture_protected>(),
        8usize,
        concat!("Alignment of ", stringify!(ktxTexture_protected))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_protected>()))._vtbl as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_protected),
            "::",
            stringify!(_vtbl)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<ktxTexture_protected>()))._formatSize as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_protected),
            "::",
            stringify!(_formatSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_protected>()))._typeSize as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_protected),
            "::",
            stringify!(_typeSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ktxTexture_protected>()))._stream as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(ktxTexture_protected),
            "::",
            stringify!(_stream)
        )
    );
}
extern "C" {
    pub fn ktxTexture_iterateLoadedImages(
        This: *mut ktxTexture,
        iterCb: PFNKTXITERCB,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture_iterateSourceImages(
        This: *mut ktxTexture,
        iterCb: PFNKTXITERCB,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture_calcDataSizeTexture(This: *mut ktxTexture) -> ktx_size_t;
}
extern "C" {
    pub fn ktxTexture_calcImageSize(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        fv: ktxFormatVersionEnum,
    ) -> ktx_size_t;
}
extern "C" {
    pub fn ktxTexture_isActiveStream(This: *mut ktxTexture) -> ktx_bool_t;
}
extern "C" {
    pub fn ktxTexture_calcLevelSize(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        fv: ktxFormatVersionEnum,
    ) -> ktx_size_t;
}
extern "C" {
    pub fn ktxTexture_doCalcFaceLodSize(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        fv: ktxFormatVersionEnum,
    ) -> ktx_size_t;
}
extern "C" {
    pub fn ktxTexture_layerSize(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        fv: ktxFormatVersionEnum,
    ) -> ktx_size_t;
}
extern "C" {
    pub fn ktxTexture_rowInfo(
        This: *mut ktxTexture,
        level: ktx_uint32_t,
        numRows: *mut ktx_uint32_t,
        rowBytes: *mut ktx_uint32_t,
        rowPadding: *mut ktx_uint32_t,
    );
}
extern "C" {
    pub fn ktxTexture_construct(
        This: *mut ktxTexture,
        createInfo: *mut ktxTextureCreateInfo,
        formatSize: *mut ktxFormatSize,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture_constructFromStream(
        This: *mut ktxTexture,
        pStream: *mut ktxStream,
        createFlags: ktxTextureCreateFlags,
    ) -> ktx_error_code_e;
}
extern "C" {
    pub fn ktxTexture_destruct(This: *mut ktxTexture);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxTexture_vvtbl {
    pub _address: u8,
}
#[doc = "< Private data."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxTexture1_private {
    pub _address: u8,
}
#[doc = "< Private data."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ktxTexture2_private {
    pub _address: u8,
}