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
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
/* automatically generated by rust-bindgen 0.68.1 */

pub const __GNUC_VA_LIST: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 0;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __TIMESIZE: u32 = 64;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_60559_BFP__: u32 = 201404;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 35;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const _STDLIB_H: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WSTOPPED: u32 = 2;
pub const WEXITED: u32 = 4;
pub const WCONTINUED: u32 = 8;
pub const WNOWAIT: u32 = 16777216;
pub const __WNOTHREAD: u32 = 536870912;
pub const __WALL: u32 = 1073741824;
pub const __WCLONE: u32 = 2147483648;
pub const __W_CONTINUED: u32 = 65535;
pub const __WCOREFLAG: u32 = 128;
pub const __HAVE_FLOAT128: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128: u32 = 0;
pub const __HAVE_FLOAT64X: u32 = 1;
pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1;
pub const __HAVE_FLOAT16: u32 = 0;
pub const __HAVE_FLOAT32: u32 = 1;
pub const __HAVE_FLOAT64: u32 = 1;
pub const __HAVE_FLOAT32X: u32 = 1;
pub const __HAVE_FLOAT128X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT16: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0;
pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0;
pub const __ldiv_t_defined: u32 = 1;
pub const __lldiv_t_defined: u32 = 1;
pub const RAND_MAX: u32 = 2147483647;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const _SYS_TYPES_H: u32 = 1;
pub const __clock_t_defined: u32 = 1;
pub const __clockid_t_defined: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: u32 = 1;
pub const _BITS_ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const _BITS_ENDIANNESS_H: u32 = 1;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const _BITS_BYTESWAP_H: u32 = 1;
pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __sigset_t_defined: u32 = 1;
pub const __timeval_defined: u32 = 1;
pub const _STRUCT_TIMESPEC: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
pub const _THREAD_SHARED_TYPES_H: u32 = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
pub const __have_pthread_attr_t: u32 = 1;
pub const _ALLOCA_H: u32 = 1;
pub const BX_ARCH_32BIT: u32 = 0;
pub const BX_ARCH_64BIT: u32 = 0;
pub const BX_COMPILER_CLANG: u32 = 0;
pub const BX_COMPILER_CLANG_ANALYZER: u32 = 0;
pub const BX_COMPILER_GCC: u32 = 0;
pub const BX_COMPILER_MSVC: u32 = 0;
pub const BX_CPU_ENDIAN_BIG: u32 = 0;
pub const BX_CPU_ENDIAN_LITTLE: u32 = 0;
pub const BX_CPU_ARM: u32 = 0;
pub const BX_CPU_JIT: u32 = 0;
pub const BX_CPU_MIPS: u32 = 0;
pub const BX_CPU_PPC: u32 = 0;
pub const BX_CPU_RISCV: u32 = 0;
pub const BX_CPU_X86: u32 = 0;
pub const BX_CRT_BIONIC: u32 = 0;
pub const BX_CRT_BSD: u32 = 0;
pub const BX_CRT_GLIBC: u32 = 0;
pub const BX_CRT_LIBCXX: u32 = 0;
pub const BX_CRT_MINGW: u32 = 0;
pub const BX_CRT_MSVC: u32 = 0;
pub const BX_CRT_NEWLIB: u32 = 0;
pub const BX_CRT_NONE: u32 = 0;
pub const BX_LANGUAGE_CPP14: u32 = 201402;
pub const BX_LANGUAGE_CPP17: u32 = 201703;
pub const BX_LANGUAGE_CPP20: u32 = 202002;
pub const BX_LANGUAGE_CPP23: u32 = 202207;
pub const BX_PLATFORM_ANDROID: u32 = 0;
pub const BX_PLATFORM_BSD: u32 = 0;
pub const BX_PLATFORM_EMSCRIPTEN: u32 = 0;
pub const BX_PLATFORM_HAIKU: u32 = 0;
pub const BX_PLATFORM_HURD: u32 = 0;
pub const BX_PLATFORM_IOS: u32 = 0;
pub const BX_PLATFORM_LINUX: u32 = 0;
pub const BX_PLATFORM_NX: u32 = 0;
pub const BX_PLATFORM_OSX: u32 = 0;
pub const BX_PLATFORM_PS4: u32 = 0;
pub const BX_PLATFORM_PS5: u32 = 0;
pub const BX_PLATFORM_RPI: u32 = 0;
pub const BX_PLATFORM_WINDOWS: u32 = 0;
pub const BX_PLATFORM_WINRT: u32 = 0;
pub const BX_PLATFORM_XBOXONE: u32 = 0;
pub const BX_CACHE_LINE_SIZE: u32 = 64;
pub const BX_PLATFORM_NAME: &[u8; 6] = b"Linux\0";
pub const BX_CPU_NAME: &[u8; 4] = b"x86\0";
pub const BX_CRT_NAME: &[u8; 14] = b"GNU C Library\0";
pub const BX_ARCH_NAME: &[u8; 7] = b"64-bit\0";
pub const BX_CPP_NAME: &[u8; 11] = b"C++Unknown\0";
pub const BGFX_SHARED_LIB_BUILD: u32 = 0;
pub const BGFX_SHARED_LIB_USE: u32 = 0;
pub const BGFX_API_VERSION: u32 = 122;
pub const BGFX_STATE_WRITE_R: u32 = 1;
pub const BGFX_STATE_WRITE_G: u32 = 2;
pub const BGFX_STATE_WRITE_B: u32 = 4;
pub const BGFX_STATE_WRITE_A: u32 = 8;
pub const BGFX_STATE_WRITE_Z: u64 = 274877906944;
pub const BGFX_STATE_WRITE_RGB: u32 = 7;
pub const BGFX_STATE_WRITE_MASK: u64 = 274877906959;
pub const BGFX_STATE_DEPTH_TEST_LESS: u32 = 16;
pub const BGFX_STATE_DEPTH_TEST_LEQUAL: u32 = 32;
pub const BGFX_STATE_DEPTH_TEST_EQUAL: u32 = 48;
pub const BGFX_STATE_DEPTH_TEST_GEQUAL: u32 = 64;
pub const BGFX_STATE_DEPTH_TEST_GREATER: u32 = 80;
pub const BGFX_STATE_DEPTH_TEST_NOTEQUAL: u32 = 96;
pub const BGFX_STATE_DEPTH_TEST_NEVER: u32 = 112;
pub const BGFX_STATE_DEPTH_TEST_ALWAYS: u32 = 128;
pub const BGFX_STATE_DEPTH_TEST_SHIFT: u32 = 4;
pub const BGFX_STATE_DEPTH_TEST_MASK: u32 = 240;
pub const BGFX_STATE_BLEND_ZERO: u32 = 4096;
pub const BGFX_STATE_BLEND_ONE: u32 = 8192;
pub const BGFX_STATE_BLEND_SRC_COLOR: u32 = 12288;
pub const BGFX_STATE_BLEND_INV_SRC_COLOR: u32 = 16384;
pub const BGFX_STATE_BLEND_SRC_ALPHA: u32 = 20480;
pub const BGFX_STATE_BLEND_INV_SRC_ALPHA: u32 = 24576;
pub const BGFX_STATE_BLEND_DST_ALPHA: u32 = 28672;
pub const BGFX_STATE_BLEND_INV_DST_ALPHA: u32 = 32768;
pub const BGFX_STATE_BLEND_DST_COLOR: u32 = 36864;
pub const BGFX_STATE_BLEND_INV_DST_COLOR: u32 = 40960;
pub const BGFX_STATE_BLEND_SRC_ALPHA_SAT: u32 = 45056;
pub const BGFX_STATE_BLEND_FACTOR: u32 = 49152;
pub const BGFX_STATE_BLEND_INV_FACTOR: u32 = 53248;
pub const BGFX_STATE_BLEND_SHIFT: u32 = 12;
pub const BGFX_STATE_BLEND_MASK: u32 = 268431360;
pub const BGFX_STATE_BLEND_EQUATION_ADD: u32 = 0;
pub const BGFX_STATE_BLEND_EQUATION_SUB: u32 = 268435456;
pub const BGFX_STATE_BLEND_EQUATION_REVSUB: u32 = 536870912;
pub const BGFX_STATE_BLEND_EQUATION_MIN: u32 = 805306368;
pub const BGFX_STATE_BLEND_EQUATION_MAX: u32 = 1073741824;
pub const BGFX_STATE_BLEND_EQUATION_SHIFT: u32 = 28;
pub const BGFX_STATE_BLEND_EQUATION_MASK: u64 = 16911433728;
pub const BGFX_STATE_CULL_CW: u64 = 68719476736;
pub const BGFX_STATE_CULL_CCW: u64 = 137438953472;
pub const BGFX_STATE_CULL_SHIFT: u32 = 36;
pub const BGFX_STATE_CULL_MASK: u64 = 206158430208;
pub const BGFX_STATE_ALPHA_REF_SHIFT: u32 = 40;
pub const BGFX_STATE_ALPHA_REF_MASK: u64 = 280375465082880;
pub const BGFX_STATE_PT_TRISTRIP: u64 = 281474976710656;
pub const BGFX_STATE_PT_LINES: u64 = 562949953421312;
pub const BGFX_STATE_PT_LINESTRIP: u64 = 844424930131968;
pub const BGFX_STATE_PT_POINTS: u64 = 1125899906842624;
pub const BGFX_STATE_PT_SHIFT: u32 = 48;
pub const BGFX_STATE_PT_MASK: u64 = 1970324836974592;
pub const BGFX_STATE_POINT_SIZE_SHIFT: u32 = 52;
pub const BGFX_STATE_POINT_SIZE_MASK: u64 = 67553994410557440;
pub const BGFX_STATE_MSAA: u64 = 72057594037927936;
pub const BGFX_STATE_LINEAA: u64 = 144115188075855872;
pub const BGFX_STATE_CONSERVATIVE_RASTER: u64 = 288230376151711744;
pub const BGFX_STATE_NONE: u32 = 0;
pub const BGFX_STATE_FRONT_CCW: u64 = 549755813888;
pub const BGFX_STATE_BLEND_INDEPENDENT: u64 = 17179869184;
pub const BGFX_STATE_BLEND_ALPHA_TO_COVERAGE: u64 = 34359738368;
pub const BGFX_STATE_DEFAULT: u64 = 72057937635311647;
pub const BGFX_STATE_MASK: i32 = -1;
pub const BGFX_STATE_RESERVED_SHIFT: u32 = 61;
pub const BGFX_STATE_RESERVED_MASK: i64 = -2305843009213693952;
pub const BGFX_STENCIL_FUNC_REF_SHIFT: u32 = 0;
pub const BGFX_STENCIL_FUNC_REF_MASK: u32 = 255;
pub const BGFX_STENCIL_FUNC_RMASK_SHIFT: u32 = 8;
pub const BGFX_STENCIL_FUNC_RMASK_MASK: u32 = 65280;
pub const BGFX_STENCIL_NONE: u32 = 0;
pub const BGFX_STENCIL_MASK: u32 = 4294967295;
pub const BGFX_STENCIL_DEFAULT: u32 = 0;
pub const BGFX_STENCIL_TEST_LESS: u32 = 65536;
pub const BGFX_STENCIL_TEST_LEQUAL: u32 = 131072;
pub const BGFX_STENCIL_TEST_EQUAL: u32 = 196608;
pub const BGFX_STENCIL_TEST_GEQUAL: u32 = 262144;
pub const BGFX_STENCIL_TEST_GREATER: u32 = 327680;
pub const BGFX_STENCIL_TEST_NOTEQUAL: u32 = 393216;
pub const BGFX_STENCIL_TEST_NEVER: u32 = 458752;
pub const BGFX_STENCIL_TEST_ALWAYS: u32 = 524288;
pub const BGFX_STENCIL_TEST_SHIFT: u32 = 16;
pub const BGFX_STENCIL_TEST_MASK: u32 = 983040;
pub const BGFX_STENCIL_OP_FAIL_S_ZERO: u32 = 0;
pub const BGFX_STENCIL_OP_FAIL_S_KEEP: u32 = 1048576;
pub const BGFX_STENCIL_OP_FAIL_S_REPLACE: u32 = 2097152;
pub const BGFX_STENCIL_OP_FAIL_S_INCR: u32 = 3145728;
pub const BGFX_STENCIL_OP_FAIL_S_INCRSAT: u32 = 4194304;
pub const BGFX_STENCIL_OP_FAIL_S_DECR: u32 = 5242880;
pub const BGFX_STENCIL_OP_FAIL_S_DECRSAT: u32 = 6291456;
pub const BGFX_STENCIL_OP_FAIL_S_INVERT: u32 = 7340032;
pub const BGFX_STENCIL_OP_FAIL_S_SHIFT: u32 = 20;
pub const BGFX_STENCIL_OP_FAIL_S_MASK: u32 = 15728640;
pub const BGFX_STENCIL_OP_FAIL_Z_ZERO: u32 = 0;
pub const BGFX_STENCIL_OP_FAIL_Z_KEEP: u32 = 16777216;
pub const BGFX_STENCIL_OP_FAIL_Z_REPLACE: u32 = 33554432;
pub const BGFX_STENCIL_OP_FAIL_Z_INCR: u32 = 50331648;
pub const BGFX_STENCIL_OP_FAIL_Z_INCRSAT: u32 = 67108864;
pub const BGFX_STENCIL_OP_FAIL_Z_DECR: u32 = 83886080;
pub const BGFX_STENCIL_OP_FAIL_Z_DECRSAT: u32 = 100663296;
pub const BGFX_STENCIL_OP_FAIL_Z_INVERT: u32 = 117440512;
pub const BGFX_STENCIL_OP_FAIL_Z_SHIFT: u32 = 24;
pub const BGFX_STENCIL_OP_FAIL_Z_MASK: u32 = 251658240;
pub const BGFX_STENCIL_OP_PASS_Z_ZERO: u32 = 0;
pub const BGFX_STENCIL_OP_PASS_Z_KEEP: u32 = 268435456;
pub const BGFX_STENCIL_OP_PASS_Z_REPLACE: u32 = 536870912;
pub const BGFX_STENCIL_OP_PASS_Z_INCR: u32 = 805306368;
pub const BGFX_STENCIL_OP_PASS_Z_INCRSAT: u32 = 1073741824;
pub const BGFX_STENCIL_OP_PASS_Z_DECR: u32 = 1342177280;
pub const BGFX_STENCIL_OP_PASS_Z_DECRSAT: u32 = 1610612736;
pub const BGFX_STENCIL_OP_PASS_Z_INVERT: u32 = 1879048192;
pub const BGFX_STENCIL_OP_PASS_Z_SHIFT: u32 = 28;
pub const BGFX_STENCIL_OP_PASS_Z_MASK: u32 = 4026531840;
pub const BGFX_CLEAR_NONE: u32 = 0;
pub const BGFX_CLEAR_COLOR: u32 = 1;
pub const BGFX_CLEAR_DEPTH: u32 = 2;
pub const BGFX_CLEAR_STENCIL: u32 = 4;
pub const BGFX_CLEAR_DISCARD_COLOR_0: u32 = 8;
pub const BGFX_CLEAR_DISCARD_COLOR_1: u32 = 16;
pub const BGFX_CLEAR_DISCARD_COLOR_2: u32 = 32;
pub const BGFX_CLEAR_DISCARD_COLOR_3: u32 = 64;
pub const BGFX_CLEAR_DISCARD_COLOR_4: u32 = 128;
pub const BGFX_CLEAR_DISCARD_COLOR_5: u32 = 256;
pub const BGFX_CLEAR_DISCARD_COLOR_6: u32 = 512;
pub const BGFX_CLEAR_DISCARD_COLOR_7: u32 = 1024;
pub const BGFX_CLEAR_DISCARD_DEPTH: u32 = 2048;
pub const BGFX_CLEAR_DISCARD_STENCIL: u32 = 4096;
pub const BGFX_CLEAR_DISCARD_COLOR_MASK: u32 = 2040;
pub const BGFX_CLEAR_DISCARD_MASK: u32 = 8184;
pub const BGFX_DISCARD_NONE: u32 = 0;
pub const BGFX_DISCARD_BINDINGS: u32 = 1;
pub const BGFX_DISCARD_INDEX_BUFFER: u32 = 2;
pub const BGFX_DISCARD_INSTANCE_DATA: u32 = 4;
pub const BGFX_DISCARD_STATE: u32 = 8;
pub const BGFX_DISCARD_TRANSFORM: u32 = 16;
pub const BGFX_DISCARD_VERTEX_STREAMS: u32 = 32;
pub const BGFX_DISCARD_ALL: u32 = 255;
pub const BGFX_DEBUG_NONE: u32 = 0;
pub const BGFX_DEBUG_WIREFRAME: u32 = 1;
pub const BGFX_DEBUG_IFH: u32 = 2;
pub const BGFX_DEBUG_STATS: u32 = 4;
pub const BGFX_DEBUG_TEXT: u32 = 8;
pub const BGFX_DEBUG_PROFILER: u32 = 16;
pub const BGFX_BUFFER_COMPUTE_FORMAT_8X1: u32 = 1;
pub const BGFX_BUFFER_COMPUTE_FORMAT_8X2: u32 = 2;
pub const BGFX_BUFFER_COMPUTE_FORMAT_8X4: u32 = 3;
pub const BGFX_BUFFER_COMPUTE_FORMAT_16X1: u32 = 4;
pub const BGFX_BUFFER_COMPUTE_FORMAT_16X2: u32 = 5;
pub const BGFX_BUFFER_COMPUTE_FORMAT_16X4: u32 = 6;
pub const BGFX_BUFFER_COMPUTE_FORMAT_32X1: u32 = 7;
pub const BGFX_BUFFER_COMPUTE_FORMAT_32X2: u32 = 8;
pub const BGFX_BUFFER_COMPUTE_FORMAT_32X4: u32 = 9;
pub const BGFX_BUFFER_COMPUTE_FORMAT_SHIFT: u32 = 0;
pub const BGFX_BUFFER_COMPUTE_FORMAT_MASK: u32 = 15;
pub const BGFX_BUFFER_COMPUTE_TYPE_INT: u32 = 16;
pub const BGFX_BUFFER_COMPUTE_TYPE_UINT: u32 = 32;
pub const BGFX_BUFFER_COMPUTE_TYPE_FLOAT: u32 = 48;
pub const BGFX_BUFFER_COMPUTE_TYPE_SHIFT: u32 = 4;
pub const BGFX_BUFFER_COMPUTE_TYPE_MASK: u32 = 48;
pub const BGFX_BUFFER_NONE: u32 = 0;
pub const BGFX_BUFFER_COMPUTE_READ: u32 = 256;
pub const BGFX_BUFFER_COMPUTE_WRITE: u32 = 512;
pub const BGFX_BUFFER_DRAW_INDIRECT: u32 = 1024;
pub const BGFX_BUFFER_ALLOW_RESIZE: u32 = 2048;
pub const BGFX_BUFFER_INDEX32: u32 = 4096;
pub const BGFX_BUFFER_COMPUTE_READ_WRITE: u32 = 768;
pub const BGFX_TEXTURE_NONE: u32 = 0;
pub const BGFX_TEXTURE_MSAA_SAMPLE: u64 = 34359738368;
pub const BGFX_TEXTURE_RT: u64 = 68719476736;
pub const BGFX_TEXTURE_COMPUTE_WRITE: u64 = 17592186044416;
pub const BGFX_TEXTURE_SRGB: u64 = 35184372088832;
pub const BGFX_TEXTURE_BLIT_DST: u64 = 70368744177664;
pub const BGFX_TEXTURE_READ_BACK: u64 = 140737488355328;
pub const BGFX_TEXTURE_RT_MSAA_X2: u64 = 137438953472;
pub const BGFX_TEXTURE_RT_MSAA_X4: u64 = 206158430208;
pub const BGFX_TEXTURE_RT_MSAA_X8: u64 = 274877906944;
pub const BGFX_TEXTURE_RT_MSAA_X16: u64 = 343597383680;
pub const BGFX_TEXTURE_RT_MSAA_SHIFT: u32 = 36;
pub const BGFX_TEXTURE_RT_MSAA_MASK: u64 = 481036337152;
pub const BGFX_TEXTURE_RT_WRITE_ONLY: u64 = 549755813888;
pub const BGFX_TEXTURE_RT_SHIFT: u32 = 36;
pub const BGFX_TEXTURE_RT_MASK: u64 = 1030792151040;
pub const BGFX_SAMPLER_U_MIRROR: u32 = 1;
pub const BGFX_SAMPLER_U_CLAMP: u32 = 2;
pub const BGFX_SAMPLER_U_BORDER: u32 = 3;
pub const BGFX_SAMPLER_U_SHIFT: u32 = 0;
pub const BGFX_SAMPLER_U_MASK: u32 = 3;
pub const BGFX_SAMPLER_V_MIRROR: u32 = 4;
pub const BGFX_SAMPLER_V_CLAMP: u32 = 8;
pub const BGFX_SAMPLER_V_BORDER: u32 = 12;
pub const BGFX_SAMPLER_V_SHIFT: u32 = 2;
pub const BGFX_SAMPLER_V_MASK: u32 = 12;
pub const BGFX_SAMPLER_W_MIRROR: u32 = 16;
pub const BGFX_SAMPLER_W_CLAMP: u32 = 32;
pub const BGFX_SAMPLER_W_BORDER: u32 = 48;
pub const BGFX_SAMPLER_W_SHIFT: u32 = 4;
pub const BGFX_SAMPLER_W_MASK: u32 = 48;
pub const BGFX_SAMPLER_MIN_POINT: u32 = 64;
pub const BGFX_SAMPLER_MIN_ANISOTROPIC: u32 = 128;
pub const BGFX_SAMPLER_MIN_SHIFT: u32 = 6;
pub const BGFX_SAMPLER_MIN_MASK: u32 = 192;
pub const BGFX_SAMPLER_MAG_POINT: u32 = 256;
pub const BGFX_SAMPLER_MAG_ANISOTROPIC: u32 = 512;
pub const BGFX_SAMPLER_MAG_SHIFT: u32 = 8;
pub const BGFX_SAMPLER_MAG_MASK: u32 = 768;
pub const BGFX_SAMPLER_MIP_POINT: u32 = 1024;
pub const BGFX_SAMPLER_MIP_SHIFT: u32 = 10;
pub const BGFX_SAMPLER_MIP_MASK: u32 = 1024;
pub const BGFX_SAMPLER_COMPARE_LESS: u32 = 65536;
pub const BGFX_SAMPLER_COMPARE_LEQUAL: u32 = 131072;
pub const BGFX_SAMPLER_COMPARE_EQUAL: u32 = 196608;
pub const BGFX_SAMPLER_COMPARE_GEQUAL: u32 = 262144;
pub const BGFX_SAMPLER_COMPARE_GREATER: u32 = 327680;
pub const BGFX_SAMPLER_COMPARE_NOTEQUAL: u32 = 393216;
pub const BGFX_SAMPLER_COMPARE_NEVER: u32 = 458752;
pub const BGFX_SAMPLER_COMPARE_ALWAYS: u32 = 524288;
pub const BGFX_SAMPLER_COMPARE_SHIFT: u32 = 16;
pub const BGFX_SAMPLER_COMPARE_MASK: u32 = 983040;
pub const BGFX_SAMPLER_BORDER_COLOR_SHIFT: u32 = 24;
pub const BGFX_SAMPLER_BORDER_COLOR_MASK: u32 = 251658240;
pub const BGFX_SAMPLER_RESERVED_SHIFT: u32 = 28;
pub const BGFX_SAMPLER_RESERVED_MASK: u32 = 4026531840;
pub const BGFX_SAMPLER_NONE: u32 = 0;
pub const BGFX_SAMPLER_SAMPLE_STENCIL: u32 = 1048576;
pub const BGFX_SAMPLER_POINT: u32 = 1344;
pub const BGFX_SAMPLER_UVW_MIRROR: u32 = 21;
pub const BGFX_SAMPLER_UVW_CLAMP: u32 = 42;
pub const BGFX_SAMPLER_UVW_BORDER: u32 = 63;
pub const BGFX_SAMPLER_BITS_MASK: u32 = 985087;
pub const BGFX_RESET_MSAA_X2: u32 = 16;
pub const BGFX_RESET_MSAA_X4: u32 = 32;
pub const BGFX_RESET_MSAA_X8: u32 = 48;
pub const BGFX_RESET_MSAA_X16: u32 = 64;
pub const BGFX_RESET_MSAA_SHIFT: u32 = 4;
pub const BGFX_RESET_MSAA_MASK: u32 = 112;
pub const BGFX_RESET_NONE: u32 = 0;
pub const BGFX_RESET_FULLSCREEN: u32 = 1;
pub const BGFX_RESET_VSYNC: u32 = 128;
pub const BGFX_RESET_MAXANISOTROPY: u32 = 256;
pub const BGFX_RESET_CAPTURE: u32 = 512;
pub const BGFX_RESET_FLUSH_AFTER_RENDER: u32 = 8192;
pub const BGFX_RESET_FLIP_AFTER_RENDER: u32 = 16384;
pub const BGFX_RESET_SRGB_BACKBUFFER: u32 = 32768;
pub const BGFX_RESET_HDR10: u32 = 65536;
pub const BGFX_RESET_HIDPI: u32 = 131072;
pub const BGFX_RESET_DEPTH_CLAMP: u32 = 262144;
pub const BGFX_RESET_SUSPEND: u32 = 524288;
pub const BGFX_RESET_TRANSPARENT_BACKBUFFER: u32 = 1048576;
pub const BGFX_RESET_FULLSCREEN_SHIFT: u32 = 0;
pub const BGFX_RESET_FULLSCREEN_MASK: u32 = 1;
pub const BGFX_RESET_RESERVED_SHIFT: u32 = 31;
pub const BGFX_RESET_RESERVED_MASK: u32 = 2147483648;
pub const BGFX_CAPS_ALPHA_TO_COVERAGE: u32 = 1;
pub const BGFX_CAPS_BLEND_INDEPENDENT: u32 = 2;
pub const BGFX_CAPS_COMPUTE: u32 = 4;
pub const BGFX_CAPS_CONSERVATIVE_RASTER: u32 = 8;
pub const BGFX_CAPS_DRAW_INDIRECT: u32 = 16;
pub const BGFX_CAPS_FRAGMENT_DEPTH: u32 = 32;
pub const BGFX_CAPS_FRAGMENT_ORDERING: u32 = 64;
pub const BGFX_CAPS_GRAPHICS_DEBUGGER: u32 = 128;
pub const BGFX_CAPS_HDR10: u32 = 256;
pub const BGFX_CAPS_HIDPI: u32 = 512;
pub const BGFX_CAPS_IMAGE_RW: u32 = 1024;
pub const BGFX_CAPS_INDEX32: u32 = 2048;
pub const BGFX_CAPS_INSTANCING: u32 = 4096;
pub const BGFX_CAPS_OCCLUSION_QUERY: u32 = 8192;
pub const BGFX_CAPS_RENDERER_MULTITHREADED: u32 = 16384;
pub const BGFX_CAPS_SWAP_CHAIN: u32 = 32768;
pub const BGFX_CAPS_TEXTURE_2D_ARRAY: u32 = 65536;
pub const BGFX_CAPS_TEXTURE_3D: u32 = 131072;
pub const BGFX_CAPS_TEXTURE_BLIT: u32 = 262144;
pub const BGFX_CAPS_TRANSPARENT_BACKBUFFER: u32 = 524288;
pub const BGFX_CAPS_TEXTURE_COMPARE_RESERVED: u32 = 1048576;
pub const BGFX_CAPS_TEXTURE_COMPARE_LEQUAL: u32 = 2097152;
pub const BGFX_CAPS_TEXTURE_CUBE_ARRAY: u32 = 4194304;
pub const BGFX_CAPS_TEXTURE_DIRECT_ACCESS: u32 = 8388608;
pub const BGFX_CAPS_TEXTURE_READ_BACK: u32 = 16777216;
pub const BGFX_CAPS_VERTEX_ATTRIB_HALF: u32 = 33554432;
pub const BGFX_CAPS_VERTEX_ATTRIB_UINT10: u32 = 67108864;
pub const BGFX_CAPS_VERTEX_ID: u32 = 134217728;
pub const BGFX_CAPS_PRIMITIVE_ID: u32 = 268435456;
pub const BGFX_CAPS_VIEWPORT_LAYER_ARRAY: u32 = 536870912;
pub const BGFX_CAPS_DRAW_INDIRECT_COUNT: u32 = 1073741824;
pub const BGFX_CAPS_TEXTURE_COMPARE_ALL: u32 = 3145728;
pub const BGFX_CAPS_FORMAT_TEXTURE_NONE: u32 = 0;
pub const BGFX_CAPS_FORMAT_TEXTURE_2D: u32 = 1;
pub const BGFX_CAPS_FORMAT_TEXTURE_2D_SRGB: u32 = 2;
pub const BGFX_CAPS_FORMAT_TEXTURE_2D_EMULATED: u32 = 4;
pub const BGFX_CAPS_FORMAT_TEXTURE_3D: u32 = 8;
pub const BGFX_CAPS_FORMAT_TEXTURE_3D_SRGB: u32 = 16;
pub const BGFX_CAPS_FORMAT_TEXTURE_3D_EMULATED: u32 = 32;
pub const BGFX_CAPS_FORMAT_TEXTURE_CUBE: u32 = 64;
pub const BGFX_CAPS_FORMAT_TEXTURE_CUBE_SRGB: u32 = 128;
pub const BGFX_CAPS_FORMAT_TEXTURE_CUBE_EMULATED: u32 = 256;
pub const BGFX_CAPS_FORMAT_TEXTURE_VERTEX: u32 = 512;
pub const BGFX_CAPS_FORMAT_TEXTURE_IMAGE_READ: u32 = 1024;
pub const BGFX_CAPS_FORMAT_TEXTURE_IMAGE_WRITE: u32 = 2048;
pub const BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER: u32 = 4096;
pub const BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER_MSAA: u32 = 8192;
pub const BGFX_CAPS_FORMAT_TEXTURE_MSAA: u32 = 16384;
pub const BGFX_CAPS_FORMAT_TEXTURE_MIP_AUTOGEN: u32 = 32768;
pub const BGFX_RESOLVE_NONE: u32 = 0;
pub const BGFX_RESOLVE_AUTO_GEN_MIPS: u32 = 1;
pub const BGFX_PCI_ID_NONE: u32 = 0;
pub const BGFX_PCI_ID_SOFTWARE_RASTERIZER: u32 = 1;
pub const BGFX_PCI_ID_AMD: u32 = 4098;
pub const BGFX_PCI_ID_APPLE: u32 = 4203;
pub const BGFX_PCI_ID_INTEL: u32 = 32902;
pub const BGFX_PCI_ID_NVIDIA: u32 = 4318;
pub const BGFX_PCI_ID_MICROSOFT: u32 = 5140;
pub const BGFX_PCI_ID_ARM: u32 = 5045;
pub const BGFX_CUBE_MAP_POSITIVE_X: u32 = 0;
pub const BGFX_CUBE_MAP_NEGATIVE_X: u32 = 1;
pub const BGFX_CUBE_MAP_POSITIVE_Y: u32 = 2;
pub const BGFX_CUBE_MAP_NEGATIVE_Y: u32 = 3;
pub const BGFX_CUBE_MAP_POSITIVE_Z: u32 = 4;
pub const BGFX_CUBE_MAP_NEGATIVE_Z: u32 = 5;
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
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 __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [::std::os::raw::c_int; 2usize],
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __suseconds64_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
pub type wchar_t = ::std::os::raw::c_int;
pub type _Float32 = f32;
pub type _Float64 = f64;
pub type _Float32x = f64;
pub type _Float64x = u128;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
    pub quot: ::std::os::raw::c_int,
    pub rem: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
    pub quot: ::std::os::raw::c_long,
    pub rem: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
    pub quot: ::std::os::raw::c_longlong,
    pub rem: ::std::os::raw::c_longlong,
}
extern "C" {
    pub fn __ctype_get_mb_cur_max() -> usize;
}
extern "C" {
    pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
    pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtod(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> f64;
}
extern "C" {
    pub fn strtof(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> f32;
}
extern "C" {
    pub fn strtol(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn strtoul(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strtoq(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtouq(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
    pub fn strtoll(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtoull(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
    pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type off_t = __off_t;
pub type pid_t = __pid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type clockid_t = __clockid_t;
pub type time_t = __time_t;
pub type timer_t = __timer_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = __uint8_t;
pub type u_int16_t = __uint16_t;
pub type u_int32_t = __uint32_t;
pub type u_int64_t = __uint64_t;
pub type register_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
    pub __val: [::std::os::raw::c_ulong; 16usize],
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    pub tv_sec: __time_t,
    pub tv_usec: __suseconds_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
    pub tv_sec: __time_t,
    pub tv_nsec: __syscall_slong_t,
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
    pub __fds_bits: [__fd_mask; 16usize],
}
pub type fd_mask = __fd_mask;
extern "C" {
    pub fn select(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn pselect(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *const timespec,
        __sigmask: *const __sigset_t,
    ) -> ::std::os::raw::c_int;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __atomic_wide_counter {
    pub __value64: ::std::os::raw::c_ulonglong,
    pub __value32: __atomic_wide_counter__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __atomic_wide_counter__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
    pub __prev: *mut __pthread_internal_list,
    pub __next: *mut __pthread_internal_list,
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_slist {
    pub __next: *mut __pthread_internal_slist,
}
pub type __pthread_slist_t = __pthread_internal_slist;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
    pub __lock: ::std::os::raw::c_int,
    pub __count: ::std::os::raw::c_uint,
    pub __owner: ::std::os::raw::c_int,
    pub __nusers: ::std::os::raw::c_uint,
    pub __kind: ::std::os::raw::c_int,
    pub __spins: ::std::os::raw::c_short,
    pub __elision: ::std::os::raw::c_short,
    pub __list: __pthread_list_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
    pub __readers: ::std::os::raw::c_uint,
    pub __writers: ::std::os::raw::c_uint,
    pub __wrphase_futex: ::std::os::raw::c_uint,
    pub __writers_futex: ::std::os::raw::c_uint,
    pub __pad3: ::std::os::raw::c_uint,
    pub __pad4: ::std::os::raw::c_uint,
    pub __cur_writer: ::std::os::raw::c_int,
    pub __shared: ::std::os::raw::c_int,
    pub __rwelision: ::std::os::raw::c_schar,
    pub __pad1: [::std::os::raw::c_uchar; 7usize],
    pub __pad2: ::std::os::raw::c_ulong,
    pub __flags: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
    pub __wseq: __atomic_wide_counter,
    pub __g1_start: __atomic_wide_counter,
    pub __g_refs: [::std::os::raw::c_uint; 2usize],
    pub __g_size: [::std::os::raw::c_uint; 2usize],
    pub __g1_orig_size: ::std::os::raw::c_uint,
    pub __wrefs: ::std::os::raw::c_uint,
    pub __g_signals: [::std::os::raw::c_uint; 2usize],
}
pub type __tss_t = ::std::os::raw::c_uint;
pub type __thrd_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __once_flag {
    pub __data: ::std::os::raw::c_int,
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
}
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
    pub __data: __pthread_mutex_s,
    pub __size: [::std::os::raw::c_char; 40usize],
    pub __align: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
    pub __data: __pthread_cond_s,
    pub __size: [::std::os::raw::c_char; 48usize],
    pub __align: ::std::os::raw::c_longlong,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
    pub __data: __pthread_rwlock_arch_t,
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_long,
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
    pub __size: [::std::os::raw::c_char; 32usize],
    pub __align: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
}
extern "C" {
    pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn srandom(__seed: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn initstate(
        __seed: ::std::os::raw::c_uint,
        __statebuf: *mut ::std::os::raw::c_char,
        __statelen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct random_data {
    pub fptr: *mut i32,
    pub rptr: *mut i32,
    pub state: *mut i32,
    pub rand_type: ::std::os::raw::c_int,
    pub rand_deg: ::std::os::raw::c_int,
    pub rand_sep: ::std::os::raw::c_int,
    pub end_ptr: *mut i32,
}
extern "C" {
    pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srandom_r(
        __seed: ::std::os::raw::c_uint,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn initstate_r(
        __seed: ::std::os::raw::c_uint,
        __statebuf: *mut ::std::os::raw::c_char,
        __statelen: usize,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setstate_r(
        __statebuf: *mut ::std::os::raw::c_char,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srand(__seed: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn drand48() -> f64;
}
extern "C" {
    pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
    pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn srand48(__seedval: ::std::os::raw::c_long);
}
extern "C" {
    pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
    pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drand48_data {
    pub __x: [::std::os::raw::c_ushort; 3usize],
    pub __old_x: [::std::os::raw::c_ushort; 3usize],
    pub __c: ::std::os::raw::c_ushort,
    pub __init: ::std::os::raw::c_ushort,
    pub __a: ::std::os::raw::c_ulonglong,
}
extern "C" {
    pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn erand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lrand48_r(
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn nrand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mrand48_r(
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn jrand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srand48_r(
        __seedval: ::std::os::raw::c_long,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn seed48_r(
        __seed16v: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lcong48_r(
        __param: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn calloc(
        __nmemb: ::std::os::raw::c_ulong,
        __size: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn realloc(
        __ptr: *mut ::std::os::raw::c_void,
        __size: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn free(__ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn reallocarray(
        __ptr: *mut ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn posix_memalign(
        __memptr: *mut *mut ::std::os::raw::c_void,
        __alignment: usize,
        __size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn aligned_alloc(
        __alignment: ::std::os::raw::c_ulong,
        __size: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn abort() -> !;
}
extern "C" {
    pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn at_quick_exit(
        __func: ::std::option::Option<unsafe extern "C" fn()>,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn on_exit(
        __func: ::std::option::Option<
            unsafe extern "C" fn(
                __status: ::std::os::raw::c_int,
                __arg: *mut ::std::os::raw::c_void,
            ),
        >,
        __arg: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
    pub fn quick_exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
    pub fn _Exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
    pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setenv(
        __name: *const ::std::os::raw::c_char,
        __value: *const ::std::os::raw::c_char,
        __replace: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clearenv() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkstemps(
        __template: *mut ::std::os::raw::c_char,
        __suffixlen: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn realpath(
        __name: *const ::std::os::raw::c_char,
        __resolved: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
pub type __compar_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn bsearch(
        __key: *const ::std::os::raw::c_void,
        __base: *const ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
        __compar: __compar_fn_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn qsort(
        __base: *mut ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
        __compar: __compar_fn_t,
    );
}
extern "C" {
    pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
    pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
    pub fn lldiv(
        __numer: ::std::os::raw::c_longlong,
        __denom: ::std::os::raw::c_longlong,
    ) -> lldiv_t;
}
extern "C" {
    pub fn ecvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fcvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ecvt_r(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fcvt_r(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mbtowc(
        __pwc: *mut wchar_t,
        __s: *const ::std::os::raw::c_char,
        __n: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
    pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
    pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getsubopt(
        __optionp: *mut *mut ::std::os::raw::c_char,
        __tokens: *const *mut ::std::os::raw::c_char,
        __valuep: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
        -> ::std::os::raw::c_int;
}
pub const BGFX_FATAL_DEBUG_CHECK: bgfx_fatal = 0;
#[doc = " ( 0)"]
pub const BGFX_FATAL_INVALID_SHADER: bgfx_fatal = 1;
#[doc = " ( 1)"]
pub const BGFX_FATAL_UNABLE_TO_INITIALIZE: bgfx_fatal = 2;
#[doc = " ( 2)"]
pub const BGFX_FATAL_UNABLE_TO_CREATE_TEXTURE: bgfx_fatal = 3;
#[doc = " ( 3)"]
pub const BGFX_FATAL_DEVICE_LOST: bgfx_fatal = 4;
#[doc = " ( 4)"]
pub const BGFX_FATAL_COUNT: bgfx_fatal = 5;
#[doc = " Fatal error enum.\n"]
pub type bgfx_fatal = ::std::os::raw::c_uint;
#[doc = " Fatal error enum.\n"]
pub use self::bgfx_fatal as bgfx_fatal_t;
pub const BGFX_RENDERER_TYPE_NOOP: bgfx_renderer_type = 0;
#[doc = " ( 0) No rendering."]
pub const BGFX_RENDERER_TYPE_AGC: bgfx_renderer_type = 1;
#[doc = " ( 1) AGC"]
pub const BGFX_RENDERER_TYPE_DIRECT3D9: bgfx_renderer_type = 2;
#[doc = " ( 2) Direct3D 9.0"]
pub const BGFX_RENDERER_TYPE_DIRECT3D11: bgfx_renderer_type = 3;
#[doc = " ( 3) Direct3D 11.0"]
pub const BGFX_RENDERER_TYPE_DIRECT3D12: bgfx_renderer_type = 4;
#[doc = " ( 4) Direct3D 12.0"]
pub const BGFX_RENDERER_TYPE_GNM: bgfx_renderer_type = 5;
#[doc = " ( 5) GNM"]
pub const BGFX_RENDERER_TYPE_METAL: bgfx_renderer_type = 6;
#[doc = " ( 6) Metal"]
pub const BGFX_RENDERER_TYPE_NVN: bgfx_renderer_type = 7;
#[doc = " ( 7) NVN"]
pub const BGFX_RENDERER_TYPE_OPENGLES: bgfx_renderer_type = 8;
#[doc = " ( 8) OpenGL ES 2.0+"]
pub const BGFX_RENDERER_TYPE_OPENGL: bgfx_renderer_type = 9;
#[doc = " ( 9) OpenGL 2.1+"]
pub const BGFX_RENDERER_TYPE_VULKAN: bgfx_renderer_type = 10;
#[doc = " (10) Vulkan"]
pub const BGFX_RENDERER_TYPE_WEBGPU: bgfx_renderer_type = 11;
#[doc = " (11) WebGPU"]
pub const BGFX_RENDERER_TYPE_COUNT: bgfx_renderer_type = 12;
#[doc = " Renderer backend type enum.\n"]
pub type bgfx_renderer_type = ::std::os::raw::c_uint;
#[doc = " Renderer backend type enum.\n"]
pub use self::bgfx_renderer_type as bgfx_renderer_type_t;
pub const BGFX_ACCESS_READ: bgfx_access = 0;
#[doc = " ( 0) Read."]
pub const BGFX_ACCESS_WRITE: bgfx_access = 1;
#[doc = " ( 1) Write."]
pub const BGFX_ACCESS_READWRITE: bgfx_access = 2;
#[doc = " ( 2) Read and write."]
pub const BGFX_ACCESS_COUNT: bgfx_access = 3;
#[doc = " Access mode enum.\n"]
pub type bgfx_access = ::std::os::raw::c_uint;
#[doc = " Access mode enum.\n"]
pub use self::bgfx_access as bgfx_access_t;
pub const BGFX_ATTRIB_POSITION: bgfx_attrib = 0;
#[doc = " ( 0) a_position"]
pub const BGFX_ATTRIB_NORMAL: bgfx_attrib = 1;
#[doc = " ( 1) a_normal"]
pub const BGFX_ATTRIB_TANGENT: bgfx_attrib = 2;
#[doc = " ( 2) a_tangent"]
pub const BGFX_ATTRIB_BITANGENT: bgfx_attrib = 3;
#[doc = " ( 3) a_bitangent"]
pub const BGFX_ATTRIB_COLOR0: bgfx_attrib = 4;
#[doc = " ( 4) a_color0"]
pub const BGFX_ATTRIB_COLOR1: bgfx_attrib = 5;
#[doc = " ( 5) a_color1"]
pub const BGFX_ATTRIB_COLOR2: bgfx_attrib = 6;
#[doc = " ( 6) a_color2"]
pub const BGFX_ATTRIB_COLOR3: bgfx_attrib = 7;
#[doc = " ( 7) a_color3"]
pub const BGFX_ATTRIB_INDICES: bgfx_attrib = 8;
#[doc = " ( 8) a_indices"]
pub const BGFX_ATTRIB_WEIGHT: bgfx_attrib = 9;
#[doc = " ( 9) a_weight"]
pub const BGFX_ATTRIB_TEXCOORD0: bgfx_attrib = 10;
#[doc = " (10) a_texcoord0"]
pub const BGFX_ATTRIB_TEXCOORD1: bgfx_attrib = 11;
#[doc = " (11) a_texcoord1"]
pub const BGFX_ATTRIB_TEXCOORD2: bgfx_attrib = 12;
#[doc = " (12) a_texcoord2"]
pub const BGFX_ATTRIB_TEXCOORD3: bgfx_attrib = 13;
#[doc = " (13) a_texcoord3"]
pub const BGFX_ATTRIB_TEXCOORD4: bgfx_attrib = 14;
#[doc = " (14) a_texcoord4"]
pub const BGFX_ATTRIB_TEXCOORD5: bgfx_attrib = 15;
#[doc = " (15) a_texcoord5"]
pub const BGFX_ATTRIB_TEXCOORD6: bgfx_attrib = 16;
#[doc = " (16) a_texcoord6"]
pub const BGFX_ATTRIB_TEXCOORD7: bgfx_attrib = 17;
#[doc = " (17) a_texcoord7"]
pub const BGFX_ATTRIB_COUNT: bgfx_attrib = 18;
#[doc = " Vertex attribute enum.\n"]
pub type bgfx_attrib = ::std::os::raw::c_uint;
#[doc = " Vertex attribute enum.\n"]
pub use self::bgfx_attrib as bgfx_attrib_t;
pub const BGFX_ATTRIB_TYPE_UINT8: bgfx_attrib_type = 0;
#[doc = " ( 0) Uint8"]
pub const BGFX_ATTRIB_TYPE_UINT10: bgfx_attrib_type = 1;
#[doc = " ( 1) Uint10, availability depends on: `BGFX_CAPS_VERTEX_ATTRIB_UINT10`."]
pub const BGFX_ATTRIB_TYPE_INT16: bgfx_attrib_type = 2;
#[doc = " ( 2) Int16"]
pub const BGFX_ATTRIB_TYPE_HALF: bgfx_attrib_type = 3;
#[doc = " ( 3) Half, availability depends on: `BGFX_CAPS_VERTEX_ATTRIB_HALF`."]
pub const BGFX_ATTRIB_TYPE_FLOAT: bgfx_attrib_type = 4;
#[doc = " ( 4) Float"]
pub const BGFX_ATTRIB_TYPE_COUNT: bgfx_attrib_type = 5;
#[doc = " Vertex attribute type enum.\n"]
pub type bgfx_attrib_type = ::std::os::raw::c_uint;
#[doc = " Vertex attribute type enum.\n"]
pub use self::bgfx_attrib_type as bgfx_attrib_type_t;
pub const BGFX_TEXTURE_FORMAT_BC1: bgfx_texture_format = 0;
#[doc = " ( 0) DXT1 R5G6B5A1"]
pub const BGFX_TEXTURE_FORMAT_BC2: bgfx_texture_format = 1;
#[doc = " ( 1) DXT3 R5G6B5A4"]
pub const BGFX_TEXTURE_FORMAT_BC3: bgfx_texture_format = 2;
#[doc = " ( 2) DXT5 R5G6B5A8"]
pub const BGFX_TEXTURE_FORMAT_BC4: bgfx_texture_format = 3;
#[doc = " ( 3) LATC1/ATI1 R8"]
pub const BGFX_TEXTURE_FORMAT_BC5: bgfx_texture_format = 4;
#[doc = " ( 4) LATC2/ATI2 RG8"]
pub const BGFX_TEXTURE_FORMAT_BC6H: bgfx_texture_format = 5;
#[doc = " ( 5) BC6H RGB16F"]
pub const BGFX_TEXTURE_FORMAT_BC7: bgfx_texture_format = 6;
#[doc = " ( 6) BC7 RGB 4-7 bits per color channel, 0-8 bits alpha"]
pub const BGFX_TEXTURE_FORMAT_ETC1: bgfx_texture_format = 7;
#[doc = " ( 7) ETC1 RGB8"]
pub const BGFX_TEXTURE_FORMAT_ETC2: bgfx_texture_format = 8;
#[doc = " ( 8) ETC2 RGB8"]
pub const BGFX_TEXTURE_FORMAT_ETC2A: bgfx_texture_format = 9;
#[doc = " ( 9) ETC2 RGBA8"]
pub const BGFX_TEXTURE_FORMAT_ETC2A1: bgfx_texture_format = 10;
#[doc = " (10) ETC2 RGB8A1"]
pub const BGFX_TEXTURE_FORMAT_PTC12: bgfx_texture_format = 11;
#[doc = " (11) PVRTC1 RGB 2BPP"]
pub const BGFX_TEXTURE_FORMAT_PTC14: bgfx_texture_format = 12;
#[doc = " (12) PVRTC1 RGB 4BPP"]
pub const BGFX_TEXTURE_FORMAT_PTC12A: bgfx_texture_format = 13;
#[doc = " (13) PVRTC1 RGBA 2BPP"]
pub const BGFX_TEXTURE_FORMAT_PTC14A: bgfx_texture_format = 14;
#[doc = " (14) PVRTC1 RGBA 4BPP"]
pub const BGFX_TEXTURE_FORMAT_PTC22: bgfx_texture_format = 15;
#[doc = " (15) PVRTC2 RGBA 2BPP"]
pub const BGFX_TEXTURE_FORMAT_PTC24: bgfx_texture_format = 16;
#[doc = " (16) PVRTC2 RGBA 4BPP"]
pub const BGFX_TEXTURE_FORMAT_ATC: bgfx_texture_format = 17;
#[doc = " (17) ATC RGB 4BPP"]
pub const BGFX_TEXTURE_FORMAT_ATCE: bgfx_texture_format = 18;
#[doc = " (18) ATCE RGBA 8 BPP explicit alpha"]
pub const BGFX_TEXTURE_FORMAT_ATCI: bgfx_texture_format = 19;
#[doc = " (19) ATCI RGBA 8 BPP interpolated alpha"]
pub const BGFX_TEXTURE_FORMAT_ASTC4X4: bgfx_texture_format = 20;
#[doc = " (20) ASTC 4x4 8.0 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC5X4: bgfx_texture_format = 21;
#[doc = " (21) ASTC 5x4 6.40 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC5X5: bgfx_texture_format = 22;
#[doc = " (22) ASTC 5x5 5.12 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC6X5: bgfx_texture_format = 23;
#[doc = " (23) ASTC 6x5 4.27 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC6X6: bgfx_texture_format = 24;
#[doc = " (24) ASTC 6x6 3.56 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC8X5: bgfx_texture_format = 25;
#[doc = " (25) ASTC 8x5 3.20 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC8X6: bgfx_texture_format = 26;
#[doc = " (26) ASTC 8x6 2.67 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC8X8: bgfx_texture_format = 27;
#[doc = " (27) ASTC 8x8 2.00 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC10X5: bgfx_texture_format = 28;
#[doc = " (28) ASTC 10x5 2.56 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC10X6: bgfx_texture_format = 29;
#[doc = " (29) ASTC 10x6 2.13 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC10X8: bgfx_texture_format = 30;
#[doc = " (30) ASTC 10x8 1.60 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC10X10: bgfx_texture_format = 31;
#[doc = " (31) ASTC 10x10 1.28 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC12X10: bgfx_texture_format = 32;
#[doc = " (32) ASTC 12x10 1.07 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC12X12: bgfx_texture_format = 33;
#[doc = " (33) ASTC 12x12 0.89 BPP"]
pub const BGFX_TEXTURE_FORMAT_UNKNOWN: bgfx_texture_format = 34;
#[doc = " (34) Compressed formats above."]
pub const BGFX_TEXTURE_FORMAT_R1: bgfx_texture_format = 35;
#[doc = " (35)"]
pub const BGFX_TEXTURE_FORMAT_A8: bgfx_texture_format = 36;
#[doc = " (36)"]
pub const BGFX_TEXTURE_FORMAT_R8: bgfx_texture_format = 37;
#[doc = " (37)"]
pub const BGFX_TEXTURE_FORMAT_R8I: bgfx_texture_format = 38;
#[doc = " (38)"]
pub const BGFX_TEXTURE_FORMAT_R8U: bgfx_texture_format = 39;
#[doc = " (39)"]
pub const BGFX_TEXTURE_FORMAT_R8S: bgfx_texture_format = 40;
#[doc = " (40)"]
pub const BGFX_TEXTURE_FORMAT_R16: bgfx_texture_format = 41;
#[doc = " (41)"]
pub const BGFX_TEXTURE_FORMAT_R16I: bgfx_texture_format = 42;
#[doc = " (42)"]
pub const BGFX_TEXTURE_FORMAT_R16U: bgfx_texture_format = 43;
#[doc = " (43)"]
pub const BGFX_TEXTURE_FORMAT_R16F: bgfx_texture_format = 44;
#[doc = " (44)"]
pub const BGFX_TEXTURE_FORMAT_R16S: bgfx_texture_format = 45;
#[doc = " (45)"]
pub const BGFX_TEXTURE_FORMAT_R32I: bgfx_texture_format = 46;
#[doc = " (46)"]
pub const BGFX_TEXTURE_FORMAT_R32U: bgfx_texture_format = 47;
#[doc = " (47)"]
pub const BGFX_TEXTURE_FORMAT_R32F: bgfx_texture_format = 48;
#[doc = " (48)"]
pub const BGFX_TEXTURE_FORMAT_RG8: bgfx_texture_format = 49;
#[doc = " (49)"]
pub const BGFX_TEXTURE_FORMAT_RG8I: bgfx_texture_format = 50;
#[doc = " (50)"]
pub const BGFX_TEXTURE_FORMAT_RG8U: bgfx_texture_format = 51;
#[doc = " (51)"]
pub const BGFX_TEXTURE_FORMAT_RG8S: bgfx_texture_format = 52;
#[doc = " (52)"]
pub const BGFX_TEXTURE_FORMAT_RG16: bgfx_texture_format = 53;
#[doc = " (53)"]
pub const BGFX_TEXTURE_FORMAT_RG16I: bgfx_texture_format = 54;
#[doc = " (54)"]
pub const BGFX_TEXTURE_FORMAT_RG16U: bgfx_texture_format = 55;
#[doc = " (55)"]
pub const BGFX_TEXTURE_FORMAT_RG16F: bgfx_texture_format = 56;
#[doc = " (56)"]
pub const BGFX_TEXTURE_FORMAT_RG16S: bgfx_texture_format = 57;
#[doc = " (57)"]
pub const BGFX_TEXTURE_FORMAT_RG32I: bgfx_texture_format = 58;
#[doc = " (58)"]
pub const BGFX_TEXTURE_FORMAT_RG32U: bgfx_texture_format = 59;
#[doc = " (59)"]
pub const BGFX_TEXTURE_FORMAT_RG32F: bgfx_texture_format = 60;
#[doc = " (60)"]
pub const BGFX_TEXTURE_FORMAT_RGB8: bgfx_texture_format = 61;
#[doc = " (61)"]
pub const BGFX_TEXTURE_FORMAT_RGB8I: bgfx_texture_format = 62;
#[doc = " (62)"]
pub const BGFX_TEXTURE_FORMAT_RGB8U: bgfx_texture_format = 63;
#[doc = " (63)"]
pub const BGFX_TEXTURE_FORMAT_RGB8S: bgfx_texture_format = 64;
#[doc = " (64)"]
pub const BGFX_TEXTURE_FORMAT_RGB9E5F: bgfx_texture_format = 65;
#[doc = " (65)"]
pub const BGFX_TEXTURE_FORMAT_BGRA8: bgfx_texture_format = 66;
#[doc = " (66)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8: bgfx_texture_format = 67;
#[doc = " (67)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8I: bgfx_texture_format = 68;
#[doc = " (68)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8U: bgfx_texture_format = 69;
#[doc = " (69)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8S: bgfx_texture_format = 70;
#[doc = " (70)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16: bgfx_texture_format = 71;
#[doc = " (71)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16I: bgfx_texture_format = 72;
#[doc = " (72)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16U: bgfx_texture_format = 73;
#[doc = " (73)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16F: bgfx_texture_format = 74;
#[doc = " (74)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16S: bgfx_texture_format = 75;
#[doc = " (75)"]
pub const BGFX_TEXTURE_FORMAT_RGBA32I: bgfx_texture_format = 76;
#[doc = " (76)"]
pub const BGFX_TEXTURE_FORMAT_RGBA32U: bgfx_texture_format = 77;
#[doc = " (77)"]
pub const BGFX_TEXTURE_FORMAT_RGBA32F: bgfx_texture_format = 78;
#[doc = " (78)"]
pub const BGFX_TEXTURE_FORMAT_B5G6R5: bgfx_texture_format = 79;
#[doc = " (79)"]
pub const BGFX_TEXTURE_FORMAT_R5G6B5: bgfx_texture_format = 80;
#[doc = " (80)"]
pub const BGFX_TEXTURE_FORMAT_BGRA4: bgfx_texture_format = 81;
#[doc = " (81)"]
pub const BGFX_TEXTURE_FORMAT_RGBA4: bgfx_texture_format = 82;
#[doc = " (82)"]
pub const BGFX_TEXTURE_FORMAT_BGR5A1: bgfx_texture_format = 83;
#[doc = " (83)"]
pub const BGFX_TEXTURE_FORMAT_RGB5A1: bgfx_texture_format = 84;
#[doc = " (84)"]
pub const BGFX_TEXTURE_FORMAT_RGB10A2: bgfx_texture_format = 85;
#[doc = " (85)"]
pub const BGFX_TEXTURE_FORMAT_RG11B10F: bgfx_texture_format = 86;
#[doc = " (86)"]
pub const BGFX_TEXTURE_FORMAT_UNKNOWNDEPTH: bgfx_texture_format = 87;
#[doc = " (87) Depth formats below."]
pub const BGFX_TEXTURE_FORMAT_D16: bgfx_texture_format = 88;
#[doc = " (88)"]
pub const BGFX_TEXTURE_FORMAT_D24: bgfx_texture_format = 89;
#[doc = " (89)"]
pub const BGFX_TEXTURE_FORMAT_D24S8: bgfx_texture_format = 90;
#[doc = " (90)"]
pub const BGFX_TEXTURE_FORMAT_D32: bgfx_texture_format = 91;
#[doc = " (91)"]
pub const BGFX_TEXTURE_FORMAT_D16F: bgfx_texture_format = 92;
#[doc = " (92)"]
pub const BGFX_TEXTURE_FORMAT_D24F: bgfx_texture_format = 93;
#[doc = " (93)"]
pub const BGFX_TEXTURE_FORMAT_D32F: bgfx_texture_format = 94;
#[doc = " (94)"]
pub const BGFX_TEXTURE_FORMAT_D0S8: bgfx_texture_format = 95;
#[doc = " (95)"]
pub const BGFX_TEXTURE_FORMAT_COUNT: bgfx_texture_format = 96;
#[doc = " Texture format enum.\n Notation:\n       RGBA16S\n       ^   ^ ^\n       |   | +-- [ ]Unorm\n       |   |     [F]loat\n       |   |     [S]norm\n       |   |     [I]nt\n       |   |     [U]int\n       |   +---- Number of bits per component\n       +-------- Components\n @attention Availability depends on Caps (see: formats).\n"]
pub type bgfx_texture_format = ::std::os::raw::c_uint;
#[doc = " Texture format enum.\n Notation:\n       RGBA16S\n       ^   ^ ^\n       |   | +-- [ ]Unorm\n       |   |     [F]loat\n       |   |     [S]norm\n       |   |     [I]nt\n       |   |     [U]int\n       |   +---- Number of bits per component\n       +-------- Components\n @attention Availability depends on Caps (see: formats).\n"]
pub use self::bgfx_texture_format as bgfx_texture_format_t;
pub const BGFX_UNIFORM_TYPE_SAMPLER: bgfx_uniform_type = 0;
#[doc = " ( 0) Sampler."]
pub const BGFX_UNIFORM_TYPE_END: bgfx_uniform_type = 1;
#[doc = " ( 1) Reserved, do not use."]
pub const BGFX_UNIFORM_TYPE_VEC4: bgfx_uniform_type = 2;
#[doc = " ( 2) 4 floats vector."]
pub const BGFX_UNIFORM_TYPE_MAT3: bgfx_uniform_type = 3;
#[doc = " ( 3) 3x3 matrix."]
pub const BGFX_UNIFORM_TYPE_MAT4: bgfx_uniform_type = 4;
#[doc = " ( 4) 4x4 matrix."]
pub const BGFX_UNIFORM_TYPE_COUNT: bgfx_uniform_type = 5;
#[doc = " Uniform type enum.\n"]
pub type bgfx_uniform_type = ::std::os::raw::c_uint;
#[doc = " Uniform type enum.\n"]
pub use self::bgfx_uniform_type as bgfx_uniform_type_t;
pub const BGFX_BACKBUFFER_RATIO_EQUAL: bgfx_backbuffer_ratio = 0;
#[doc = " ( 0) Equal to backbuffer."]
pub const BGFX_BACKBUFFER_RATIO_HALF: bgfx_backbuffer_ratio = 1;
#[doc = " ( 1) One half size of backbuffer."]
pub const BGFX_BACKBUFFER_RATIO_QUARTER: bgfx_backbuffer_ratio = 2;
#[doc = " ( 2) One quarter size of backbuffer."]
pub const BGFX_BACKBUFFER_RATIO_EIGHTH: bgfx_backbuffer_ratio = 3;
#[doc = " ( 3) One eighth size of backbuffer."]
pub const BGFX_BACKBUFFER_RATIO_SIXTEENTH: bgfx_backbuffer_ratio = 4;
#[doc = " ( 4) One sixteenth size of backbuffer."]
pub const BGFX_BACKBUFFER_RATIO_DOUBLE: bgfx_backbuffer_ratio = 5;
#[doc = " ( 5) Double size of backbuffer."]
pub const BGFX_BACKBUFFER_RATIO_COUNT: bgfx_backbuffer_ratio = 6;
#[doc = " Backbuffer ratio enum.\n"]
pub type bgfx_backbuffer_ratio = ::std::os::raw::c_uint;
#[doc = " Backbuffer ratio enum.\n"]
pub use self::bgfx_backbuffer_ratio as bgfx_backbuffer_ratio_t;
pub const BGFX_OCCLUSION_QUERY_RESULT_INVISIBLE: bgfx_occlusion_query_result = 0;
#[doc = " ( 0) Query failed test."]
pub const BGFX_OCCLUSION_QUERY_RESULT_VISIBLE: bgfx_occlusion_query_result = 1;
#[doc = " ( 1) Query passed test."]
pub const BGFX_OCCLUSION_QUERY_RESULT_NORESULT: bgfx_occlusion_query_result = 2;
#[doc = " ( 2) Query result is not available yet."]
pub const BGFX_OCCLUSION_QUERY_RESULT_COUNT: bgfx_occlusion_query_result = 3;
#[doc = " Occlusion query result.\n"]
pub type bgfx_occlusion_query_result = ::std::os::raw::c_uint;
#[doc = " Occlusion query result.\n"]
pub use self::bgfx_occlusion_query_result as bgfx_occlusion_query_result_t;
pub const BGFX_TOPOLOGY_TRI_LIST: bgfx_topology = 0;
#[doc = " ( 0) Triangle list."]
pub const BGFX_TOPOLOGY_TRI_STRIP: bgfx_topology = 1;
#[doc = " ( 1) Triangle strip."]
pub const BGFX_TOPOLOGY_LINE_LIST: bgfx_topology = 2;
#[doc = " ( 2) Line list."]
pub const BGFX_TOPOLOGY_LINE_STRIP: bgfx_topology = 3;
#[doc = " ( 3) Line strip."]
pub const BGFX_TOPOLOGY_POINT_LIST: bgfx_topology = 4;
#[doc = " ( 4) Point list."]
pub const BGFX_TOPOLOGY_COUNT: bgfx_topology = 5;
#[doc = " Primitive topology.\n"]
pub type bgfx_topology = ::std::os::raw::c_uint;
#[doc = " Primitive topology.\n"]
pub use self::bgfx_topology as bgfx_topology_t;
pub const BGFX_TOPOLOGY_CONVERT_TRI_LIST_FLIP_WINDING: bgfx_topology_convert = 0;
#[doc = " ( 0) Flip winding order of triangle list."]
pub const BGFX_TOPOLOGY_CONVERT_TRI_STRIP_FLIP_WINDING: bgfx_topology_convert = 1;
#[doc = " ( 1) Flip winding order of triangle strip."]
pub const BGFX_TOPOLOGY_CONVERT_TRI_LIST_TO_LINE_LIST: bgfx_topology_convert = 2;
#[doc = " ( 2) Convert triangle list to line list."]
pub const BGFX_TOPOLOGY_CONVERT_TRI_STRIP_TO_TRI_LIST: bgfx_topology_convert = 3;
#[doc = " ( 3) Convert triangle strip to triangle list."]
pub const BGFX_TOPOLOGY_CONVERT_LINE_STRIP_TO_LINE_LIST: bgfx_topology_convert = 4;
#[doc = " ( 4) Convert line strip to line list."]
pub const BGFX_TOPOLOGY_CONVERT_COUNT: bgfx_topology_convert = 5;
#[doc = " Topology conversion function.\n"]
pub type bgfx_topology_convert = ::std::os::raw::c_uint;
#[doc = " Topology conversion function.\n"]
pub use self::bgfx_topology_convert as bgfx_topology_convert_t;
pub const BGFX_TOPOLOGY_SORT_DIRECTION_FRONT_TO_BACK_MIN: bgfx_topology_sort = 0;
#[doc = " ( 0)"]
pub const BGFX_TOPOLOGY_SORT_DIRECTION_FRONT_TO_BACK_AVG: bgfx_topology_sort = 1;
#[doc = " ( 1)"]
pub const BGFX_TOPOLOGY_SORT_DIRECTION_FRONT_TO_BACK_MAX: bgfx_topology_sort = 2;
#[doc = " ( 2)"]
pub const BGFX_TOPOLOGY_SORT_DIRECTION_BACK_TO_FRONT_MIN: bgfx_topology_sort = 3;
#[doc = " ( 3)"]
pub const BGFX_TOPOLOGY_SORT_DIRECTION_BACK_TO_FRONT_AVG: bgfx_topology_sort = 4;
#[doc = " ( 4)"]
pub const BGFX_TOPOLOGY_SORT_DIRECTION_BACK_TO_FRONT_MAX: bgfx_topology_sort = 5;
#[doc = " ( 5)"]
pub const BGFX_TOPOLOGY_SORT_DISTANCE_FRONT_TO_BACK_MIN: bgfx_topology_sort = 6;
#[doc = " ( 6)"]
pub const BGFX_TOPOLOGY_SORT_DISTANCE_FRONT_TO_BACK_AVG: bgfx_topology_sort = 7;
#[doc = " ( 7)"]
pub const BGFX_TOPOLOGY_SORT_DISTANCE_FRONT_TO_BACK_MAX: bgfx_topology_sort = 8;
#[doc = " ( 8)"]
pub const BGFX_TOPOLOGY_SORT_DISTANCE_BACK_TO_FRONT_MIN: bgfx_topology_sort = 9;
#[doc = " ( 9)"]
pub const BGFX_TOPOLOGY_SORT_DISTANCE_BACK_TO_FRONT_AVG: bgfx_topology_sort = 10;
#[doc = " (10)"]
pub const BGFX_TOPOLOGY_SORT_DISTANCE_BACK_TO_FRONT_MAX: bgfx_topology_sort = 11;
#[doc = " (11)"]
pub const BGFX_TOPOLOGY_SORT_COUNT: bgfx_topology_sort = 12;
#[doc = " Topology sort order.\n"]
pub type bgfx_topology_sort = ::std::os::raw::c_uint;
#[doc = " Topology sort order.\n"]
pub use self::bgfx_topology_sort as bgfx_topology_sort_t;
pub const BGFX_VIEW_MODE_DEFAULT: bgfx_view_mode = 0;
#[doc = " ( 0) Default sort order."]
pub const BGFX_VIEW_MODE_SEQUENTIAL: bgfx_view_mode = 1;
#[doc = " ( 1) Sort in the same order in which submit calls were called."]
pub const BGFX_VIEW_MODE_DEPTH_ASCENDING: bgfx_view_mode = 2;
#[doc = " ( 2) Sort draw call depth in ascending order."]
pub const BGFX_VIEW_MODE_DEPTH_DESCENDING: bgfx_view_mode = 3;
#[doc = " ( 3) Sort draw call depth in descending order."]
pub const BGFX_VIEW_MODE_COUNT: bgfx_view_mode = 4;
#[doc = " View mode sets draw call sort order.\n"]
pub type bgfx_view_mode = ::std::os::raw::c_uint;
#[doc = " View mode sets draw call sort order.\n"]
pub use self::bgfx_view_mode as bgfx_view_mode_t;
pub const BGFX_NATIVE_WINDOW_HANDLE_TYPE_DEFAULT: bgfx_native_window_handle_type = 0;
#[doc = " ( 0) Platform default handle type (X11 on Linux)"]
pub const BGFX_NATIVE_WINDOW_HANDLE_TYPE_WAYLAND: bgfx_native_window_handle_type = 1;
#[doc = " ( 1) Wayland."]
pub const BGFX_NATIVE_WINDOW_HANDLE_TYPE_COUNT: bgfx_native_window_handle_type = 2;
#[doc = " Native window handle type..\n"]
pub type bgfx_native_window_handle_type = ::std::os::raw::c_uint;
#[doc = " Native window handle type..\n"]
pub use self::bgfx_native_window_handle_type as bgfx_native_window_handle_type_t;
pub const BGFX_RENDER_FRAME_NO_CONTEXT: bgfx_render_frame = 0;
#[doc = " ( 0) Renderer context is not created yet."]
pub const BGFX_RENDER_FRAME_RENDER: bgfx_render_frame = 1;
#[doc = " ( 1) Renderer context is created and rendering."]
pub const BGFX_RENDER_FRAME_TIMEOUT: bgfx_render_frame = 2;
#[doc = " ( 2) Renderer context wait for main thread signal timed out without rendering."]
pub const BGFX_RENDER_FRAME_EXITING: bgfx_render_frame = 3;
#[doc = " ( 3) Renderer context is getting destroyed."]
pub const BGFX_RENDER_FRAME_COUNT: bgfx_render_frame = 4;
#[doc = " Render frame enum.\n"]
pub type bgfx_render_frame = ::std::os::raw::c_uint;
#[doc = " Render frame enum.\n"]
pub use self::bgfx_render_frame as bgfx_render_frame_t;
pub type bgfx_view_id_t = u16;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_allocator_interface_s {
    pub vtbl: *const bgfx_allocator_vtbl_s,
}
pub type bgfx_allocator_interface_t = bgfx_allocator_interface_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_allocator_vtbl_s {
    pub realloc: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_allocator_interface_t,
            _ptr: *mut ::std::os::raw::c_void,
            _size: usize,
            _align: usize,
            _file: *const ::std::os::raw::c_char,
            _line: u32,
        ) -> *mut ::std::os::raw::c_void,
    >,
}
pub type bgfx_allocator_vtbl_t = bgfx_allocator_vtbl_s;
pub type bgfx_interface_vtbl_t = bgfx_interface_vtbl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_callback_interface_s {
    pub vtbl: *const bgfx_callback_vtbl_s,
}
pub type bgfx_callback_interface_t = bgfx_callback_interface_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_callback_vtbl_s {
    pub fatal: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _filePath: *const ::std::os::raw::c_char,
            _line: u16,
            _code: bgfx_fatal_t,
            _str: *const ::std::os::raw::c_char,
        ),
    >,
    pub trace_vargs: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _filePath: *const ::std::os::raw::c_char,
            _line: u16,
            _format: *const ::std::os::raw::c_char,
            _argList: *mut __va_list_tag,
        ),
    >,
    pub profiler_begin: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _name: *const ::std::os::raw::c_char,
            _abgr: u32,
            _filePath: *const ::std::os::raw::c_char,
            _line: u16,
        ),
    >,
    pub profiler_begin_literal: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _name: *const ::std::os::raw::c_char,
            _abgr: u32,
            _filePath: *const ::std::os::raw::c_char,
            _line: u16,
        ),
    >,
    pub profiler_end:
        ::std::option::Option<unsafe extern "C" fn(_this: *mut bgfx_callback_interface_t)>,
    pub cache_read_size: ::std::option::Option<
        unsafe extern "C" fn(_this: *mut bgfx_callback_interface_t, _id: u64) -> u32,
    >,
    pub cache_read: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _id: u64,
            _data: *mut ::std::os::raw::c_void,
            _size: u32,
        ) -> bool,
    >,
    pub cache_write: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _id: u64,
            _data: *const ::std::os::raw::c_void,
            _size: u32,
        ),
    >,
    pub screen_shot: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _filePath: *const ::std::os::raw::c_char,
            _width: u32,
            _height: u32,
            _pitch: u32,
            _data: *const ::std::os::raw::c_void,
            _size: u32,
            _yflip: bool,
        ),
    >,
    pub capture_begin: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _width: u32,
            _height: u32,
            _pitch: u32,
            _format: bgfx_texture_format_t,
            _yflip: bool,
        ),
    >,
    pub capture_end:
        ::std::option::Option<unsafe extern "C" fn(_this: *mut bgfx_callback_interface_t)>,
    pub capture_frame: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_callback_interface_t,
            _data: *const ::std::os::raw::c_void,
            _size: u32,
        ),
    >,
}
pub type bgfx_callback_vtbl_t = bgfx_callback_vtbl_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_dynamic_index_buffer_handle_s {
    pub idx: u16,
}
pub type bgfx_dynamic_index_buffer_handle_t = bgfx_dynamic_index_buffer_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_dynamic_vertex_buffer_handle_s {
    pub idx: u16,
}
pub type bgfx_dynamic_vertex_buffer_handle_t = bgfx_dynamic_vertex_buffer_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_frame_buffer_handle_s {
    pub idx: u16,
}
pub type bgfx_frame_buffer_handle_t = bgfx_frame_buffer_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_index_buffer_handle_s {
    pub idx: u16,
}
pub type bgfx_index_buffer_handle_t = bgfx_index_buffer_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_indirect_buffer_handle_s {
    pub idx: u16,
}
pub type bgfx_indirect_buffer_handle_t = bgfx_indirect_buffer_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_occlusion_query_handle_s {
    pub idx: u16,
}
pub type bgfx_occlusion_query_handle_t = bgfx_occlusion_query_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_program_handle_s {
    pub idx: u16,
}
pub type bgfx_program_handle_t = bgfx_program_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_shader_handle_s {
    pub idx: u16,
}
pub type bgfx_shader_handle_t = bgfx_shader_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_texture_handle_s {
    pub idx: u16,
}
pub type bgfx_texture_handle_t = bgfx_texture_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_uniform_handle_s {
    pub idx: u16,
}
pub type bgfx_uniform_handle_t = bgfx_uniform_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_vertex_buffer_handle_s {
    pub idx: u16,
}
pub type bgfx_vertex_buffer_handle_t = bgfx_vertex_buffer_handle_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_vertex_layout_handle_s {
    pub idx: u16,
}
pub type bgfx_vertex_layout_handle_t = bgfx_vertex_layout_handle_s;
#[doc = " Memory release callback.\n\n @param[in] _ptr Pointer to allocated data.\n @param[in] _userData User defined data if needed.\n"]
pub type bgfx_release_fn_t = ::std::option::Option<
    unsafe extern "C" fn(_ptr: *mut ::std::os::raw::c_void, _userData: *mut ::std::os::raw::c_void),
>;
#[doc = " GPU info.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_caps_gpu_s {
    pub vendorId: u16,
    #[doc = " Vendor PCI id. See `BGFX_PCI_ID_*`."]
    pub deviceId: u16,
}
#[doc = " GPU info.\n"]
pub type bgfx_caps_gpu_t = bgfx_caps_gpu_s;
#[doc = " Renderer runtime limits.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_caps_limits_s {
    pub maxDrawCalls: u32,
    #[doc = " Maximum number of draw calls."]
    pub maxBlits: u32,
    #[doc = " Maximum number of blit calls."]
    pub maxTextureSize: u32,
    #[doc = " Maximum texture size."]
    pub maxTextureLayers: u32,
    #[doc = " Maximum texture layers."]
    pub maxViews: u32,
    #[doc = " Maximum number of views."]
    pub maxFrameBuffers: u32,
    #[doc = " Maximum number of frame buffer handles."]
    pub maxFBAttachments: u32,
    #[doc = " Maximum number of frame buffer attachments."]
    pub maxPrograms: u32,
    #[doc = " Maximum number of program handles."]
    pub maxShaders: u32,
    #[doc = " Maximum number of shader handles."]
    pub maxTextures: u32,
    #[doc = " Maximum number of texture handles."]
    pub maxTextureSamplers: u32,
    #[doc = " Maximum number of texture samplers."]
    pub maxComputeBindings: u32,
    #[doc = " Maximum number of compute bindings."]
    pub maxVertexLayouts: u32,
    #[doc = " Maximum number of vertex format layouts."]
    pub maxVertexStreams: u32,
    #[doc = " Maximum number of vertex streams."]
    pub maxIndexBuffers: u32,
    #[doc = " Maximum number of index buffer handles."]
    pub maxVertexBuffers: u32,
    #[doc = " Maximum number of vertex buffer handles."]
    pub maxDynamicIndexBuffers: u32,
    #[doc = " Maximum number of dynamic index buffer handles."]
    pub maxDynamicVertexBuffers: u32,
    #[doc = " Maximum number of dynamic vertex buffer handles."]
    pub maxUniforms: u32,
    #[doc = " Maximum number of uniform handles."]
    pub maxOcclusionQueries: u32,
    #[doc = " Maximum number of occlusion query handles."]
    pub maxEncoders: u32,
    #[doc = " Maximum number of encoder threads."]
    pub minResourceCbSize: u32,
    #[doc = " Minimum resource command buffer size."]
    pub transientVbSize: u32,
    #[doc = " Maximum transient vertex buffer size."]
    pub transientIbSize: u32,
}
#[doc = " Renderer runtime limits.\n"]
pub type bgfx_caps_limits_t = bgfx_caps_limits_s;
#[doc = " Renderer capabilities.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_caps_s {
    pub rendererType: bgfx_renderer_type_t,
    #[doc = " Supported functionality.\n   @attention See `BGFX_CAPS_*` flags at https://bkaradzic.github.io/bgfx/bgfx.html#available-caps"]
    pub supported: u64,
    pub vendorId: u16,
    #[doc = " Selected GPU vendor PCI id."]
    pub deviceId: u16,
    #[doc = " Selected GPU device id."]
    pub homogeneousDepth: bool,
    #[doc = " True when NDC depth is in [-1, 1] range, otherwise its [0, 1]."]
    pub originBottomLeft: bool,
    #[doc = " True when NDC origin is at bottom left."]
    pub numGPUs: u8,
    #[doc = " Number of enumerated GPUs."]
    pub gpu: [bgfx_caps_gpu_t; 4usize],
    #[doc = " Enumerated GPUs."]
    pub limits: bgfx_caps_limits_t,
    #[doc = " Supported texture format capabilities flags:\n   - `BGFX_CAPS_FORMAT_TEXTURE_NONE` - Texture format is not supported.\n   - `BGFX_CAPS_FORMAT_TEXTURE_2D` - Texture format is supported.\n   - `BGFX_CAPS_FORMAT_TEXTURE_2D_SRGB` - Texture as sRGB format is supported.\n   - `BGFX_CAPS_FORMAT_TEXTURE_2D_EMULATED` - Texture format is emulated.\n   - `BGFX_CAPS_FORMAT_TEXTURE_3D` - Texture format is supported.\n   - `BGFX_CAPS_FORMAT_TEXTURE_3D_SRGB` - Texture as sRGB format is supported.\n   - `BGFX_CAPS_FORMAT_TEXTURE_3D_EMULATED` - Texture format is emulated.\n   - `BGFX_CAPS_FORMAT_TEXTURE_CUBE` - Texture format is supported.\n   - `BGFX_CAPS_FORMAT_TEXTURE_CUBE_SRGB` - Texture as sRGB format is supported.\n   - `BGFX_CAPS_FORMAT_TEXTURE_CUBE_EMULATED` - Texture format is emulated.\n   - `BGFX_CAPS_FORMAT_TEXTURE_VERTEX` - Texture format can be used from vertex shader.\n   - `BGFX_CAPS_FORMAT_TEXTURE_IMAGE_READ` - Texture format can be used as image\n     and read from.\n   - `BGFX_CAPS_FORMAT_TEXTURE_IMAGE_WRITE` - Texture format can be used as image\n     and written to.\n   - `BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER` - Texture format can be used as frame\n     buffer.\n   - `BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER_MSAA` - Texture format can be used as MSAA\n     frame buffer.\n   - `BGFX_CAPS_FORMAT_TEXTURE_MSAA` - Texture can be sampled as MSAA.\n   - `BGFX_CAPS_FORMAT_TEXTURE_MIP_AUTOGEN` - Texture format supports auto-generated\n     mips."]
    pub formats: [u16; 96usize],
}
#[doc = " Renderer capabilities.\n"]
pub type bgfx_caps_t = bgfx_caps_s;
#[doc = " Internal data.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_internal_data_s {
    pub caps: *const bgfx_caps_t,
    #[doc = " Renderer capabilities."]
    pub context: *mut ::std::os::raw::c_void,
}
#[doc = " Internal data.\n"]
pub type bgfx_internal_data_t = bgfx_internal_data_s;
#[doc = " Platform data.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_platform_data_s {
    pub ndt: *mut ::std::os::raw::c_void,
    #[doc = " Native window handle. If `NULL`, bgfx will create a headless\n context/device, provided the rendering API supports it."]
    pub nwh: *mut ::std::os::raw::c_void,
    #[doc = " GL context, D3D device, or Vulkan device. If `NULL`, bgfx\n will create context/device."]
    pub context: *mut ::std::os::raw::c_void,
    #[doc = " GL back-buffer, or D3D render target view. If `NULL` bgfx will\n create back-buffer color surface."]
    pub backBuffer: *mut ::std::os::raw::c_void,
    #[doc = " Backbuffer depth/stencil. If `NULL`, bgfx will create a back-buffer\n depth/stencil surface."]
    pub backBufferDS: *mut ::std::os::raw::c_void,
    #[doc = " Handle type. Needed for platforms having more than one option."]
    pub type_: bgfx_native_window_handle_type_t,
}
#[doc = " Platform data.\n"]
pub type bgfx_platform_data_t = bgfx_platform_data_s;
#[doc = " Backbuffer resolution and reset parameters.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_resolution_s {
    pub format: bgfx_texture_format_t,
    #[doc = " Backbuffer format."]
    pub width: u32,
    #[doc = " Backbuffer width."]
    pub height: u32,
    #[doc = " Backbuffer height."]
    pub reset: u32,
    #[doc = " Reset parameters."]
    pub numBackBuffers: u8,
    #[doc = " Number of back buffers."]
    pub maxFrameLatency: u8,
    #[doc = " Maximum frame latency."]
    pub debugTextScale: u8,
}
#[doc = " Backbuffer resolution and reset parameters.\n"]
pub type bgfx_resolution_t = bgfx_resolution_s;
#[doc = " Configurable runtime limits parameters.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_init_limits_s {
    pub maxEncoders: u16,
    #[doc = " Maximum number of encoder threads."]
    pub minResourceCbSize: u32,
    #[doc = " Minimum resource command buffer size."]
    pub transientVbSize: u32,
    #[doc = " Maximum transient vertex buffer size."]
    pub transientIbSize: u32,
}
#[doc = " Configurable runtime limits parameters.\n"]
pub type bgfx_init_limits_t = bgfx_init_limits_s;
#[doc = " Initialization parameters used by `bgfx::init`.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_init_s {
    #[doc = " Select rendering backend. When set to RendererType::Count\n a default rendering backend will be selected appropriate to the platform.\n See: `bgfx::RendererType`"]
    pub type_: bgfx_renderer_type_t,
    #[doc = " Vendor PCI ID. If set to `BGFX_PCI_ID_NONE`, discrete and integrated\n GPUs will be prioritised.\n   - `BGFX_PCI_ID_NONE` - Autoselect adapter.\n   - `BGFX_PCI_ID_SOFTWARE_RASTERIZER` - Software rasterizer.\n   - `BGFX_PCI_ID_AMD` - AMD adapter.\n   - `BGFX_PCI_ID_APPLE` - Apple adapter.\n   - `BGFX_PCI_ID_INTEL` - Intel adapter.\n   - `BGFX_PCI_ID_NVIDIA` - NVIDIA adapter.\n   - `BGFX_PCI_ID_MICROSOFT` - Microsoft adapter."]
    pub vendorId: u16,
    #[doc = " Device ID. If set to 0 it will select first device, or device with\n matching ID."]
    pub deviceId: u16,
    pub capabilities: u64,
    #[doc = " Capabilities initialization mask (default: UINT64_MAX)."]
    pub debug: bool,
    #[doc = " Enable device for debugging."]
    pub profile: bool,
    #[doc = " Enable device for profiling."]
    pub platformData: bgfx_platform_data_t,
    #[doc = " Platform data."]
    pub resolution: bgfx_resolution_t,
    #[doc = " Backbuffer resolution and reset parameters. See: `bgfx::Resolution`."]
    pub limits: bgfx_init_limits_t,
    #[doc = " Provide application specific callback interface.\n See: `bgfx::CallbackI`"]
    pub callback: *mut bgfx_callback_interface_t,
    #[doc = " Custom allocator. When a custom allocator is not\n specified, bgfx uses the CRT allocator. Bgfx assumes\n custom allocator is thread safe."]
    pub allocator: *mut bgfx_allocator_interface_t,
}
#[doc = " Initialization parameters used by `bgfx::init`.\n"]
pub type bgfx_init_t = bgfx_init_s;
#[doc = " Memory must be obtained by calling `bgfx::alloc`, `bgfx::copy`, or `bgfx::makeRef`.\n @attention It is illegal to create this structure on stack and pass it to any bgfx API.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_memory_s {
    pub data: *mut u8,
    #[doc = " Pointer to data."]
    pub size: u32,
}
#[doc = " Memory must be obtained by calling `bgfx::alloc`, `bgfx::copy`, or `bgfx::makeRef`.\n @attention It is illegal to create this structure on stack and pass it to any bgfx API.\n"]
pub type bgfx_memory_t = bgfx_memory_s;
#[doc = " Transient index buffer.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_transient_index_buffer_s {
    pub data: *mut u8,
    #[doc = " Pointer to data."]
    pub size: u32,
    #[doc = " Data size."]
    pub startIndex: u32,
    #[doc = " First index."]
    pub handle: bgfx_index_buffer_handle_t,
    #[doc = " Index buffer handle."]
    pub isIndex16: bool,
}
#[doc = " Transient index buffer.\n"]
pub type bgfx_transient_index_buffer_t = bgfx_transient_index_buffer_s;
#[doc = " Transient vertex buffer.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_transient_vertex_buffer_s {
    pub data: *mut u8,
    #[doc = " Pointer to data."]
    pub size: u32,
    #[doc = " Data size."]
    pub startVertex: u32,
    #[doc = " First vertex."]
    pub stride: u16,
    #[doc = " Vertex stride."]
    pub handle: bgfx_vertex_buffer_handle_t,
    #[doc = " Vertex buffer handle."]
    pub layoutHandle: bgfx_vertex_layout_handle_t,
}
#[doc = " Transient vertex buffer.\n"]
pub type bgfx_transient_vertex_buffer_t = bgfx_transient_vertex_buffer_s;
#[doc = " Instance data buffer info.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_instance_data_buffer_s {
    pub data: *mut u8,
    #[doc = " Pointer to data."]
    pub size: u32,
    #[doc = " Data size."]
    pub offset: u32,
    #[doc = " Offset in vertex buffer."]
    pub num: u32,
    #[doc = " Number of instances."]
    pub stride: u16,
    #[doc = " Vertex buffer stride."]
    pub handle: bgfx_vertex_buffer_handle_t,
}
#[doc = " Instance data buffer info.\n"]
pub type bgfx_instance_data_buffer_t = bgfx_instance_data_buffer_s;
#[doc = " Texture info.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_texture_info_s {
    pub format: bgfx_texture_format_t,
    #[doc = " Texture format."]
    pub storageSize: u32,
    #[doc = " Total amount of bytes required to store texture."]
    pub width: u16,
    #[doc = " Texture width."]
    pub height: u16,
    #[doc = " Texture height."]
    pub depth: u16,
    #[doc = " Texture depth."]
    pub numLayers: u16,
    #[doc = " Number of layers in texture array."]
    pub numMips: u8,
    #[doc = " Number of MIP maps."]
    pub bitsPerPixel: u8,
    #[doc = " Format bits per pixel."]
    pub cubeMap: bool,
}
#[doc = " Texture info.\n"]
pub type bgfx_texture_info_t = bgfx_texture_info_s;
#[doc = " Uniform info.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_uniform_info_s {
    pub name: [::std::os::raw::c_char; 256usize],
    #[doc = " Uniform name."]
    pub type_: bgfx_uniform_type_t,
    #[doc = " Uniform type."]
    pub num: u16,
}
#[doc = " Uniform info.\n"]
pub type bgfx_uniform_info_t = bgfx_uniform_info_s;
#[doc = " Frame buffer texture attachment info.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_attachment_s {
    pub access: bgfx_access_t,
    #[doc = " Attachment access. See `Access::Enum`."]
    pub handle: bgfx_texture_handle_t,
    #[doc = " Render target texture handle."]
    pub mip: u16,
    #[doc = " Mip level."]
    pub layer: u16,
    #[doc = " Cubemap side or depth layer/slice to use."]
    pub numLayers: u16,
    #[doc = " Number of texture layer/slice(s) in array to use."]
    pub resolve: u8,
}
#[doc = " Frame buffer texture attachment info.\n"]
pub type bgfx_attachment_t = bgfx_attachment_s;
#[doc = " Transform data.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_transform_s {
    pub data: *mut f32,
    #[doc = " Pointer to first 4x4 matrix."]
    pub num: u16,
}
#[doc = " Transform data.\n"]
pub type bgfx_transform_t = bgfx_transform_s;
#[doc = " View stats.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_view_stats_s {
    pub name: [::std::os::raw::c_char; 256usize],
    #[doc = " View name."]
    pub view: bgfx_view_id_t,
    #[doc = " View id."]
    pub cpuTimeBegin: i64,
    #[doc = " CPU (submit) begin time."]
    pub cpuTimeEnd: i64,
    #[doc = " CPU (submit) end time."]
    pub gpuTimeBegin: i64,
    #[doc = " GPU begin time."]
    pub gpuTimeEnd: i64,
    #[doc = " GPU end time."]
    pub gpuFrameNum: u32,
}
#[doc = " View stats.\n"]
pub type bgfx_view_stats_t = bgfx_view_stats_s;
#[doc = " Encoder stats.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_encoder_stats_s {
    pub cpuTimeBegin: i64,
    #[doc = " Encoder thread CPU submit begin time."]
    pub cpuTimeEnd: i64,
}
#[doc = " Encoder stats.\n"]
pub type bgfx_encoder_stats_t = bgfx_encoder_stats_s;
#[doc = " Renderer statistics data.\n @remarks All time values are high-resolution timestamps, while\n time frequencies define timestamps-per-second for that hardware.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_stats_s {
    pub cpuTimeFrame: i64,
    #[doc = " CPU time between two `bgfx::frame` calls."]
    pub cpuTimeBegin: i64,
    #[doc = " Render thread CPU submit begin time."]
    pub cpuTimeEnd: i64,
    #[doc = " Render thread CPU submit end time."]
    pub cpuTimerFreq: i64,
    #[doc = " CPU timer frequency. Timestamps-per-second"]
    pub gpuTimeBegin: i64,
    #[doc = " GPU frame begin time."]
    pub gpuTimeEnd: i64,
    #[doc = " GPU frame end time."]
    pub gpuTimerFreq: i64,
    #[doc = " GPU timer frequency."]
    pub waitRender: i64,
    #[doc = " Time spent waiting for render backend thread to finish issuing draw commands to underlying graphics API."]
    pub waitSubmit: i64,
    #[doc = " Time spent waiting for submit thread to advance to next frame."]
    pub numDraw: u32,
    #[doc = " Number of draw calls submitted."]
    pub numCompute: u32,
    #[doc = " Number of compute calls submitted."]
    pub numBlit: u32,
    #[doc = " Number of blit calls submitted."]
    pub maxGpuLatency: u32,
    #[doc = " GPU driver latency."]
    pub gpuFrameNum: u32,
    #[doc = " Frame which generated gpuTimeBegin, gpuTimeEnd."]
    pub numDynamicIndexBuffers: u16,
    #[doc = " Number of used dynamic index buffers."]
    pub numDynamicVertexBuffers: u16,
    #[doc = " Number of used dynamic vertex buffers."]
    pub numFrameBuffers: u16,
    #[doc = " Number of used frame buffers."]
    pub numIndexBuffers: u16,
    #[doc = " Number of used index buffers."]
    pub numOcclusionQueries: u16,
    #[doc = " Number of used occlusion queries."]
    pub numPrograms: u16,
    #[doc = " Number of used programs."]
    pub numShaders: u16,
    #[doc = " Number of used shaders."]
    pub numTextures: u16,
    #[doc = " Number of used textures."]
    pub numUniforms: u16,
    #[doc = " Number of used uniforms."]
    pub numVertexBuffers: u16,
    #[doc = " Number of used vertex buffers."]
    pub numVertexLayouts: u16,
    #[doc = " Number of used vertex layouts."]
    pub textureMemoryUsed: i64,
    #[doc = " Estimate of texture memory used."]
    pub rtMemoryUsed: i64,
    #[doc = " Estimate of render target memory used."]
    pub transientVbUsed: i32,
    #[doc = " Amount of transient vertex buffer used."]
    pub transientIbUsed: i32,
    #[doc = " Amount of transient index buffer used."]
    pub numPrims: [u32; 5usize],
    #[doc = " Number of primitives rendered."]
    pub gpuMemoryMax: i64,
    #[doc = " Maximum available GPU memory for application."]
    pub gpuMemoryUsed: i64,
    #[doc = " Amount of GPU memory used by the application."]
    pub width: u16,
    #[doc = " Backbuffer width in pixels."]
    pub height: u16,
    #[doc = " Backbuffer height in pixels."]
    pub textWidth: u16,
    #[doc = " Debug text width in characters."]
    pub textHeight: u16,
    #[doc = " Debug text height in characters."]
    pub numViews: u16,
    #[doc = " Number of view stats."]
    pub viewStats: *mut bgfx_view_stats_t,
    #[doc = " Array of View stats."]
    pub numEncoders: u8,
    #[doc = " Number of encoders used during frame."]
    pub encoderStats: *mut bgfx_encoder_stats_t,
}
#[doc = " Renderer statistics data.\n @remarks All time values are high-resolution timestamps, while\n time frequencies define timestamps-per-second for that hardware.\n"]
pub type bgfx_stats_t = bgfx_stats_s;
#[doc = " Vertex layout.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_vertex_layout_s {
    pub hash: u32,
    #[doc = " Hash."]
    pub stride: u16,
    #[doc = " Stride."]
    pub offset: [u16; 18usize],
    #[doc = " Attribute offsets."]
    pub attributes: [u16; 18usize],
}
#[doc = " Vertex layout.\n"]
pub type bgfx_vertex_layout_t = bgfx_vertex_layout_s;
#[doc = " Encoders are used for submitting draw calls from multiple threads. Only one encoder\n per thread should be used. Use `bgfx::begin()` to obtain an encoder for a thread.\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_encoder_s {
    _unused: [u8; 0],
}
pub type bgfx_encoder_t = bgfx_encoder_s;
extern "C" {
    #[doc = " Init attachment.\n\n @param[in] _handle Render target texture handle.\n @param[in] _access Access. See `Access::Enum`.\n @param[in] _layer Cubemap side or depth layer/slice to use.\n @param[in] _numLayers Number of texture layer/slice(s) in array to use.\n @param[in] _mip Mip level.\n @param[in] _resolve Resolve flags. See: `BGFX_RESOLVE_*`\n"]
    pub fn bgfx_attachment_init(
        _this: *mut bgfx_attachment_t,
        _handle: bgfx_texture_handle_t,
        _access: bgfx_access_t,
        _layer: u16,
        _numLayers: u16,
        _mip: u16,
        _resolve: u8,
    );
}
extern "C" {
    #[doc = " Start VertexLayout.\n\n @param[in] _rendererType Renderer backend type. See: `bgfx::RendererType`\n\n @returns Returns itself.\n"]
    pub fn bgfx_vertex_layout_begin(
        _this: *mut bgfx_vertex_layout_t,
        _rendererType: bgfx_renderer_type_t,
    ) -> *mut bgfx_vertex_layout_t;
}
extern "C" {
    #[doc = " Add attribute to VertexLayout.\n @remarks Must be called between begin/end.\n\n @param[in] _attrib Attribute semantics. See: `bgfx::Attrib`\n @param[in] _num Number of elements 1, 2, 3 or 4.\n @param[in] _type Element type.\n @param[in] _normalized When using fixed point AttribType (f.e. Uint8)\n  value will be normalized for vertex shader usage. When normalized\n  is set to true, AttribType::Uint8 value in range 0-255 will be\n  in range 0.0-1.0 in vertex shader.\n @param[in] _asInt Packaging rule for vertexPack, vertexUnpack, and\n  vertexConvert for AttribType::Uint8 and AttribType::Int16.\n  Unpacking code must be implemented inside vertex shader.\n\n @returns Returns itself.\n"]
    pub fn bgfx_vertex_layout_add(
        _this: *mut bgfx_vertex_layout_t,
        _attrib: bgfx_attrib_t,
        _num: u8,
        _type: bgfx_attrib_type_t,
        _normalized: bool,
        _asInt: bool,
    ) -> *mut bgfx_vertex_layout_t;
}
extern "C" {
    #[doc = " Decode attribute.\n\n @param[in] _attrib Attribute semantics. See: `bgfx::Attrib`\n @param[out] _num Number of elements.\n @param[out] _type Element type.\n @param[out] _normalized Attribute is normalized.\n @param[out] _asInt Attribute is packed as int.\n"]
    pub fn bgfx_vertex_layout_decode(
        _this: *const bgfx_vertex_layout_t,
        _attrib: bgfx_attrib_t,
        _num: *mut u8,
        _type: *mut bgfx_attrib_type_t,
        _normalized: *mut bool,
        _asInt: *mut bool,
    );
}
extern "C" {
    #[doc = " Returns `true` if VertexLayout contains attribute.\n\n @param[in] _attrib Attribute semantics. See: `bgfx::Attrib`\n\n @returns True if VertexLayout contains attribute.\n"]
    pub fn bgfx_vertex_layout_has(
        _this: *const bgfx_vertex_layout_t,
        _attrib: bgfx_attrib_t,
    ) -> bool;
}
extern "C" {
    #[doc = " Skip `_num` bytes in vertex stream.\n\n @param[in] _num Number of bytes to skip.\n\n @returns Returns itself.\n"]
    pub fn bgfx_vertex_layout_skip(
        _this: *mut bgfx_vertex_layout_t,
        _num: u8,
    ) -> *mut bgfx_vertex_layout_t;
}
extern "C" {
    #[doc = " End VertexLayout.\n"]
    pub fn bgfx_vertex_layout_end(_this: *mut bgfx_vertex_layout_t);
}
extern "C" {
    #[doc = " Pack vertex attribute into vertex stream format.\n\n @param[in] _input Value to be packed into vertex stream.\n @param[in] _inputNormalized `true` if input value is already normalized.\n @param[in] _attr Attribute to pack.\n @param[in] _layout Vertex stream layout.\n @param[in] _data Destination vertex stream where data will be packed.\n @param[in] _index Vertex index that will be modified.\n"]
    pub fn bgfx_vertex_pack(
        _input: *const f32,
        _inputNormalized: bool,
        _attr: bgfx_attrib_t,
        _layout: *const bgfx_vertex_layout_t,
        _data: *mut ::std::os::raw::c_void,
        _index: u32,
    );
}
extern "C" {
    #[doc = " Unpack vertex attribute from vertex stream format.\n\n @param[out] _output Result of unpacking.\n @param[in] _attr Attribute to unpack.\n @param[in] _layout Vertex stream layout.\n @param[in] _data Source vertex stream from where data will be unpacked.\n @param[in] _index Vertex index that will be unpacked.\n"]
    pub fn bgfx_vertex_unpack(
        _output: *mut f32,
        _attr: bgfx_attrib_t,
        _layout: *const bgfx_vertex_layout_t,
        _data: *const ::std::os::raw::c_void,
        _index: u32,
    );
}
extern "C" {
    #[doc = " Converts vertex stream data from one vertex stream format to another.\n\n @param[in] _dstLayout Destination vertex stream layout.\n @param[in] _dstData Destination vertex stream.\n @param[in] _srcLayout Source vertex stream layout.\n @param[in] _srcData Source vertex stream data.\n @param[in] _num Number of vertices to convert from source to destination.\n"]
    pub fn bgfx_vertex_convert(
        _dstLayout: *const bgfx_vertex_layout_t,
        _dstData: *mut ::std::os::raw::c_void,
        _srcLayout: *const bgfx_vertex_layout_t,
        _srcData: *const ::std::os::raw::c_void,
        _num: u32,
    );
}
extern "C" {
    #[doc = " Weld vertices.\n\n @param[in] _output Welded vertices remapping table. The size of buffer\n  must be the same as number of vertices.\n @param[in] _layout Vertex stream layout.\n @param[in] _data Vertex stream.\n @param[in] _num Number of vertices in vertex stream.\n @param[in] _index32 Set to `true` if input indices are 32-bit.\n @param[in] _epsilon Error tolerance for vertex position comparison.\n\n @returns Number of unique vertices after vertex welding.\n"]
    pub fn bgfx_weld_vertices(
        _output: *mut ::std::os::raw::c_void,
        _layout: *const bgfx_vertex_layout_t,
        _data: *const ::std::os::raw::c_void,
        _num: u32,
        _index32: bool,
        _epsilon: f32,
    ) -> u32;
}
extern "C" {
    #[doc = " Convert index buffer for use with different primitive topologies.\n\n @param[in] _conversion Conversion type, see `TopologyConvert::Enum`.\n @param[out] _dst Destination index buffer. If this argument is NULL\n  function will return number of indices after conversion.\n @param[in] _dstSize Destination index buffer in bytes. It must be\n  large enough to contain output indices. If destination size is\n  insufficient index buffer will be truncated.\n @param[in] _indices Source indices.\n @param[in] _numIndices Number of input indices.\n @param[in] _index32 Set to `true` if input indices are 32-bit.\n\n @returns Number of output indices after conversion.\n"]
    pub fn bgfx_topology_convert(
        _conversion: bgfx_topology_convert_t,
        _dst: *mut ::std::os::raw::c_void,
        _dstSize: u32,
        _indices: *const ::std::os::raw::c_void,
        _numIndices: u32,
        _index32: bool,
    ) -> u32;
}
extern "C" {
    #[doc = " Sort indices.\n\n @param[in] _sort Sort order, see `TopologySort::Enum`.\n @param[out] _dst Destination index buffer.\n @param[in] _dstSize Destination index buffer in bytes. It must be\n  large enough to contain output indices. If destination size is\n  insufficient index buffer will be truncated.\n @param[in] _dir Direction (vector must be normalized).\n @param[in] _pos Position.\n @param[in] _vertices Pointer to first vertex represented as\n  float x, y, z. Must contain at least number of vertices\n  referencende by index buffer.\n @param[in] _stride Vertex stride.\n @param[in] _indices Source indices.\n @param[in] _numIndices Number of input indices.\n @param[in] _index32 Set to `true` if input indices are 32-bit.\n"]
    pub fn bgfx_topology_sort_tri_list(
        _sort: bgfx_topology_sort_t,
        _dst: *mut ::std::os::raw::c_void,
        _dstSize: u32,
        _dir: *const f32,
        _pos: *const f32,
        _vertices: *const ::std::os::raw::c_void,
        _stride: u32,
        _indices: *const ::std::os::raw::c_void,
        _numIndices: u32,
        _index32: bool,
    );
}
extern "C" {
    #[doc = " Returns supported backend API renderers.\n\n @param[in] _max Maximum number of elements in _enum array.\n @param[inout] _enum Array where supported renderers will be written.\n\n @returns Number of supported renderers.\n"]
    pub fn bgfx_get_supported_renderers(_max: u8, _enum: *mut bgfx_renderer_type_t) -> u8;
}
extern "C" {
    #[doc = " Returns name of renderer.\n\n @param[in] _type Renderer backend type. See: `bgfx::RendererType`\n\n @returns Name of renderer.\n"]
    pub fn bgfx_get_renderer_name(_type: bgfx_renderer_type_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn bgfx_init_ctor(_init: *mut bgfx_init_t);
}
extern "C" {
    #[doc = " Initialize the bgfx library.\n\n @param[in] _init Initialization parameters. See: `bgfx::Init` for more info.\n\n @returns `true` if initialization was successful.\n"]
    pub fn bgfx_init(_init: *const bgfx_init_t) -> bool;
}
extern "C" {
    #[doc = " Shutdown bgfx library.\n"]
    pub fn bgfx_shutdown();
}
extern "C" {
    #[doc = " Reset graphic settings and back-buffer size.\n @attention This call doesn’t change the window size, it just resizes\n   the back-buffer. Your windowing code controls the window size.\n\n @param[in] _width Back-buffer width.\n @param[in] _height Back-buffer height.\n @param[in] _flags See: `BGFX_RESET_*` for more info.\n    - `BGFX_RESET_NONE` - No reset flags.\n    - `BGFX_RESET_FULLSCREEN` - Not supported yet.\n    - `BGFX_RESET_MSAA_X[2/4/8/16]` - Enable 2, 4, 8 or 16 x MSAA.\n    - `BGFX_RESET_VSYNC` - Enable V-Sync.\n    - `BGFX_RESET_MAXANISOTROPY` - Turn on/off max anisotropy.\n    - `BGFX_RESET_CAPTURE` - Begin screen capture.\n    - `BGFX_RESET_FLUSH_AFTER_RENDER` - Flush rendering after submitting to GPU.\n    - `BGFX_RESET_FLIP_AFTER_RENDER` - This flag  specifies where flip\n      occurs. Default behaviour is that flip occurs before rendering new\n      frame. This flag only has effect when `BGFX_CONFIG_MULTITHREADED=0`.\n    - `BGFX_RESET_SRGB_BACKBUFFER` - Enable sRGB back-buffer.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n"]
    pub fn bgfx_reset(_width: u32, _height: u32, _flags: u32, _format: bgfx_texture_format_t);
}
extern "C" {
    #[doc = " Advance to next frame. When using multithreaded renderer, this call\n just swaps internal buffers, kicks render thread, and returns. In\n singlethreaded renderer this call does frame rendering.\n\n @param[in] _capture Capture frame with graphics debugger.\n\n @returns Current frame number. This might be used in conjunction with\n  double/multi buffering data outside the library and passing it to\n  library via `bgfx::makeRef` calls.\n"]
    pub fn bgfx_frame(_capture: bool) -> u32;
}
extern "C" {
    #[doc = " Returns current renderer backend API type.\n @remarks\n   Library must be initialized.\n"]
    pub fn bgfx_get_renderer_type() -> bgfx_renderer_type_t;
}
extern "C" {
    #[doc = " Returns renderer capabilities.\n @remarks\n   Library must be initialized.\n"]
    pub fn bgfx_get_caps() -> *const bgfx_caps_t;
}
extern "C" {
    #[doc = " Returns performance counters.\n @attention Pointer returned is valid until `bgfx::frame` is called.\n"]
    pub fn bgfx_get_stats() -> *const bgfx_stats_t;
}
extern "C" {
    #[doc = " Allocate buffer to pass to bgfx calls. Data will be freed inside bgfx.\n\n @param[in] _size Size to allocate.\n\n @returns Allocated memory.\n"]
    pub fn bgfx_alloc(_size: u32) -> *const bgfx_memory_t;
}
extern "C" {
    #[doc = " Allocate buffer and copy data into it. Data will be freed inside bgfx.\n\n @param[in] _data Pointer to data to be copied.\n @param[in] _size Size of data to be copied.\n\n @returns Allocated memory.\n"]
    pub fn bgfx_copy(_data: *const ::std::os::raw::c_void, _size: u32) -> *const bgfx_memory_t;
}
extern "C" {
    #[doc = " Make reference to data to pass to bgfx. Unlike `bgfx::alloc`, this call\n doesn't allocate memory for data. It just copies the _data pointer. You\n can pass `ReleaseFn` function pointer to release this memory after it's\n consumed, otherwise you must make sure _data is available for at least 2\n `bgfx::frame` calls. `ReleaseFn` function must be able to be called\n from any thread.\n @attention Data passed must be available for at least 2 `bgfx::frame` calls.\n\n @param[in] _data Pointer to data.\n @param[in] _size Size of data.\n\n @returns Referenced memory.\n"]
    pub fn bgfx_make_ref(_data: *const ::std::os::raw::c_void, _size: u32) -> *const bgfx_memory_t;
}
extern "C" {
    #[doc = " Make reference to data to pass to bgfx. Unlike `bgfx::alloc`, this call\n doesn't allocate memory for data. It just copies the _data pointer. You\n can pass `ReleaseFn` function pointer to release this memory after it's\n consumed, otherwise you must make sure _data is available for at least 2\n `bgfx::frame` calls. `ReleaseFn` function must be able to be called\n from any thread.\n @attention Data passed must be available for at least 2 `bgfx::frame` calls.\n\n @param[in] _data Pointer to data.\n @param[in] _size Size of data.\n @param[in] _releaseFn Callback function to release memory after use.\n @param[in] _userData User data to be passed to callback function.\n\n @returns Referenced memory.\n"]
    pub fn bgfx_make_ref_release(
        _data: *const ::std::os::raw::c_void,
        _size: u32,
        _releaseFn: bgfx_release_fn_t,
        _userData: *mut ::std::os::raw::c_void,
    ) -> *const bgfx_memory_t;
}
extern "C" {
    #[doc = " Set debug flags.\n\n @param[in] _debug Available flags:\n    - `BGFX_DEBUG_IFH` - Infinitely fast hardware. When this flag is set\n      all rendering calls will be skipped. This is useful when profiling\n      to quickly assess potential bottlenecks between CPU and GPU.\n    - `BGFX_DEBUG_PROFILER` - Enable profiler.\n    - `BGFX_DEBUG_STATS` - Display internal statistics.\n    - `BGFX_DEBUG_TEXT` - Display debug text.\n    - `BGFX_DEBUG_WIREFRAME` - Wireframe rendering. All rendering\n      primitives will be rendered as lines.\n"]
    pub fn bgfx_set_debug(_debug: u32);
}
extern "C" {
    #[doc = " Clear internal debug text buffer.\n\n @param[in] _attr Background color.\n @param[in] _small Default 8x16 or 8x8 font.\n"]
    pub fn bgfx_dbg_text_clear(_attr: u8, _small: bool);
}
extern "C" {
    #[doc = " Print formatted data to internal debug text character-buffer (VGA-compatible text mode).\n\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _attr Color palette. Where top 4-bits represent index of background, and bottom\n  4-bits represent foreground color from standard VGA text palette (ANSI escape codes).\n @param[in] _format `printf` style format.\n @param[in]\n"]
    pub fn bgfx_dbg_text_printf(
        _x: u16,
        _y: u16,
        _attr: u8,
        _format: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    #[doc = " Print formatted data from variable argument list to internal debug text character-buffer (VGA-compatible text mode).\n\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _attr Color palette. Where top 4-bits represent index of background, and bottom\n  4-bits represent foreground color from standard VGA text palette (ANSI escape codes).\n @param[in] _format `printf` style format.\n @param[in] _argList Variable arguments list for format string.\n"]
    pub fn bgfx_dbg_text_vprintf(
        _x: u16,
        _y: u16,
        _attr: u8,
        _format: *const ::std::os::raw::c_char,
        _argList: *mut __va_list_tag,
    );
}
extern "C" {
    #[doc = " Draw image into internal debug text buffer.\n\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _width Image width.\n @param[in] _height Image height.\n @param[in] _data Raw image data (character/attribute raw encoding).\n @param[in] _pitch Image pitch in bytes.\n"]
    pub fn bgfx_dbg_text_image(
        _x: u16,
        _y: u16,
        _width: u16,
        _height: u16,
        _data: *const ::std::os::raw::c_void,
        _pitch: u16,
    );
}
extern "C" {
    #[doc = " Create static index buffer.\n\n @param[in] _mem Index buffer data.\n @param[in] _flags Buffer creation flags.\n    - `BGFX_BUFFER_NONE` - No flags.\n    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader.\n    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer\n        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU.\n    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader.\n    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of\n        data is passed. If this flag is not specified, and more data is passed on update, the buffer\n        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic\n        buffers.\n    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on\n        index buffers.\n"]
    pub fn bgfx_create_index_buffer(
        _mem: *const bgfx_memory_t,
        _flags: u16,
    ) -> bgfx_index_buffer_handle_t;
}
extern "C" {
    #[doc = " Set static index buffer debug name.\n\n @param[in] _handle Static index buffer handle.\n @param[in] _name Static index buffer name.\n @param[in] _len Static index buffer name length (if length is INT32_MAX, it's expected\n  that _name is zero terminated string.\n"]
    pub fn bgfx_set_index_buffer_name(
        _handle: bgfx_index_buffer_handle_t,
        _name: *const ::std::os::raw::c_char,
        _len: i32,
    );
}
extern "C" {
    #[doc = " Destroy static index buffer.\n\n @param[in] _handle Static index buffer handle.\n"]
    pub fn bgfx_destroy_index_buffer(_handle: bgfx_index_buffer_handle_t);
}
extern "C" {
    #[doc = " Create vertex layout.\n\n @param[in] _layout Vertex layout.\n"]
    pub fn bgfx_create_vertex_layout(
        _layout: *const bgfx_vertex_layout_t,
    ) -> bgfx_vertex_layout_handle_t;
}
extern "C" {
    #[doc = " Destroy vertex layout.\n\n @param[in] _layoutHandle Vertex layout handle.\n"]
    pub fn bgfx_destroy_vertex_layout(_layoutHandle: bgfx_vertex_layout_handle_t);
}
extern "C" {
    #[doc = " Create static vertex buffer.\n\n @param[in] _mem Vertex buffer data.\n @param[in] _layout Vertex layout.\n @param[in] _flags Buffer creation flags.\n   - `BGFX_BUFFER_NONE` - No flags.\n   - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader.\n   - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer\n       is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU.\n   - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader.\n   - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of\n       data is passed. If this flag is not specified, and more data is passed on update, the buffer\n       will be trimmed to fit the existing buffer size. This flag has effect only on dynamic buffers.\n   - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on index buffers.\n\n @returns Static vertex buffer handle.\n"]
    pub fn bgfx_create_vertex_buffer(
        _mem: *const bgfx_memory_t,
        _layout: *const bgfx_vertex_layout_t,
        _flags: u16,
    ) -> bgfx_vertex_buffer_handle_t;
}
extern "C" {
    #[doc = " Set static vertex buffer debug name.\n\n @param[in] _handle Static vertex buffer handle.\n @param[in] _name Static vertex buffer name.\n @param[in] _len Static vertex buffer name length (if length is INT32_MAX, it's expected\n  that _name is zero terminated string.\n"]
    pub fn bgfx_set_vertex_buffer_name(
        _handle: bgfx_vertex_buffer_handle_t,
        _name: *const ::std::os::raw::c_char,
        _len: i32,
    );
}
extern "C" {
    #[doc = " Destroy static vertex buffer.\n\n @param[in] _handle Static vertex buffer handle.\n"]
    pub fn bgfx_destroy_vertex_buffer(_handle: bgfx_vertex_buffer_handle_t);
}
extern "C" {
    #[doc = " Create empty dynamic index buffer.\n\n @param[in] _num Number of indices.\n @param[in] _flags Buffer creation flags.\n    - `BGFX_BUFFER_NONE` - No flags.\n    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader.\n    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer\n        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU.\n    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader.\n    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of\n        data is passed. If this flag is not specified, and more data is passed on update, the buffer\n        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic\n        buffers.\n    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on\n        index buffers.\n\n @returns Dynamic index buffer handle.\n"]
    pub fn bgfx_create_dynamic_index_buffer(
        _num: u32,
        _flags: u16,
    ) -> bgfx_dynamic_index_buffer_handle_t;
}
extern "C" {
    #[doc = " Create a dynamic index buffer and initialize it.\n\n @param[in] _mem Index buffer data.\n @param[in] _flags Buffer creation flags.\n    - `BGFX_BUFFER_NONE` - No flags.\n    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader.\n    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer\n        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU.\n    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader.\n    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of\n        data is passed. If this flag is not specified, and more data is passed on update, the buffer\n        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic\n        buffers.\n    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on\n        index buffers.\n\n @returns Dynamic index buffer handle.\n"]
    pub fn bgfx_create_dynamic_index_buffer_mem(
        _mem: *const bgfx_memory_t,
        _flags: u16,
    ) -> bgfx_dynamic_index_buffer_handle_t;
}
extern "C" {
    #[doc = " Update dynamic index buffer.\n\n @param[in] _handle Dynamic index buffer handle.\n @param[in] _startIndex Start index.\n @param[in] _mem Index buffer data.\n"]
    pub fn bgfx_update_dynamic_index_buffer(
        _handle: bgfx_dynamic_index_buffer_handle_t,
        _startIndex: u32,
        _mem: *const bgfx_memory_t,
    );
}
extern "C" {
    #[doc = " Destroy dynamic index buffer.\n\n @param[in] _handle Dynamic index buffer handle.\n"]
    pub fn bgfx_destroy_dynamic_index_buffer(_handle: bgfx_dynamic_index_buffer_handle_t);
}
extern "C" {
    #[doc = " Create empty dynamic vertex buffer.\n\n @param[in] _num Number of vertices.\n @param[in] _layout Vertex layout.\n @param[in] _flags Buffer creation flags.\n    - `BGFX_BUFFER_NONE` - No flags.\n    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader.\n    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer\n        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU.\n    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader.\n    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of\n        data is passed. If this flag is not specified, and more data is passed on update, the buffer\n        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic\n        buffers.\n    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on\n        index buffers.\n\n @returns Dynamic vertex buffer handle.\n"]
    pub fn bgfx_create_dynamic_vertex_buffer(
        _num: u32,
        _layout: *const bgfx_vertex_layout_t,
        _flags: u16,
    ) -> bgfx_dynamic_vertex_buffer_handle_t;
}
extern "C" {
    #[doc = " Create dynamic vertex buffer and initialize it.\n\n @param[in] _mem Vertex buffer data.\n @param[in] _layout Vertex layout.\n @param[in] _flags Buffer creation flags.\n    - `BGFX_BUFFER_NONE` - No flags.\n    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader.\n    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer\n        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU.\n    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader.\n    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of\n        data is passed. If this flag is not specified, and more data is passed on update, the buffer\n        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic\n        buffers.\n    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on\n        index buffers.\n\n @returns Dynamic vertex buffer handle.\n"]
    pub fn bgfx_create_dynamic_vertex_buffer_mem(
        _mem: *const bgfx_memory_t,
        _layout: *const bgfx_vertex_layout_t,
        _flags: u16,
    ) -> bgfx_dynamic_vertex_buffer_handle_t;
}
extern "C" {
    #[doc = " Update dynamic vertex buffer.\n\n @param[in] _handle Dynamic vertex buffer handle.\n @param[in] _startVertex Start vertex.\n @param[in] _mem Vertex buffer data.\n"]
    pub fn bgfx_update_dynamic_vertex_buffer(
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _startVertex: u32,
        _mem: *const bgfx_memory_t,
    );
}
extern "C" {
    #[doc = " Destroy dynamic vertex buffer.\n\n @param[in] _handle Dynamic vertex buffer handle.\n"]
    pub fn bgfx_destroy_dynamic_vertex_buffer(_handle: bgfx_dynamic_vertex_buffer_handle_t);
}
extern "C" {
    #[doc = " Returns number of requested or maximum available indices.\n\n @param[in] _num Number of required indices.\n @param[in] _index32 Set to `true` if input indices will be 32-bit.\n\n @returns Number of requested or maximum available indices.\n"]
    pub fn bgfx_get_avail_transient_index_buffer(_num: u32, _index32: bool) -> u32;
}
extern "C" {
    #[doc = " Returns number of requested or maximum available vertices.\n\n @param[in] _num Number of required vertices.\n @param[in] _layout Vertex layout.\n\n @returns Number of requested or maximum available vertices.\n"]
    pub fn bgfx_get_avail_transient_vertex_buffer(
        _num: u32,
        _layout: *const bgfx_vertex_layout_t,
    ) -> u32;
}
extern "C" {
    #[doc = " Returns number of requested or maximum available instance buffer slots.\n\n @param[in] _num Number of required instances.\n @param[in] _stride Stride per instance.\n\n @returns Number of requested or maximum available instance buffer slots.\n"]
    pub fn bgfx_get_avail_instance_data_buffer(_num: u32, _stride: u16) -> u32;
}
extern "C" {
    #[doc = " Allocate transient index buffer.\n\n @param[out] _tib TransientIndexBuffer structure will be filled, and will be valid\n  for the duration of frame, and can be reused for multiple draw\n  calls.\n @param[in] _num Number of indices to allocate.\n @param[in] _index32 Set to `true` if input indices will be 32-bit.\n"]
    pub fn bgfx_alloc_transient_index_buffer(
        _tib: *mut bgfx_transient_index_buffer_t,
        _num: u32,
        _index32: bool,
    );
}
extern "C" {
    #[doc = " Allocate transient vertex buffer.\n\n @param[out] _tvb TransientVertexBuffer structure will be filled, and will be valid\n  for the duration of frame, and can be reused for multiple draw\n  calls.\n @param[in] _num Number of vertices to allocate.\n @param[in] _layout Vertex layout.\n"]
    pub fn bgfx_alloc_transient_vertex_buffer(
        _tvb: *mut bgfx_transient_vertex_buffer_t,
        _num: u32,
        _layout: *const bgfx_vertex_layout_t,
    );
}
extern "C" {
    #[doc = " Check for required space and allocate transient vertex and index\n buffers. If both space requirements are satisfied function returns\n true.\n\n @param[out] _tvb TransientVertexBuffer structure will be filled, and will be valid\n  for the duration of frame, and can be reused for multiple draw\n  calls.\n @param[in] _layout Vertex layout.\n @param[in] _numVertices Number of vertices to allocate.\n @param[out] _tib TransientIndexBuffer structure will be filled, and will be valid\n  for the duration of frame, and can be reused for multiple draw\n  calls.\n @param[in] _numIndices Number of indices to allocate.\n @param[in] _index32 Set to `true` if input indices will be 32-bit.\n"]
    pub fn bgfx_alloc_transient_buffers(
        _tvb: *mut bgfx_transient_vertex_buffer_t,
        _layout: *const bgfx_vertex_layout_t,
        _numVertices: u32,
        _tib: *mut bgfx_transient_index_buffer_t,
        _numIndices: u32,
        _index32: bool,
    ) -> bool;
}
extern "C" {
    #[doc = " Allocate instance data buffer.\n\n @param[out] _idb InstanceDataBuffer structure will be filled, and will be valid\n  for duration of frame, and can be reused for multiple draw\n  calls.\n @param[in] _num Number of instances.\n @param[in] _stride Instance stride. Must be multiple of 16.\n"]
    pub fn bgfx_alloc_instance_data_buffer(
        _idb: *mut bgfx_instance_data_buffer_t,
        _num: u32,
        _stride: u16,
    );
}
extern "C" {
    #[doc = " Create draw indirect buffer.\n\n @param[in] _num Number of indirect calls.\n\n @returns Indirect buffer handle.\n"]
    pub fn bgfx_create_indirect_buffer(_num: u32) -> bgfx_indirect_buffer_handle_t;
}
extern "C" {
    #[doc = " Destroy draw indirect buffer.\n\n @param[in] _handle Indirect buffer handle.\n"]
    pub fn bgfx_destroy_indirect_buffer(_handle: bgfx_indirect_buffer_handle_t);
}
extern "C" {
    #[doc = " Create shader from memory buffer.\n\n @param[in] _mem Shader binary.\n\n @returns Shader handle.\n"]
    pub fn bgfx_create_shader(_mem: *const bgfx_memory_t) -> bgfx_shader_handle_t;
}
extern "C" {
    #[doc = " Returns the number of uniforms and uniform handles used inside a shader.\n @remarks\n   Only non-predefined uniforms are returned.\n\n @param[in] _handle Shader handle.\n @param[out] _uniforms UniformHandle array where data will be stored.\n @param[in] _max Maximum capacity of array.\n\n @returns Number of uniforms used by shader.\n"]
    pub fn bgfx_get_shader_uniforms(
        _handle: bgfx_shader_handle_t,
        _uniforms: *mut bgfx_uniform_handle_t,
        _max: u16,
    ) -> u16;
}
extern "C" {
    #[doc = " Set shader debug name.\n\n @param[in] _handle Shader handle.\n @param[in] _name Shader name.\n @param[in] _len Shader name length (if length is INT32_MAX, it's expected\n  that _name is zero terminated string).\n"]
    pub fn bgfx_set_shader_name(
        _handle: bgfx_shader_handle_t,
        _name: *const ::std::os::raw::c_char,
        _len: i32,
    );
}
extern "C" {
    #[doc = " Destroy shader.\n @remark Once a shader program is created with _handle,\n   it is safe to destroy that shader.\n\n @param[in] _handle Shader handle.\n"]
    pub fn bgfx_destroy_shader(_handle: bgfx_shader_handle_t);
}
extern "C" {
    #[doc = " Create program with vertex and fragment shaders.\n\n @param[in] _vsh Vertex shader.\n @param[in] _fsh Fragment shader.\n @param[in] _destroyShaders If true, shaders will be destroyed when program is destroyed.\n\n @returns Program handle if vertex shader output and fragment shader\n  input are matching, otherwise returns invalid program handle.\n"]
    pub fn bgfx_create_program(
        _vsh: bgfx_shader_handle_t,
        _fsh: bgfx_shader_handle_t,
        _destroyShaders: bool,
    ) -> bgfx_program_handle_t;
}
extern "C" {
    #[doc = " Create program with compute shader.\n\n @param[in] _csh Compute shader.\n @param[in] _destroyShaders If true, shaders will be destroyed when program is destroyed.\n\n @returns Program handle.\n"]
    pub fn bgfx_create_compute_program(
        _csh: bgfx_shader_handle_t,
        _destroyShaders: bool,
    ) -> bgfx_program_handle_t;
}
extern "C" {
    #[doc = " Destroy program.\n\n @param[in] _handle Program handle.\n"]
    pub fn bgfx_destroy_program(_handle: bgfx_program_handle_t);
}
extern "C" {
    #[doc = " Validate texture parameters.\n\n @param[in] _depth Depth dimension of volume texture.\n @param[in] _cubeMap Indicates that texture contains cubemap.\n @param[in] _numLayers Number of layers in texture array.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _flags Texture flags. See `BGFX_TEXTURE_*`.\n\n @returns True if a texture with the same parameters can be created.\n"]
    pub fn bgfx_is_texture_valid(
        _depth: u16,
        _cubeMap: bool,
        _numLayers: u16,
        _format: bgfx_texture_format_t,
        _flags: u64,
    ) -> bool;
}
extern "C" {
    #[doc = " Validate frame buffer parameters.\n\n @param[in] _num Number of attachments.\n @param[in] _attachment Attachment texture info. See: `bgfx::Attachment`.\n\n @returns True if a frame buffer with the same parameters can be created.\n"]
    pub fn bgfx_is_frame_buffer_valid(_num: u8, _attachment: *const bgfx_attachment_t) -> bool;
}
extern "C" {
    #[doc = " Calculate amount of memory required for texture.\n\n @param[out] _info Resulting texture info structure. See: `TextureInfo`.\n @param[in] _width Width.\n @param[in] _height Height.\n @param[in] _depth Depth dimension of volume texture.\n @param[in] _cubeMap Indicates that texture contains cubemap.\n @param[in] _hasMips Indicates that texture contains full mip-map chain.\n @param[in] _numLayers Number of layers in texture array.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n"]
    pub fn bgfx_calc_texture_size(
        _info: *mut bgfx_texture_info_t,
        _width: u16,
        _height: u16,
        _depth: u16,
        _cubeMap: bool,
        _hasMips: bool,
        _numLayers: u16,
        _format: bgfx_texture_format_t,
    );
}
extern "C" {
    #[doc = " Create texture from memory buffer.\n\n @param[in] _mem DDS, KTX or PVR texture binary data.\n @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n @param[in] _skip Skip top level mips when parsing texture.\n @param[out] _info When non-`NULL` is specified it returns parsed texture information.\n\n @returns Texture handle.\n"]
    pub fn bgfx_create_texture(
        _mem: *const bgfx_memory_t,
        _flags: u64,
        _skip: u8,
        _info: *mut bgfx_texture_info_t,
    ) -> bgfx_texture_handle_t;
}
extern "C" {
    #[doc = " Create 2D texture.\n\n @param[in] _width Width.\n @param[in] _height Height.\n @param[in] _hasMips Indicates that texture contains full mip-map chain.\n @param[in] _numLayers Number of layers in texture array. Must be 1 if caps\n  `BGFX_CAPS_TEXTURE_2D_ARRAY` flag is not set.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n @param[in] _mem Texture data. If `_mem` is non-NULL, created texture will be immutable. If\n  `_mem` is NULL content of the texture is uninitialized. When `_numLayers` is more than\n  1, expected memory layout is texture and all mips together for each array element.\n\n @returns Texture handle.\n"]
    pub fn bgfx_create_texture_2d(
        _width: u16,
        _height: u16,
        _hasMips: bool,
        _numLayers: u16,
        _format: bgfx_texture_format_t,
        _flags: u64,
        _mem: *const bgfx_memory_t,
    ) -> bgfx_texture_handle_t;
}
extern "C" {
    #[doc = " Create texture with size based on back-buffer ratio. Texture will maintain ratio\n if back buffer resolution changes.\n\n @param[in] _ratio Texture size in respect to back-buffer size. See: `BackbufferRatio::Enum`.\n @param[in] _hasMips Indicates that texture contains full mip-map chain.\n @param[in] _numLayers Number of layers in texture array. Must be 1 if caps\n  `BGFX_CAPS_TEXTURE_2D_ARRAY` flag is not set.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n\n @returns Texture handle.\n"]
    pub fn bgfx_create_texture_2d_scaled(
        _ratio: bgfx_backbuffer_ratio_t,
        _hasMips: bool,
        _numLayers: u16,
        _format: bgfx_texture_format_t,
        _flags: u64,
    ) -> bgfx_texture_handle_t;
}
extern "C" {
    #[doc = " Create 3D texture.\n\n @param[in] _width Width.\n @param[in] _height Height.\n @param[in] _depth Depth.\n @param[in] _hasMips Indicates that texture contains full mip-map chain.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n @param[in] _mem Texture data. If `_mem` is non-NULL, created texture will be immutable. If\n  `_mem` is NULL content of the texture is uninitialized. When `_numLayers` is more than\n  1, expected memory layout is texture and all mips together for each array element.\n\n @returns Texture handle.\n"]
    pub fn bgfx_create_texture_3d(
        _width: u16,
        _height: u16,
        _depth: u16,
        _hasMips: bool,
        _format: bgfx_texture_format_t,
        _flags: u64,
        _mem: *const bgfx_memory_t,
    ) -> bgfx_texture_handle_t;
}
extern "C" {
    #[doc = " Create Cube texture.\n\n @param[in] _size Cube side size.\n @param[in] _hasMips Indicates that texture contains full mip-map chain.\n @param[in] _numLayers Number of layers in texture array. Must be 1 if caps\n  `BGFX_CAPS_TEXTURE_2D_ARRAY` flag is not set.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n @param[in] _mem Texture data. If `_mem` is non-NULL, created texture will be immutable. If\n  `_mem` is NULL content of the texture is uninitialized. When `_numLayers` is more than\n  1, expected memory layout is texture and all mips together for each array element.\n\n @returns Texture handle.\n"]
    pub fn bgfx_create_texture_cube(
        _size: u16,
        _hasMips: bool,
        _numLayers: u16,
        _format: bgfx_texture_format_t,
        _flags: u64,
        _mem: *const bgfx_memory_t,
    ) -> bgfx_texture_handle_t;
}
extern "C" {
    #[doc = " Update 2D texture.\n @attention It's valid to update only mutable texture. See `bgfx::createTexture2D` for more info.\n\n @param[in] _handle Texture handle.\n @param[in] _layer Layer in texture array.\n @param[in] _mip Mip level.\n @param[in] _x X offset in texture.\n @param[in] _y Y offset in texture.\n @param[in] _width Width of texture block.\n @param[in] _height Height of texture block.\n @param[in] _mem Texture update data.\n @param[in] _pitch Pitch of input image (bytes). When _pitch is set to\n  UINT16_MAX, it will be calculated internally based on _width.\n"]
    pub fn bgfx_update_texture_2d(
        _handle: bgfx_texture_handle_t,
        _layer: u16,
        _mip: u8,
        _x: u16,
        _y: u16,
        _width: u16,
        _height: u16,
        _mem: *const bgfx_memory_t,
        _pitch: u16,
    );
}
extern "C" {
    #[doc = " Update 3D texture.\n @attention It's valid to update only mutable texture. See `bgfx::createTexture3D` for more info.\n\n @param[in] _handle Texture handle.\n @param[in] _mip Mip level.\n @param[in] _x X offset in texture.\n @param[in] _y Y offset in texture.\n @param[in] _z Z offset in texture.\n @param[in] _width Width of texture block.\n @param[in] _height Height of texture block.\n @param[in] _depth Depth of texture block.\n @param[in] _mem Texture update data.\n"]
    pub fn bgfx_update_texture_3d(
        _handle: bgfx_texture_handle_t,
        _mip: u8,
        _x: u16,
        _y: u16,
        _z: u16,
        _width: u16,
        _height: u16,
        _depth: u16,
        _mem: *const bgfx_memory_t,
    );
}
extern "C" {
    #[doc = " Update Cube texture.\n @attention It's valid to update only mutable texture. See `bgfx::createTextureCube` for more info.\n\n @param[in] _handle Texture handle.\n @param[in] _layer Layer in texture array.\n @param[in] _side Cubemap side `BGFX_CUBE_MAP_<POSITIVE or NEGATIVE>_<X, Y or Z>`,\n    where 0 is +X, 1 is -X, 2 is +Y, 3 is -Y, 4 is +Z, and 5 is -Z.\n                   +----------+\n                   |-z       2|\n                   | ^  +y    |\n                   | |        |    Unfolded cube:\n                   | +---->+x |\n        +----------+----------+----------+----------+\n        |+y       1|+y       4|+y       0|+y       5|\n        | ^  -x    | ^  +z    | ^  +x    | ^  -z    |\n        | |        | |        | |        | |        |\n        | +---->+z | +---->+x | +---->-z | +---->-x |\n        +----------+----------+----------+----------+\n                   |+z       3|\n                   | ^  -y    |\n                   | |        |\n                   | +---->+x |\n                   +----------+\n @param[in] _mip Mip level.\n @param[in] _x X offset in texture.\n @param[in] _y Y offset in texture.\n @param[in] _width Width of texture block.\n @param[in] _height Height of texture block.\n @param[in] _mem Texture update data.\n @param[in] _pitch Pitch of input image (bytes). When _pitch is set to\n  UINT16_MAX, it will be calculated internally based on _width.\n"]
    pub fn bgfx_update_texture_cube(
        _handle: bgfx_texture_handle_t,
        _layer: u16,
        _side: u8,
        _mip: u8,
        _x: u16,
        _y: u16,
        _width: u16,
        _height: u16,
        _mem: *const bgfx_memory_t,
        _pitch: u16,
    );
}
extern "C" {
    #[doc = " Read back texture content.\n @attention Texture must be created with `BGFX_TEXTURE_READ_BACK` flag.\n @attention Availability depends on: `BGFX_CAPS_TEXTURE_READ_BACK`.\n\n @param[in] _handle Texture handle.\n @param[in] _data Destination buffer.\n @param[in] _mip Mip level.\n\n @returns Frame number when the result will be available. See: `bgfx::frame`.\n"]
    pub fn bgfx_read_texture(
        _handle: bgfx_texture_handle_t,
        _data: *mut ::std::os::raw::c_void,
        _mip: u8,
    ) -> u32;
}
extern "C" {
    #[doc = " Set texture debug name.\n\n @param[in] _handle Texture handle.\n @param[in] _name Texture name.\n @param[in] _len Texture name length (if length is INT32_MAX, it's expected\n  that _name is zero terminated string.\n"]
    pub fn bgfx_set_texture_name(
        _handle: bgfx_texture_handle_t,
        _name: *const ::std::os::raw::c_char,
        _len: i32,
    );
}
extern "C" {
    #[doc = " Returns texture direct access pointer.\n @attention Availability depends on: `BGFX_CAPS_TEXTURE_DIRECT_ACCESS`. This feature\n   is available on GPUs that have unified memory architecture (UMA) support.\n\n @param[in] _handle Texture handle.\n\n @returns Pointer to texture memory. If returned pointer is `NULL` direct access\n  is not available for this texture. If pointer is `UINTPTR_MAX` sentinel value\n  it means texture is pending creation. Pointer returned can be cached and it\n  will be valid until texture is destroyed.\n"]
    pub fn bgfx_get_direct_access_ptr(
        _handle: bgfx_texture_handle_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Destroy texture.\n\n @param[in] _handle Texture handle.\n"]
    pub fn bgfx_destroy_texture(_handle: bgfx_texture_handle_t);
}
extern "C" {
    #[doc = " Create frame buffer (simple).\n\n @param[in] _width Texture width.\n @param[in] _height Texture height.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _textureFlags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n\n @returns Frame buffer handle.\n"]
    pub fn bgfx_create_frame_buffer(
        _width: u16,
        _height: u16,
        _format: bgfx_texture_format_t,
        _textureFlags: u64,
    ) -> bgfx_frame_buffer_handle_t;
}
extern "C" {
    #[doc = " Create frame buffer with size based on back-buffer ratio. Frame buffer will maintain ratio\n if back buffer resolution changes.\n\n @param[in] _ratio Frame buffer size in respect to back-buffer size. See:\n  `BackbufferRatio::Enum`.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _textureFlags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n\n @returns Frame buffer handle.\n"]
    pub fn bgfx_create_frame_buffer_scaled(
        _ratio: bgfx_backbuffer_ratio_t,
        _format: bgfx_texture_format_t,
        _textureFlags: u64,
    ) -> bgfx_frame_buffer_handle_t;
}
extern "C" {
    #[doc = " Create MRT frame buffer from texture handles (simple).\n\n @param[in] _num Number of texture handles.\n @param[in] _handles Texture attachments.\n @param[in] _destroyTexture If true, textures will be destroyed when\n  frame buffer is destroyed.\n\n @returns Frame buffer handle.\n"]
    pub fn bgfx_create_frame_buffer_from_handles(
        _num: u8,
        _handles: *const bgfx_texture_handle_t,
        _destroyTexture: bool,
    ) -> bgfx_frame_buffer_handle_t;
}
extern "C" {
    #[doc = " Create MRT frame buffer from texture handles with specific layer and\n mip level.\n\n @param[in] _num Number of attachments.\n @param[in] _attachment Attachment texture info. See: `bgfx::Attachment`.\n @param[in] _destroyTexture If true, textures will be destroyed when\n  frame buffer is destroyed.\n\n @returns Frame buffer handle.\n"]
    pub fn bgfx_create_frame_buffer_from_attachment(
        _num: u8,
        _attachment: *const bgfx_attachment_t,
        _destroyTexture: bool,
    ) -> bgfx_frame_buffer_handle_t;
}
extern "C" {
    #[doc = " Create frame buffer for multiple window rendering.\n @remarks\n   Frame buffer cannot be used for sampling.\n @attention Availability depends on: `BGFX_CAPS_SWAP_CHAIN`.\n\n @param[in] _nwh OS' target native window handle.\n @param[in] _width Window back buffer width.\n @param[in] _height Window back buffer height.\n @param[in] _format Window back buffer color format.\n @param[in] _depthFormat Window back buffer depth format.\n\n @returns Frame buffer handle.\n"]
    pub fn bgfx_create_frame_buffer_from_nwh(
        _nwh: *mut ::std::os::raw::c_void,
        _width: u16,
        _height: u16,
        _format: bgfx_texture_format_t,
        _depthFormat: bgfx_texture_format_t,
    ) -> bgfx_frame_buffer_handle_t;
}
extern "C" {
    #[doc = " Set frame buffer debug name.\n\n @param[in] _handle Frame buffer handle.\n @param[in] _name Frame buffer name.\n @param[in] _len Frame buffer name length (if length is INT32_MAX, it's expected\n  that _name is zero terminated string.\n"]
    pub fn bgfx_set_frame_buffer_name(
        _handle: bgfx_frame_buffer_handle_t,
        _name: *const ::std::os::raw::c_char,
        _len: i32,
    );
}
extern "C" {
    #[doc = " Obtain texture handle of frame buffer attachment.\n\n @param[in] _handle Frame buffer handle.\n @param[in] _attachment\n"]
    pub fn bgfx_get_texture(
        _handle: bgfx_frame_buffer_handle_t,
        _attachment: u8,
    ) -> bgfx_texture_handle_t;
}
extern "C" {
    #[doc = " Destroy frame buffer.\n\n @param[in] _handle Frame buffer handle.\n"]
    pub fn bgfx_destroy_frame_buffer(_handle: bgfx_frame_buffer_handle_t);
}
extern "C" {
    #[doc = " Create shader uniform parameter.\n @remarks\n   1. Uniform names are unique. It's valid to call `bgfx::createUniform`\n      multiple times with the same uniform name. The library will always\n      return the same handle, but the handle reference count will be\n      incremented. This means that the same number of `bgfx::destroyUniform`\n      must be called to properly destroy the uniform.\n   2. Predefined uniforms (declared in `bgfx_shader.sh`):\n      - `u_viewRect vec4(x, y, width, height)` - view rectangle for current\n        view, in pixels.\n      - `u_viewTexel vec4(1.0/width, 1.0/height, undef, undef)` - inverse\n        width and height\n      - `u_view mat4` - view matrix\n      - `u_invView mat4` - inverted view matrix\n      - `u_proj mat4` - projection matrix\n      - `u_invProj mat4` - inverted projection matrix\n      - `u_viewProj mat4` - concatenated view projection matrix\n      - `u_invViewProj mat4` - concatenated inverted view projection matrix\n      - `u_model mat4[BGFX_CONFIG_MAX_BONES]` - array of model matrices.\n      - `u_modelView mat4` - concatenated model view matrix, only first\n        model matrix from array is used.\n      - `u_modelViewProj mat4` - concatenated model view projection matrix.\n      - `u_alphaRef float` - alpha reference value for alpha test.\n\n @param[in] _name Uniform name in shader.\n @param[in] _type Type of uniform (See: `bgfx::UniformType`).\n @param[in] _num Number of elements in array.\n\n @returns Handle to uniform object.\n"]
    pub fn bgfx_create_uniform(
        _name: *const ::std::os::raw::c_char,
        _type: bgfx_uniform_type_t,
        _num: u16,
    ) -> bgfx_uniform_handle_t;
}
extern "C" {
    #[doc = " Retrieve uniform info.\n\n @param[in] _handle Handle to uniform object.\n @param[out] _info Uniform info.\n"]
    pub fn bgfx_get_uniform_info(_handle: bgfx_uniform_handle_t, _info: *mut bgfx_uniform_info_t);
}
extern "C" {
    #[doc = " Destroy shader uniform parameter.\n\n @param[in] _handle Handle to uniform object.\n"]
    pub fn bgfx_destroy_uniform(_handle: bgfx_uniform_handle_t);
}
extern "C" {
    #[doc = " Create occlusion query.\n"]
    pub fn bgfx_create_occlusion_query() -> bgfx_occlusion_query_handle_t;
}
extern "C" {
    #[doc = " Retrieve occlusion query result from previous frame.\n\n @param[in] _handle Handle to occlusion query object.\n @param[out] _result Number of pixels that passed test. This argument\n  can be `NULL` if result of occlusion query is not needed.\n\n @returns Occlusion query result.\n"]
    pub fn bgfx_get_result(
        _handle: bgfx_occlusion_query_handle_t,
        _result: *mut i32,
    ) -> bgfx_occlusion_query_result_t;
}
extern "C" {
    #[doc = " Destroy occlusion query.\n\n @param[in] _handle Handle to occlusion query object.\n"]
    pub fn bgfx_destroy_occlusion_query(_handle: bgfx_occlusion_query_handle_t);
}
extern "C" {
    #[doc = " Set palette color value.\n\n @param[in] _index Index into palette.\n @param[in] _rgba RGBA floating point values.\n"]
    pub fn bgfx_set_palette_color(_index: u8, _rgba: *const f32);
}
extern "C" {
    #[doc = " Set palette color value.\n\n @param[in] _index Index into palette.\n @param[in] _rgba Packed 32-bit RGBA value.\n"]
    pub fn bgfx_set_palette_color_rgba8(_index: u8, _rgba: u32);
}
extern "C" {
    #[doc = " Set view name.\n @remarks\n   This is debug only feature.\n   In graphics debugger view name will appear as:\n       \"nnnc <view name>\"\n        ^  ^ ^\n        |  +--- compute (C)\n        +------ view id\n\n @param[in] _id View id.\n @param[in] _name View name.\n"]
    pub fn bgfx_set_view_name(_id: bgfx_view_id_t, _name: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " Set view rectangle. Draw primitive outside view will be clipped.\n\n @param[in] _id View id.\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _width Width of view port region.\n @param[in] _height Height of view port region.\n"]
    pub fn bgfx_set_view_rect(_id: bgfx_view_id_t, _x: u16, _y: u16, _width: u16, _height: u16);
}
extern "C" {
    #[doc = " Set view rectangle. Draw primitive outside view will be clipped.\n\n @param[in] _id View id.\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _ratio Width and height will be set in respect to back-buffer size.\n  See: `BackbufferRatio::Enum`.\n"]
    pub fn bgfx_set_view_rect_ratio(
        _id: bgfx_view_id_t,
        _x: u16,
        _y: u16,
        _ratio: bgfx_backbuffer_ratio_t,
    );
}
extern "C" {
    #[doc = " Set view scissor. Draw primitive outside view will be clipped. When\n _x, _y, _width and _height are set to 0, scissor will be disabled.\n\n @param[in] _id View id.\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _width Width of view scissor region.\n @param[in] _height Height of view scissor region.\n"]
    pub fn bgfx_set_view_scissor(_id: bgfx_view_id_t, _x: u16, _y: u16, _width: u16, _height: u16);
}
extern "C" {
    #[doc = " Set view clear flags.\n\n @param[in] _id View id.\n @param[in] _flags Clear flags. Use `BGFX_CLEAR_NONE` to remove any clear\n  operation. See: `BGFX_CLEAR_*`.\n @param[in] _rgba Color clear value.\n @param[in] _depth Depth clear value.\n @param[in] _stencil Stencil clear value.\n"]
    pub fn bgfx_set_view_clear(
        _id: bgfx_view_id_t,
        _flags: u16,
        _rgba: u32,
        _depth: f32,
        _stencil: u8,
    );
}
extern "C" {
    #[doc = " Set view clear flags with different clear color for each\n frame buffer texture. `bgfx::setPaletteColor` must be used to set up a\n clear color palette.\n\n @param[in] _id View id.\n @param[in] _flags Clear flags. Use `BGFX_CLEAR_NONE` to remove any clear\n  operation. See: `BGFX_CLEAR_*`.\n @param[in] _depth Depth clear value.\n @param[in] _stencil Stencil clear value.\n @param[in] _c0 Palette index for frame buffer attachment 0.\n @param[in] _c1 Palette index for frame buffer attachment 1.\n @param[in] _c2 Palette index for frame buffer attachment 2.\n @param[in] _c3 Palette index for frame buffer attachment 3.\n @param[in] _c4 Palette index for frame buffer attachment 4.\n @param[in] _c5 Palette index for frame buffer attachment 5.\n @param[in] _c6 Palette index for frame buffer attachment 6.\n @param[in] _c7 Palette index for frame buffer attachment 7.\n"]
    pub fn bgfx_set_view_clear_mrt(
        _id: bgfx_view_id_t,
        _flags: u16,
        _depth: f32,
        _stencil: u8,
        _c0: u8,
        _c1: u8,
        _c2: u8,
        _c3: u8,
        _c4: u8,
        _c5: u8,
        _c6: u8,
        _c7: u8,
    );
}
extern "C" {
    #[doc = " Set view sorting mode.\n @remarks\n   View mode must be set prior calling `bgfx::submit` for the view.\n\n @param[in] _id View id.\n @param[in] _mode View sort mode. See `ViewMode::Enum`.\n"]
    pub fn bgfx_set_view_mode(_id: bgfx_view_id_t, _mode: bgfx_view_mode_t);
}
extern "C" {
    #[doc = " Set view frame buffer.\n @remarks\n   Not persistent after `bgfx::reset` call.\n\n @param[in] _id View id.\n @param[in] _handle Frame buffer handle. Passing `BGFX_INVALID_HANDLE` as\n  frame buffer handle will draw primitives from this view into\n  default back buffer.\n"]
    pub fn bgfx_set_view_frame_buffer(_id: bgfx_view_id_t, _handle: bgfx_frame_buffer_handle_t);
}
extern "C" {
    #[doc = " Set view's view matrix and projection matrix,\n all draw primitives in this view will use these two matrices.\n\n @param[in] _id View id.\n @param[in] _view View matrix.\n @param[in] _proj Projection matrix.\n"]
    pub fn bgfx_set_view_transform(
        _id: bgfx_view_id_t,
        _view: *const ::std::os::raw::c_void,
        _proj: *const ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Post submit view reordering.\n\n @param[in] _id First view id.\n @param[in] _num Number of views to remap.\n @param[in] _order View remap id table. Passing `NULL` will reset view ids\n  to default state.\n"]
    pub fn bgfx_set_view_order(_id: bgfx_view_id_t, _num: u16, _order: *const bgfx_view_id_t);
}
extern "C" {
    #[doc = " Reset all view settings to default.\n\n @param[in] _id\n"]
    pub fn bgfx_reset_view(_id: bgfx_view_id_t);
}
extern "C" {
    #[doc = " Begin submitting draw calls from thread.\n\n @param[in] _forThread Explicitly request an encoder for a worker thread.\n\n @returns Encoder.\n"]
    pub fn bgfx_encoder_begin(_forThread: bool) -> *mut bgfx_encoder_t;
}
extern "C" {
    #[doc = " End submitting draw calls from thread.\n\n @param[in] _encoder Encoder.\n"]
    pub fn bgfx_encoder_end(_encoder: *mut bgfx_encoder_t);
}
extern "C" {
    #[doc = " Sets a debug marker. This allows you to group graphics calls together for easy browsing in\n graphics debugging tools.\n\n @param[in] _marker Marker string.\n"]
    pub fn bgfx_encoder_set_marker(
        _this: *mut bgfx_encoder_t,
        _marker: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Set render states for draw primitive.\n @remarks\n   1. To set up more complex states use:\n      `BGFX_STATE_ALPHA_REF(_ref)`,\n      `BGFX_STATE_POINT_SIZE(_size)`,\n      `BGFX_STATE_BLEND_FUNC(_src, _dst)`,\n      `BGFX_STATE_BLEND_FUNC_SEPARATE(_srcRGB, _dstRGB, _srcA, _dstA)`,\n      `BGFX_STATE_BLEND_EQUATION(_equation)`,\n      `BGFX_STATE_BLEND_EQUATION_SEPARATE(_equationRGB, _equationA)`\n   2. `BGFX_STATE_BLEND_EQUATION_ADD` is set when no other blend\n      equation is specified.\n\n @param[in] _state State flags. Default state for primitive type is\n    triangles. See: `BGFX_STATE_DEFAULT`.\n    - `BGFX_STATE_DEPTH_TEST_*` - Depth test function.\n    - `BGFX_STATE_BLEND_*` - See remark 1 about BGFX_STATE_BLEND_FUNC.\n    - `BGFX_STATE_BLEND_EQUATION_*` - See remark 2.\n    - `BGFX_STATE_CULL_*` - Backface culling mode.\n    - `BGFX_STATE_WRITE_*` - Enable R, G, B, A or Z write.\n    - `BGFX_STATE_MSAA` - Enable hardware multisample antialiasing.\n    - `BGFX_STATE_PT_[TRISTRIP/LINES/POINTS]` - Primitive type.\n @param[in] _rgba Sets blend factor used by `BGFX_STATE_BLEND_FACTOR` and\n    `BGFX_STATE_BLEND_INV_FACTOR` blend modes.\n"]
    pub fn bgfx_encoder_set_state(_this: *mut bgfx_encoder_t, _state: u64, _rgba: u32);
}
extern "C" {
    #[doc = " Set condition for rendering.\n\n @param[in] _handle Occlusion query handle.\n @param[in] _visible Render if occlusion query is visible.\n"]
    pub fn bgfx_encoder_set_condition(
        _this: *mut bgfx_encoder_t,
        _handle: bgfx_occlusion_query_handle_t,
        _visible: bool,
    );
}
extern "C" {
    #[doc = " Set stencil test state.\n\n @param[in] _fstencil Front stencil state.\n @param[in] _bstencil Back stencil state. If back is set to `BGFX_STENCIL_NONE`\n  _fstencil is applied to both front and back facing primitives.\n"]
    pub fn bgfx_encoder_set_stencil(_this: *mut bgfx_encoder_t, _fstencil: u32, _bstencil: u32);
}
extern "C" {
    #[doc = " Set scissor for draw primitive.\n @remark\n   To scissor for all primitives in view see `bgfx::setViewScissor`.\n\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _width Width of view scissor region.\n @param[in] _height Height of view scissor region.\n\n @returns Scissor cache index.\n"]
    pub fn bgfx_encoder_set_scissor(
        _this: *mut bgfx_encoder_t,
        _x: u16,
        _y: u16,
        _width: u16,
        _height: u16,
    ) -> u16;
}
extern "C" {
    #[doc = " Set scissor from cache for draw primitive.\n @remark\n   To scissor for all primitives in view see `bgfx::setViewScissor`.\n\n @param[in] _cache Index in scissor cache.\n"]
    pub fn bgfx_encoder_set_scissor_cached(_this: *mut bgfx_encoder_t, _cache: u16);
}
extern "C" {
    #[doc = " Set model matrix for draw primitive. If it is not called,\n the model will be rendered with an identity model matrix.\n\n @param[in] _mtx Pointer to first matrix in array.\n @param[in] _num Number of matrices in array.\n\n @returns Index into matrix cache in case the same model matrix has\n  to be used for other draw primitive call.\n"]
    pub fn bgfx_encoder_set_transform(
        _this: *mut bgfx_encoder_t,
        _mtx: *const ::std::os::raw::c_void,
        _num: u16,
    ) -> u32;
}
extern "C" {
    #[doc = "  Set model matrix from matrix cache for draw primitive.\n\n @param[in] _cache Index in matrix cache.\n @param[in] _num Number of matrices from cache.\n"]
    pub fn bgfx_encoder_set_transform_cached(_this: *mut bgfx_encoder_t, _cache: u32, _num: u16);
}
extern "C" {
    #[doc = " Reserve matrices in internal matrix cache.\n @attention Pointer returned can be modified until `bgfx::frame` is called.\n\n @param[out] _transform Pointer to `Transform` structure.\n @param[in] _num Number of matrices.\n\n @returns Index in matrix cache.\n"]
    pub fn bgfx_encoder_alloc_transform(
        _this: *mut bgfx_encoder_t,
        _transform: *mut bgfx_transform_t,
        _num: u16,
    ) -> u32;
}
extern "C" {
    #[doc = " Set shader uniform parameter for draw primitive.\n\n @param[in] _handle Uniform.\n @param[in] _value Pointer to uniform data.\n @param[in] _num Number of elements. Passing `UINT16_MAX` will\n  use the _num passed on uniform creation.\n"]
    pub fn bgfx_encoder_set_uniform(
        _this: *mut bgfx_encoder_t,
        _handle: bgfx_uniform_handle_t,
        _value: *const ::std::os::raw::c_void,
        _num: u16,
    );
}
extern "C" {
    #[doc = " Set index buffer for draw primitive.\n\n @param[in] _handle Index buffer.\n @param[in] _firstIndex First index to render.\n @param[in] _numIndices Number of indices to render.\n"]
    pub fn bgfx_encoder_set_index_buffer(
        _this: *mut bgfx_encoder_t,
        _handle: bgfx_index_buffer_handle_t,
        _firstIndex: u32,
        _numIndices: u32,
    );
}
extern "C" {
    #[doc = " Set index buffer for draw primitive.\n\n @param[in] _handle Dynamic index buffer.\n @param[in] _firstIndex First index to render.\n @param[in] _numIndices Number of indices to render.\n"]
    pub fn bgfx_encoder_set_dynamic_index_buffer(
        _this: *mut bgfx_encoder_t,
        _handle: bgfx_dynamic_index_buffer_handle_t,
        _firstIndex: u32,
        _numIndices: u32,
    );
}
extern "C" {
    #[doc = " Set index buffer for draw primitive.\n\n @param[in] _tib Transient index buffer.\n @param[in] _firstIndex First index to render.\n @param[in] _numIndices Number of indices to render.\n"]
    pub fn bgfx_encoder_set_transient_index_buffer(
        _this: *mut bgfx_encoder_t,
        _tib: *const bgfx_transient_index_buffer_t,
        _firstIndex: u32,
        _numIndices: u32,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _handle Vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n"]
    pub fn bgfx_encoder_set_vertex_buffer(
        _this: *mut bgfx_encoder_t,
        _stream: u8,
        _handle: bgfx_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _handle Vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid\n  handle is used, vertex layout used for creation\n  of vertex buffer will be used.\n"]
    pub fn bgfx_encoder_set_vertex_buffer_with_layout(
        _this: *mut bgfx_encoder_t,
        _stream: u8,
        _handle: bgfx_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
        _layoutHandle: bgfx_vertex_layout_handle_t,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _handle Dynamic vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n"]
    pub fn bgfx_encoder_set_dynamic_vertex_buffer(
        _this: *mut bgfx_encoder_t,
        _stream: u8,
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
    );
}
extern "C" {
    pub fn bgfx_encoder_set_dynamic_vertex_buffer_with_layout(
        _this: *mut bgfx_encoder_t,
        _stream: u8,
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
        _layoutHandle: bgfx_vertex_layout_handle_t,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _tvb Transient vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n"]
    pub fn bgfx_encoder_set_transient_vertex_buffer(
        _this: *mut bgfx_encoder_t,
        _stream: u8,
        _tvb: *const bgfx_transient_vertex_buffer_t,
        _startVertex: u32,
        _numVertices: u32,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _tvb Transient vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid\n  handle is used, vertex layout used for creation\n  of vertex buffer will be used.\n"]
    pub fn bgfx_encoder_set_transient_vertex_buffer_with_layout(
        _this: *mut bgfx_encoder_t,
        _stream: u8,
        _tvb: *const bgfx_transient_vertex_buffer_t,
        _startVertex: u32,
        _numVertices: u32,
        _layoutHandle: bgfx_vertex_layout_handle_t,
    );
}
extern "C" {
    #[doc = " Set number of vertices for auto generated vertices use in conjunction\n with gl_VertexID.\n @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`.\n\n @param[in] _numVertices Number of vertices.\n"]
    pub fn bgfx_encoder_set_vertex_count(_this: *mut bgfx_encoder_t, _numVertices: u32);
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive.\n\n @param[in] _idb Transient instance data buffer.\n @param[in] _start First instance data.\n @param[in] _num Number of data instances.\n"]
    pub fn bgfx_encoder_set_instance_data_buffer(
        _this: *mut bgfx_encoder_t,
        _idb: *const bgfx_instance_data_buffer_t,
        _start: u32,
        _num: u32,
    );
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive.\n\n @param[in] _handle Vertex buffer.\n @param[in] _startVertex First instance data.\n @param[in] _num Number of data instances.\n"]
    pub fn bgfx_encoder_set_instance_data_from_vertex_buffer(
        _this: *mut bgfx_encoder_t,
        _handle: bgfx_vertex_buffer_handle_t,
        _startVertex: u32,
        _num: u32,
    );
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive.\n\n @param[in] _handle Dynamic vertex buffer.\n @param[in] _startVertex First instance data.\n @param[in] _num Number of data instances.\n"]
    pub fn bgfx_encoder_set_instance_data_from_dynamic_vertex_buffer(
        _this: *mut bgfx_encoder_t,
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _startVertex: u32,
        _num: u32,
    );
}
extern "C" {
    #[doc = " Set number of instances for auto generated instances use in conjunction\n with gl_InstanceID.\n @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`.\n\n @param[in] _numInstances\n"]
    pub fn bgfx_encoder_set_instance_count(_this: *mut bgfx_encoder_t, _numInstances: u32);
}
extern "C" {
    #[doc = " Set texture stage for draw primitive.\n\n @param[in] _stage Texture unit.\n @param[in] _sampler Program sampler.\n @param[in] _handle Texture handle.\n @param[in] _flags Texture sampling mode. Default value UINT32_MAX uses\n    texture sampling settings from the texture.\n    - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n      mode.\n    - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n      sampling.\n"]
    pub fn bgfx_encoder_set_texture(
        _this: *mut bgfx_encoder_t,
        _stage: u8,
        _sampler: bgfx_uniform_handle_t,
        _handle: bgfx_texture_handle_t,
        _flags: u32,
    );
}
extern "C" {
    #[doc = " Submit an empty primitive for rendering. Uniforms and draw state\n will be applied but no geometry will be submitted. Useful in cases\n when no other draw/compute primitive is submitted to view, but it's\n desired to execute clear view.\n @remark\n   These empty draw calls will sort before ordinary draw calls.\n\n @param[in] _id View id.\n"]
    pub fn bgfx_encoder_touch(_this: *mut bgfx_encoder_t, _id: bgfx_view_id_t);
}
extern "C" {
    #[doc = " Submit primitive for rendering.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_encoder_submit(
        _this: *mut bgfx_encoder_t,
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Submit primitive with occlusion query for rendering.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _occlusionQuery Occlusion query.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_encoder_submit_occlusion_query(
        _this: *mut bgfx_encoder_t,
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _occlusionQuery: bgfx_occlusion_query_handle_t,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Submit primitive for rendering with index and instance data info from\n indirect buffer.\n @attention Availability depends on: `BGFX_CAPS_DRAW_INDIRECT`.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _indirectHandle Indirect buffer.\n @param[in] _start First element in indirect buffer.\n @param[in] _num Number of draws.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_encoder_submit_indirect(
        _this: *mut bgfx_encoder_t,
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _indirectHandle: bgfx_indirect_buffer_handle_t,
        _start: u16,
        _num: u16,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Submit primitive for rendering with index and instance data info and\n draw count from indirect buffers.\n @attention Availability depends on: `BGFX_CAPS_DRAW_INDIRECT_COUNT`.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _indirectHandle Indirect buffer.\n @param[in] _start First element in indirect buffer.\n @param[in] _numHandle Buffer for number of draws. Must be\n    created with `BGFX_BUFFER_INDEX32` and `BGFX_BUFFER_DRAW_INDIRECT`.\n @param[in] _numIndex Element in number buffer.\n @param[in] _numMax Max number of draws.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_encoder_submit_indirect_count(
        _this: *mut bgfx_encoder_t,
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _indirectHandle: bgfx_indirect_buffer_handle_t,
        _start: u16,
        _numHandle: bgfx_index_buffer_handle_t,
        _numIndex: u32,
        _numMax: u16,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Set compute index buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Index buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_encoder_set_compute_index_buffer(
        _this: *mut bgfx_encoder_t,
        _stage: u8,
        _handle: bgfx_index_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute vertex buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Vertex buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_encoder_set_compute_vertex_buffer(
        _this: *mut bgfx_encoder_t,
        _stage: u8,
        _handle: bgfx_vertex_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute dynamic index buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Dynamic index buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_encoder_set_compute_dynamic_index_buffer(
        _this: *mut bgfx_encoder_t,
        _stage: u8,
        _handle: bgfx_dynamic_index_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute dynamic vertex buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Dynamic vertex buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_encoder_set_compute_dynamic_vertex_buffer(
        _this: *mut bgfx_encoder_t,
        _stage: u8,
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute indirect buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Indirect buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_encoder_set_compute_indirect_buffer(
        _this: *mut bgfx_encoder_t,
        _stage: u8,
        _handle: bgfx_indirect_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute image from texture.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Texture handle.\n @param[in] _mip Mip level.\n @param[in] _access Image access. See `Access::Enum`.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n"]
    pub fn bgfx_encoder_set_image(
        _this: *mut bgfx_encoder_t,
        _stage: u8,
        _handle: bgfx_texture_handle_t,
        _mip: u8,
        _access: bgfx_access_t,
        _format: bgfx_texture_format_t,
    );
}
extern "C" {
    #[doc = " Dispatch compute.\n\n @param[in] _id View id.\n @param[in] _program Compute program.\n @param[in] _numX Number of groups X.\n @param[in] _numY Number of groups Y.\n @param[in] _numZ Number of groups Z.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_encoder_dispatch(
        _this: *mut bgfx_encoder_t,
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _numX: u32,
        _numY: u32,
        _numZ: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Dispatch compute indirect.\n\n @param[in] _id View id.\n @param[in] _program Compute program.\n @param[in] _indirectHandle Indirect buffer.\n @param[in] _start First element in indirect buffer.\n @param[in] _num Number of dispatches.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_encoder_dispatch_indirect(
        _this: *mut bgfx_encoder_t,
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _indirectHandle: bgfx_indirect_buffer_handle_t,
        _start: u16,
        _num: u16,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Discard previously set state for draw or compute call.\n\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_encoder_discard(_this: *mut bgfx_encoder_t, _flags: u8);
}
extern "C" {
    #[doc = " Blit 2D texture region between two 2D textures.\n @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag.\n @attention Availability depends on: `BGFX_CAPS_TEXTURE_BLIT`.\n\n @param[in] _id View id.\n @param[in] _dst Destination texture handle.\n @param[in] _dstMip Destination texture mip level.\n @param[in] _dstX Destination texture X position.\n @param[in] _dstY Destination texture Y position.\n @param[in] _dstZ If texture is 2D this argument should be 0. If destination texture is cube\n  this argument represents destination texture cube face. For 3D texture this argument\n  represents destination texture Z position.\n @param[in] _src Source texture handle.\n @param[in] _srcMip Source texture mip level.\n @param[in] _srcX Source texture X position.\n @param[in] _srcY Source texture Y position.\n @param[in] _srcZ If texture is 2D this argument should be 0. If source texture is cube\n  this argument represents source texture cube face. For 3D texture this argument\n  represents source texture Z position.\n @param[in] _width Width of region.\n @param[in] _height Height of region.\n @param[in] _depth If texture is 3D this argument represents depth of region, otherwise it's\n  unused.\n"]
    pub fn bgfx_encoder_blit(
        _this: *mut bgfx_encoder_t,
        _id: bgfx_view_id_t,
        _dst: bgfx_texture_handle_t,
        _dstMip: u8,
        _dstX: u16,
        _dstY: u16,
        _dstZ: u16,
        _src: bgfx_texture_handle_t,
        _srcMip: u8,
        _srcX: u16,
        _srcY: u16,
        _srcZ: u16,
        _width: u16,
        _height: u16,
        _depth: u16,
    );
}
extern "C" {
    #[doc = " Request screen shot of window back buffer.\n @remarks\n   `bgfx::CallbackI::screenShot` must be implemented.\n @attention Frame buffer handle must be created with OS' target native window handle.\n\n @param[in] _handle Frame buffer handle. If handle is `BGFX_INVALID_HANDLE` request will be\n  made for main window back buffer.\n @param[in] _filePath Will be passed to `bgfx::CallbackI::screenShot` callback.\n"]
    pub fn bgfx_request_screen_shot(
        _handle: bgfx_frame_buffer_handle_t,
        _filePath: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Render frame.\n @attention `bgfx::renderFrame` is blocking call. It waits for\n   `bgfx::frame` to be called from API thread to process frame.\n   If timeout value is passed call will timeout and return even\n   if `bgfx::frame` is not called.\n @warning This call should be only used on platforms that don't\n   allow creating separate rendering thread. If it is called before\n   to bgfx::init, render thread won't be created by bgfx::init call.\n\n @param[in] _msecs Timeout in milliseconds.\n\n @returns Current renderer context state. See: `bgfx::RenderFrame`.\n"]
    pub fn bgfx_render_frame(_msecs: i32) -> bgfx_render_frame_t;
}
extern "C" {
    #[doc = " Set platform data.\n @warning Must be called before `bgfx::init`.\n\n @param[in] _data Platform data.\n"]
    pub fn bgfx_set_platform_data(_data: *const bgfx_platform_data_t);
}
extern "C" {
    #[doc = " Get internal data for interop.\n @attention It's expected you understand some bgfx internals before you\n   use this call.\n @warning Must be called only on render thread.\n"]
    pub fn bgfx_get_internal_data() -> *const bgfx_internal_data_t;
}
extern "C" {
    #[doc = " Override internal texture with externally created texture. Previously\n created internal texture will released.\n @attention It's expected you understand some bgfx internals before you\n   use this call.\n @warning Must be called only on render thread.\n\n @param[in] _handle Texture handle.\n @param[in] _ptr Native API pointer to texture.\n\n @returns Native API pointer to texture. If result is 0, texture is not created\n  yet from the main thread.\n"]
    pub fn bgfx_override_internal_texture_ptr(_handle: bgfx_texture_handle_t, _ptr: usize)
        -> usize;
}
extern "C" {
    #[doc = " Override internal texture by creating new texture. Previously created\n internal texture will released.\n @attention It's expected you understand some bgfx internals before you\n   use this call.\n @returns Native API pointer to texture. If result is 0, texture is not created yet from the\n   main thread.\n @warning Must be called only on render thread.\n\n @param[in] _handle Texture handle.\n @param[in] _width Width.\n @param[in] _height Height.\n @param[in] _numMips Number of mip-maps.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)\n  flags. Default texture sampling mode is linear, and wrap mode is repeat.\n  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n    mode.\n  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n    sampling.\n\n @returns Native API pointer to texture. If result is 0, texture is not created\n  yet from the main thread.\n"]
    pub fn bgfx_override_internal_texture(
        _handle: bgfx_texture_handle_t,
        _width: u16,
        _height: u16,
        _numMips: u8,
        _format: bgfx_texture_format_t,
        _flags: u64,
    ) -> usize;
}
extern "C" {
    #[doc = " Sets a debug marker. This allows you to group graphics calls together for easy browsing in\n graphics debugging tools.\n\n @param[in] _marker Marker string.\n"]
    pub fn bgfx_set_marker(_marker: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " Set render states for draw primitive.\n @remarks\n   1. To set up more complex states use:\n      `BGFX_STATE_ALPHA_REF(_ref)`,\n      `BGFX_STATE_POINT_SIZE(_size)`,\n      `BGFX_STATE_BLEND_FUNC(_src, _dst)`,\n      `BGFX_STATE_BLEND_FUNC_SEPARATE(_srcRGB, _dstRGB, _srcA, _dstA)`,\n      `BGFX_STATE_BLEND_EQUATION(_equation)`,\n      `BGFX_STATE_BLEND_EQUATION_SEPARATE(_equationRGB, _equationA)`\n   2. `BGFX_STATE_BLEND_EQUATION_ADD` is set when no other blend\n      equation is specified.\n\n @param[in] _state State flags. Default state for primitive type is\n    triangles. See: `BGFX_STATE_DEFAULT`.\n    - `BGFX_STATE_DEPTH_TEST_*` - Depth test function.\n    - `BGFX_STATE_BLEND_*` - See remark 1 about BGFX_STATE_BLEND_FUNC.\n    - `BGFX_STATE_BLEND_EQUATION_*` - See remark 2.\n    - `BGFX_STATE_CULL_*` - Backface culling mode.\n    - `BGFX_STATE_WRITE_*` - Enable R, G, B, A or Z write.\n    - `BGFX_STATE_MSAA` - Enable hardware multisample antialiasing.\n    - `BGFX_STATE_PT_[TRISTRIP/LINES/POINTS]` - Primitive type.\n @param[in] _rgba Sets blend factor used by `BGFX_STATE_BLEND_FACTOR` and\n    `BGFX_STATE_BLEND_INV_FACTOR` blend modes.\n"]
    pub fn bgfx_set_state(_state: u64, _rgba: u32);
}
extern "C" {
    #[doc = " Set condition for rendering.\n\n @param[in] _handle Occlusion query handle.\n @param[in] _visible Render if occlusion query is visible.\n"]
    pub fn bgfx_set_condition(_handle: bgfx_occlusion_query_handle_t, _visible: bool);
}
extern "C" {
    #[doc = " Set stencil test state.\n\n @param[in] _fstencil Front stencil state.\n @param[in] _bstencil Back stencil state. If back is set to `BGFX_STENCIL_NONE`\n  _fstencil is applied to both front and back facing primitives.\n"]
    pub fn bgfx_set_stencil(_fstencil: u32, _bstencil: u32);
}
extern "C" {
    #[doc = " Set scissor for draw primitive.\n @remark\n   To scissor for all primitives in view see `bgfx::setViewScissor`.\n\n @param[in] _x Position x from the left corner of the window.\n @param[in] _y Position y from the top corner of the window.\n @param[in] _width Width of view scissor region.\n @param[in] _height Height of view scissor region.\n\n @returns Scissor cache index.\n"]
    pub fn bgfx_set_scissor(_x: u16, _y: u16, _width: u16, _height: u16) -> u16;
}
extern "C" {
    #[doc = " Set scissor from cache for draw primitive.\n @remark\n   To scissor for all primitives in view see `bgfx::setViewScissor`.\n\n @param[in] _cache Index in scissor cache.\n"]
    pub fn bgfx_set_scissor_cached(_cache: u16);
}
extern "C" {
    #[doc = " Set model matrix for draw primitive. If it is not called,\n the model will be rendered with an identity model matrix.\n\n @param[in] _mtx Pointer to first matrix in array.\n @param[in] _num Number of matrices in array.\n\n @returns Index into matrix cache in case the same model matrix has\n  to be used for other draw primitive call.\n"]
    pub fn bgfx_set_transform(_mtx: *const ::std::os::raw::c_void, _num: u16) -> u32;
}
extern "C" {
    #[doc = "  Set model matrix from matrix cache for draw primitive.\n\n @param[in] _cache Index in matrix cache.\n @param[in] _num Number of matrices from cache.\n"]
    pub fn bgfx_set_transform_cached(_cache: u32, _num: u16);
}
extern "C" {
    #[doc = " Reserve matrices in internal matrix cache.\n @attention Pointer returned can be modified until `bgfx::frame` is called.\n\n @param[out] _transform Pointer to `Transform` structure.\n @param[in] _num Number of matrices.\n\n @returns Index in matrix cache.\n"]
    pub fn bgfx_alloc_transform(_transform: *mut bgfx_transform_t, _num: u16) -> u32;
}
extern "C" {
    #[doc = " Set shader uniform parameter for draw primitive.\n\n @param[in] _handle Uniform.\n @param[in] _value Pointer to uniform data.\n @param[in] _num Number of elements. Passing `UINT16_MAX` will\n  use the _num passed on uniform creation.\n"]
    pub fn bgfx_set_uniform(
        _handle: bgfx_uniform_handle_t,
        _value: *const ::std::os::raw::c_void,
        _num: u16,
    );
}
extern "C" {
    #[doc = " Set index buffer for draw primitive.\n\n @param[in] _handle Index buffer.\n @param[in] _firstIndex First index to render.\n @param[in] _numIndices Number of indices to render.\n"]
    pub fn bgfx_set_index_buffer(
        _handle: bgfx_index_buffer_handle_t,
        _firstIndex: u32,
        _numIndices: u32,
    );
}
extern "C" {
    #[doc = " Set index buffer for draw primitive.\n\n @param[in] _handle Dynamic index buffer.\n @param[in] _firstIndex First index to render.\n @param[in] _numIndices Number of indices to render.\n"]
    pub fn bgfx_set_dynamic_index_buffer(
        _handle: bgfx_dynamic_index_buffer_handle_t,
        _firstIndex: u32,
        _numIndices: u32,
    );
}
extern "C" {
    #[doc = " Set index buffer for draw primitive.\n\n @param[in] _tib Transient index buffer.\n @param[in] _firstIndex First index to render.\n @param[in] _numIndices Number of indices to render.\n"]
    pub fn bgfx_set_transient_index_buffer(
        _tib: *const bgfx_transient_index_buffer_t,
        _firstIndex: u32,
        _numIndices: u32,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _handle Vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n"]
    pub fn bgfx_set_vertex_buffer(
        _stream: u8,
        _handle: bgfx_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _handle Vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid\n  handle is used, vertex layout used for creation\n  of vertex buffer will be used.\n"]
    pub fn bgfx_set_vertex_buffer_with_layout(
        _stream: u8,
        _handle: bgfx_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
        _layoutHandle: bgfx_vertex_layout_handle_t,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _handle Dynamic vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n"]
    pub fn bgfx_set_dynamic_vertex_buffer(
        _stream: u8,
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _handle Dynamic vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid\n  handle is used, vertex layout used for creation\n  of vertex buffer will be used.\n"]
    pub fn bgfx_set_dynamic_vertex_buffer_with_layout(
        _stream: u8,
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _startVertex: u32,
        _numVertices: u32,
        _layoutHandle: bgfx_vertex_layout_handle_t,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _tvb Transient vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n"]
    pub fn bgfx_set_transient_vertex_buffer(
        _stream: u8,
        _tvb: *const bgfx_transient_vertex_buffer_t,
        _startVertex: u32,
        _numVertices: u32,
    );
}
extern "C" {
    #[doc = " Set vertex buffer for draw primitive.\n\n @param[in] _stream Vertex stream.\n @param[in] _tvb Transient vertex buffer.\n @param[in] _startVertex First vertex to render.\n @param[in] _numVertices Number of vertices to render.\n @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid\n  handle is used, vertex layout used for creation\n  of vertex buffer will be used.\n"]
    pub fn bgfx_set_transient_vertex_buffer_with_layout(
        _stream: u8,
        _tvb: *const bgfx_transient_vertex_buffer_t,
        _startVertex: u32,
        _numVertices: u32,
        _layoutHandle: bgfx_vertex_layout_handle_t,
    );
}
extern "C" {
    #[doc = " Set number of vertices for auto generated vertices use in conjunction\n with gl_VertexID.\n @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`.\n\n @param[in] _numVertices Number of vertices.\n"]
    pub fn bgfx_set_vertex_count(_numVertices: u32);
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive.\n\n @param[in] _idb Transient instance data buffer.\n @param[in] _start First instance data.\n @param[in] _num Number of data instances.\n"]
    pub fn bgfx_set_instance_data_buffer(
        _idb: *const bgfx_instance_data_buffer_t,
        _start: u32,
        _num: u32,
    );
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive.\n\n @param[in] _handle Vertex buffer.\n @param[in] _startVertex First instance data.\n @param[in] _num Number of data instances.\n"]
    pub fn bgfx_set_instance_data_from_vertex_buffer(
        _handle: bgfx_vertex_buffer_handle_t,
        _startVertex: u32,
        _num: u32,
    );
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive.\n\n @param[in] _handle Dynamic vertex buffer.\n @param[in] _startVertex First instance data.\n @param[in] _num Number of data instances.\n"]
    pub fn bgfx_set_instance_data_from_dynamic_vertex_buffer(
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _startVertex: u32,
        _num: u32,
    );
}
extern "C" {
    #[doc = " Set number of instances for auto generated instances use in conjunction\n with gl_InstanceID.\n @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`.\n\n @param[in] _numInstances\n"]
    pub fn bgfx_set_instance_count(_numInstances: u32);
}
extern "C" {
    #[doc = " Set texture stage for draw primitive.\n\n @param[in] _stage Texture unit.\n @param[in] _sampler Program sampler.\n @param[in] _handle Texture handle.\n @param[in] _flags Texture sampling mode. Default value UINT32_MAX uses\n    texture sampling settings from the texture.\n    - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap\n      mode.\n    - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic\n      sampling.\n"]
    pub fn bgfx_set_texture(
        _stage: u8,
        _sampler: bgfx_uniform_handle_t,
        _handle: bgfx_texture_handle_t,
        _flags: u32,
    );
}
extern "C" {
    #[doc = " Submit an empty primitive for rendering. Uniforms and draw state\n will be applied but no geometry will be submitted.\n @remark\n   These empty draw calls will sort before ordinary draw calls.\n\n @param[in] _id View id.\n"]
    pub fn bgfx_touch(_id: bgfx_view_id_t);
}
extern "C" {
    #[doc = " Submit primitive for rendering.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Which states to discard for next draw. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_submit(
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Submit primitive with occlusion query for rendering.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _occlusionQuery Occlusion query.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Which states to discard for next draw. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_submit_occlusion_query(
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _occlusionQuery: bgfx_occlusion_query_handle_t,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Submit primitive for rendering with index and instance data info from\n indirect buffer.\n @attention Availability depends on: `BGFX_CAPS_DRAW_INDIRECT`.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _indirectHandle Indirect buffer.\n @param[in] _start First element in indirect buffer.\n @param[in] _num Number of draws.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Which states to discard for next draw. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_submit_indirect(
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _indirectHandle: bgfx_indirect_buffer_handle_t,
        _start: u16,
        _num: u16,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Submit primitive for rendering with index and instance data info and\n draw count from indirect buffers.\n @attention Availability depends on: `BGFX_CAPS_DRAW_INDIRECT_COUNT`.\n\n @param[in] _id View id.\n @param[in] _program Program.\n @param[in] _indirectHandle Indirect buffer.\n @param[in] _start First element in indirect buffer.\n @param[in] _numHandle Buffer for number of draws. Must be\n    created with `BGFX_BUFFER_INDEX32` and `BGFX_BUFFER_DRAW_INDIRECT`.\n @param[in] _numIndex Element in number buffer.\n @param[in] _numMax Max number of draws.\n @param[in] _depth Depth for sorting.\n @param[in] _flags Which states to discard for next draw. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_submit_indirect_count(
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _indirectHandle: bgfx_indirect_buffer_handle_t,
        _start: u16,
        _numHandle: bgfx_index_buffer_handle_t,
        _numIndex: u32,
        _numMax: u16,
        _depth: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Set compute index buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Index buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_set_compute_index_buffer(
        _stage: u8,
        _handle: bgfx_index_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute vertex buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Vertex buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_set_compute_vertex_buffer(
        _stage: u8,
        _handle: bgfx_vertex_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute dynamic index buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Dynamic index buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_set_compute_dynamic_index_buffer(
        _stage: u8,
        _handle: bgfx_dynamic_index_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute dynamic vertex buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Dynamic vertex buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_set_compute_dynamic_vertex_buffer(
        _stage: u8,
        _handle: bgfx_dynamic_vertex_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute indirect buffer.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Indirect buffer handle.\n @param[in] _access Buffer access. See `Access::Enum`.\n"]
    pub fn bgfx_set_compute_indirect_buffer(
        _stage: u8,
        _handle: bgfx_indirect_buffer_handle_t,
        _access: bgfx_access_t,
    );
}
extern "C" {
    #[doc = " Set compute image from texture.\n\n @param[in] _stage Compute stage.\n @param[in] _handle Texture handle.\n @param[in] _mip Mip level.\n @param[in] _access Image access. See `Access::Enum`.\n @param[in] _format Texture format. See: `TextureFormat::Enum`.\n"]
    pub fn bgfx_set_image(
        _stage: u8,
        _handle: bgfx_texture_handle_t,
        _mip: u8,
        _access: bgfx_access_t,
        _format: bgfx_texture_format_t,
    );
}
extern "C" {
    #[doc = " Dispatch compute.\n\n @param[in] _id View id.\n @param[in] _program Compute program.\n @param[in] _numX Number of groups X.\n @param[in] _numY Number of groups Y.\n @param[in] _numZ Number of groups Z.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_dispatch(
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _numX: u32,
        _numY: u32,
        _numZ: u32,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Dispatch compute indirect.\n\n @param[in] _id View id.\n @param[in] _program Compute program.\n @param[in] _indirectHandle Indirect buffer.\n @param[in] _start First element in indirect buffer.\n @param[in] _num Number of dispatches.\n @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`.\n"]
    pub fn bgfx_dispatch_indirect(
        _id: bgfx_view_id_t,
        _program: bgfx_program_handle_t,
        _indirectHandle: bgfx_indirect_buffer_handle_t,
        _start: u16,
        _num: u16,
        _flags: u8,
    );
}
extern "C" {
    #[doc = " Discard previously set state for draw or compute call.\n\n @param[in] _flags Draw/compute states to discard.\n"]
    pub fn bgfx_discard(_flags: u8);
}
extern "C" {
    #[doc = " Blit 2D texture region between two 2D textures.\n @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag.\n @attention Availability depends on: `BGFX_CAPS_TEXTURE_BLIT`.\n\n @param[in] _id View id.\n @param[in] _dst Destination texture handle.\n @param[in] _dstMip Destination texture mip level.\n @param[in] _dstX Destination texture X position.\n @param[in] _dstY Destination texture Y position.\n @param[in] _dstZ If texture is 2D this argument should be 0. If destination texture is cube\n  this argument represents destination texture cube face. For 3D texture this argument\n  represents destination texture Z position.\n @param[in] _src Source texture handle.\n @param[in] _srcMip Source texture mip level.\n @param[in] _srcX Source texture X position.\n @param[in] _srcY Source texture Y position.\n @param[in] _srcZ If texture is 2D this argument should be 0. If source texture is cube\n  this argument represents source texture cube face. For 3D texture this argument\n  represents source texture Z position.\n @param[in] _width Width of region.\n @param[in] _height Height of region.\n @param[in] _depth If texture is 3D this argument represents depth of region, otherwise it's\n  unused.\n"]
    pub fn bgfx_blit(
        _id: bgfx_view_id_t,
        _dst: bgfx_texture_handle_t,
        _dstMip: u8,
        _dstX: u16,
        _dstY: u16,
        _dstZ: u16,
        _src: bgfx_texture_handle_t,
        _srcMip: u8,
        _srcX: u16,
        _srcY: u16,
        _srcZ: u16,
        _width: u16,
        _height: u16,
        _depth: u16,
    );
}
pub const BGFX_FUNCTION_ID_ATTACHMENT_INIT: bgfx_function_id = 0;
pub const BGFX_FUNCTION_ID_VERTEX_LAYOUT_BEGIN: bgfx_function_id = 1;
pub const BGFX_FUNCTION_ID_VERTEX_LAYOUT_ADD: bgfx_function_id = 2;
pub const BGFX_FUNCTION_ID_VERTEX_LAYOUT_DECODE: bgfx_function_id = 3;
pub const BGFX_FUNCTION_ID_VERTEX_LAYOUT_HAS: bgfx_function_id = 4;
pub const BGFX_FUNCTION_ID_VERTEX_LAYOUT_SKIP: bgfx_function_id = 5;
pub const BGFX_FUNCTION_ID_VERTEX_LAYOUT_END: bgfx_function_id = 6;
pub const BGFX_FUNCTION_ID_VERTEX_PACK: bgfx_function_id = 7;
pub const BGFX_FUNCTION_ID_VERTEX_UNPACK: bgfx_function_id = 8;
pub const BGFX_FUNCTION_ID_VERTEX_CONVERT: bgfx_function_id = 9;
pub const BGFX_FUNCTION_ID_WELD_VERTICES: bgfx_function_id = 10;
pub const BGFX_FUNCTION_ID_TOPOLOGY_CONVERT: bgfx_function_id = 11;
pub const BGFX_FUNCTION_ID_TOPOLOGY_SORT_TRI_LIST: bgfx_function_id = 12;
pub const BGFX_FUNCTION_ID_GET_SUPPORTED_RENDERERS: bgfx_function_id = 13;
pub const BGFX_FUNCTION_ID_GET_RENDERER_NAME: bgfx_function_id = 14;
pub const BGFX_FUNCTION_ID_INIT_CTOR: bgfx_function_id = 15;
pub const BGFX_FUNCTION_ID_INIT: bgfx_function_id = 16;
pub const BGFX_FUNCTION_ID_SHUTDOWN: bgfx_function_id = 17;
pub const BGFX_FUNCTION_ID_RESET: bgfx_function_id = 18;
pub const BGFX_FUNCTION_ID_FRAME: bgfx_function_id = 19;
pub const BGFX_FUNCTION_ID_GET_RENDERER_TYPE: bgfx_function_id = 20;
pub const BGFX_FUNCTION_ID_GET_CAPS: bgfx_function_id = 21;
pub const BGFX_FUNCTION_ID_GET_STATS: bgfx_function_id = 22;
pub const BGFX_FUNCTION_ID_ALLOC: bgfx_function_id = 23;
pub const BGFX_FUNCTION_ID_COPY: bgfx_function_id = 24;
pub const BGFX_FUNCTION_ID_MAKE_REF: bgfx_function_id = 25;
pub const BGFX_FUNCTION_ID_MAKE_REF_RELEASE: bgfx_function_id = 26;
pub const BGFX_FUNCTION_ID_SET_DEBUG: bgfx_function_id = 27;
pub const BGFX_FUNCTION_ID_DBG_TEXT_CLEAR: bgfx_function_id = 28;
pub const BGFX_FUNCTION_ID_DBG_TEXT_PRINTF: bgfx_function_id = 29;
pub const BGFX_FUNCTION_ID_DBG_TEXT_VPRINTF: bgfx_function_id = 30;
pub const BGFX_FUNCTION_ID_DBG_TEXT_IMAGE: bgfx_function_id = 31;
pub const BGFX_FUNCTION_ID_CREATE_INDEX_BUFFER: bgfx_function_id = 32;
pub const BGFX_FUNCTION_ID_SET_INDEX_BUFFER_NAME: bgfx_function_id = 33;
pub const BGFX_FUNCTION_ID_DESTROY_INDEX_BUFFER: bgfx_function_id = 34;
pub const BGFX_FUNCTION_ID_CREATE_VERTEX_LAYOUT: bgfx_function_id = 35;
pub const BGFX_FUNCTION_ID_DESTROY_VERTEX_LAYOUT: bgfx_function_id = 36;
pub const BGFX_FUNCTION_ID_CREATE_VERTEX_BUFFER: bgfx_function_id = 37;
pub const BGFX_FUNCTION_ID_SET_VERTEX_BUFFER_NAME: bgfx_function_id = 38;
pub const BGFX_FUNCTION_ID_DESTROY_VERTEX_BUFFER: bgfx_function_id = 39;
pub const BGFX_FUNCTION_ID_CREATE_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 40;
pub const BGFX_FUNCTION_ID_CREATE_DYNAMIC_INDEX_BUFFER_MEM: bgfx_function_id = 41;
pub const BGFX_FUNCTION_ID_UPDATE_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 42;
pub const BGFX_FUNCTION_ID_DESTROY_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 43;
pub const BGFX_FUNCTION_ID_CREATE_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 44;
pub const BGFX_FUNCTION_ID_CREATE_DYNAMIC_VERTEX_BUFFER_MEM: bgfx_function_id = 45;
pub const BGFX_FUNCTION_ID_UPDATE_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 46;
pub const BGFX_FUNCTION_ID_DESTROY_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 47;
pub const BGFX_FUNCTION_ID_GET_AVAIL_TRANSIENT_INDEX_BUFFER: bgfx_function_id = 48;
pub const BGFX_FUNCTION_ID_GET_AVAIL_TRANSIENT_VERTEX_BUFFER: bgfx_function_id = 49;
pub const BGFX_FUNCTION_ID_GET_AVAIL_INSTANCE_DATA_BUFFER: bgfx_function_id = 50;
pub const BGFX_FUNCTION_ID_ALLOC_TRANSIENT_INDEX_BUFFER: bgfx_function_id = 51;
pub const BGFX_FUNCTION_ID_ALLOC_TRANSIENT_VERTEX_BUFFER: bgfx_function_id = 52;
pub const BGFX_FUNCTION_ID_ALLOC_TRANSIENT_BUFFERS: bgfx_function_id = 53;
pub const BGFX_FUNCTION_ID_ALLOC_INSTANCE_DATA_BUFFER: bgfx_function_id = 54;
pub const BGFX_FUNCTION_ID_CREATE_INDIRECT_BUFFER: bgfx_function_id = 55;
pub const BGFX_FUNCTION_ID_DESTROY_INDIRECT_BUFFER: bgfx_function_id = 56;
pub const BGFX_FUNCTION_ID_CREATE_SHADER: bgfx_function_id = 57;
pub const BGFX_FUNCTION_ID_GET_SHADER_UNIFORMS: bgfx_function_id = 58;
pub const BGFX_FUNCTION_ID_SET_SHADER_NAME: bgfx_function_id = 59;
pub const BGFX_FUNCTION_ID_DESTROY_SHADER: bgfx_function_id = 60;
pub const BGFX_FUNCTION_ID_CREATE_PROGRAM: bgfx_function_id = 61;
pub const BGFX_FUNCTION_ID_CREATE_COMPUTE_PROGRAM: bgfx_function_id = 62;
pub const BGFX_FUNCTION_ID_DESTROY_PROGRAM: bgfx_function_id = 63;
pub const BGFX_FUNCTION_ID_IS_TEXTURE_VALID: bgfx_function_id = 64;
pub const BGFX_FUNCTION_ID_IS_FRAME_BUFFER_VALID: bgfx_function_id = 65;
pub const BGFX_FUNCTION_ID_CALC_TEXTURE_SIZE: bgfx_function_id = 66;
pub const BGFX_FUNCTION_ID_CREATE_TEXTURE: bgfx_function_id = 67;
pub const BGFX_FUNCTION_ID_CREATE_TEXTURE_2D: bgfx_function_id = 68;
pub const BGFX_FUNCTION_ID_CREATE_TEXTURE_2D_SCALED: bgfx_function_id = 69;
pub const BGFX_FUNCTION_ID_CREATE_TEXTURE_3D: bgfx_function_id = 70;
pub const BGFX_FUNCTION_ID_CREATE_TEXTURE_CUBE: bgfx_function_id = 71;
pub const BGFX_FUNCTION_ID_UPDATE_TEXTURE_2D: bgfx_function_id = 72;
pub const BGFX_FUNCTION_ID_UPDATE_TEXTURE_3D: bgfx_function_id = 73;
pub const BGFX_FUNCTION_ID_UPDATE_TEXTURE_CUBE: bgfx_function_id = 74;
pub const BGFX_FUNCTION_ID_READ_TEXTURE: bgfx_function_id = 75;
pub const BGFX_FUNCTION_ID_SET_TEXTURE_NAME: bgfx_function_id = 76;
pub const BGFX_FUNCTION_ID_GET_DIRECT_ACCESS_PTR: bgfx_function_id = 77;
pub const BGFX_FUNCTION_ID_DESTROY_TEXTURE: bgfx_function_id = 78;
pub const BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER: bgfx_function_id = 79;
pub const BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_SCALED: bgfx_function_id = 80;
pub const BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_FROM_HANDLES: bgfx_function_id = 81;
pub const BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_FROM_ATTACHMENT: bgfx_function_id = 82;
pub const BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_FROM_NWH: bgfx_function_id = 83;
pub const BGFX_FUNCTION_ID_SET_FRAME_BUFFER_NAME: bgfx_function_id = 84;
pub const BGFX_FUNCTION_ID_GET_TEXTURE: bgfx_function_id = 85;
pub const BGFX_FUNCTION_ID_DESTROY_FRAME_BUFFER: bgfx_function_id = 86;
pub const BGFX_FUNCTION_ID_CREATE_UNIFORM: bgfx_function_id = 87;
pub const BGFX_FUNCTION_ID_GET_UNIFORM_INFO: bgfx_function_id = 88;
pub const BGFX_FUNCTION_ID_DESTROY_UNIFORM: bgfx_function_id = 89;
pub const BGFX_FUNCTION_ID_CREATE_OCCLUSION_QUERY: bgfx_function_id = 90;
pub const BGFX_FUNCTION_ID_GET_RESULT: bgfx_function_id = 91;
pub const BGFX_FUNCTION_ID_DESTROY_OCCLUSION_QUERY: bgfx_function_id = 92;
pub const BGFX_FUNCTION_ID_SET_PALETTE_COLOR: bgfx_function_id = 93;
pub const BGFX_FUNCTION_ID_SET_PALETTE_COLOR_RGBA8: bgfx_function_id = 94;
pub const BGFX_FUNCTION_ID_SET_VIEW_NAME: bgfx_function_id = 95;
pub const BGFX_FUNCTION_ID_SET_VIEW_RECT: bgfx_function_id = 96;
pub const BGFX_FUNCTION_ID_SET_VIEW_RECT_RATIO: bgfx_function_id = 97;
pub const BGFX_FUNCTION_ID_SET_VIEW_SCISSOR: bgfx_function_id = 98;
pub const BGFX_FUNCTION_ID_SET_VIEW_CLEAR: bgfx_function_id = 99;
pub const BGFX_FUNCTION_ID_SET_VIEW_CLEAR_MRT: bgfx_function_id = 100;
pub const BGFX_FUNCTION_ID_SET_VIEW_MODE: bgfx_function_id = 101;
pub const BGFX_FUNCTION_ID_SET_VIEW_FRAME_BUFFER: bgfx_function_id = 102;
pub const BGFX_FUNCTION_ID_SET_VIEW_TRANSFORM: bgfx_function_id = 103;
pub const BGFX_FUNCTION_ID_SET_VIEW_ORDER: bgfx_function_id = 104;
pub const BGFX_FUNCTION_ID_RESET_VIEW: bgfx_function_id = 105;
pub const BGFX_FUNCTION_ID_ENCODER_BEGIN: bgfx_function_id = 106;
pub const BGFX_FUNCTION_ID_ENCODER_END: bgfx_function_id = 107;
pub const BGFX_FUNCTION_ID_ENCODER_SET_MARKER: bgfx_function_id = 108;
pub const BGFX_FUNCTION_ID_ENCODER_SET_STATE: bgfx_function_id = 109;
pub const BGFX_FUNCTION_ID_ENCODER_SET_CONDITION: bgfx_function_id = 110;
pub const BGFX_FUNCTION_ID_ENCODER_SET_STENCIL: bgfx_function_id = 111;
pub const BGFX_FUNCTION_ID_ENCODER_SET_SCISSOR: bgfx_function_id = 112;
pub const BGFX_FUNCTION_ID_ENCODER_SET_SCISSOR_CACHED: bgfx_function_id = 113;
pub const BGFX_FUNCTION_ID_ENCODER_SET_TRANSFORM: bgfx_function_id = 114;
pub const BGFX_FUNCTION_ID_ENCODER_SET_TRANSFORM_CACHED: bgfx_function_id = 115;
pub const BGFX_FUNCTION_ID_ENCODER_ALLOC_TRANSFORM: bgfx_function_id = 116;
pub const BGFX_FUNCTION_ID_ENCODER_SET_UNIFORM: bgfx_function_id = 117;
pub const BGFX_FUNCTION_ID_ENCODER_SET_INDEX_BUFFER: bgfx_function_id = 118;
pub const BGFX_FUNCTION_ID_ENCODER_SET_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 119;
pub const BGFX_FUNCTION_ID_ENCODER_SET_TRANSIENT_INDEX_BUFFER: bgfx_function_id = 120;
pub const BGFX_FUNCTION_ID_ENCODER_SET_VERTEX_BUFFER: bgfx_function_id = 121;
pub const BGFX_FUNCTION_ID_ENCODER_SET_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 122;
pub const BGFX_FUNCTION_ID_ENCODER_SET_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 123;
pub const BGFX_FUNCTION_ID_ENCODER_SET_DYNAMIC_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 124;
pub const BGFX_FUNCTION_ID_ENCODER_SET_TRANSIENT_VERTEX_BUFFER: bgfx_function_id = 125;
pub const BGFX_FUNCTION_ID_ENCODER_SET_TRANSIENT_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 126;
pub const BGFX_FUNCTION_ID_ENCODER_SET_VERTEX_COUNT: bgfx_function_id = 127;
pub const BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_DATA_BUFFER: bgfx_function_id = 128;
pub const BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_DATA_FROM_VERTEX_BUFFER: bgfx_function_id = 129;
pub const BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_DATA_FROM_DYNAMIC_VERTEX_BUFFER: bgfx_function_id =
    130;
pub const BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_COUNT: bgfx_function_id = 131;
pub const BGFX_FUNCTION_ID_ENCODER_SET_TEXTURE: bgfx_function_id = 132;
pub const BGFX_FUNCTION_ID_ENCODER_TOUCH: bgfx_function_id = 133;
pub const BGFX_FUNCTION_ID_ENCODER_SUBMIT: bgfx_function_id = 134;
pub const BGFX_FUNCTION_ID_ENCODER_SUBMIT_OCCLUSION_QUERY: bgfx_function_id = 135;
pub const BGFX_FUNCTION_ID_ENCODER_SUBMIT_INDIRECT: bgfx_function_id = 136;
pub const BGFX_FUNCTION_ID_ENCODER_SUBMIT_INDIRECT_COUNT: bgfx_function_id = 137;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_INDEX_BUFFER: bgfx_function_id = 138;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_VERTEX_BUFFER: bgfx_function_id = 139;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 140;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 141;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_INDIRECT_BUFFER: bgfx_function_id = 142;
pub const BGFX_FUNCTION_ID_ENCODER_SET_IMAGE: bgfx_function_id = 143;
pub const BGFX_FUNCTION_ID_ENCODER_DISPATCH: bgfx_function_id = 144;
pub const BGFX_FUNCTION_ID_ENCODER_DISPATCH_INDIRECT: bgfx_function_id = 145;
pub const BGFX_FUNCTION_ID_ENCODER_DISCARD: bgfx_function_id = 146;
pub const BGFX_FUNCTION_ID_ENCODER_BLIT: bgfx_function_id = 147;
pub const BGFX_FUNCTION_ID_REQUEST_SCREEN_SHOT: bgfx_function_id = 148;
pub const BGFX_FUNCTION_ID_RENDER_FRAME: bgfx_function_id = 149;
pub const BGFX_FUNCTION_ID_SET_PLATFORM_DATA: bgfx_function_id = 150;
pub const BGFX_FUNCTION_ID_GET_INTERNAL_DATA: bgfx_function_id = 151;
pub const BGFX_FUNCTION_ID_OVERRIDE_INTERNAL_TEXTURE_PTR: bgfx_function_id = 152;
pub const BGFX_FUNCTION_ID_OVERRIDE_INTERNAL_TEXTURE: bgfx_function_id = 153;
pub const BGFX_FUNCTION_ID_SET_MARKER: bgfx_function_id = 154;
pub const BGFX_FUNCTION_ID_SET_STATE: bgfx_function_id = 155;
pub const BGFX_FUNCTION_ID_SET_CONDITION: bgfx_function_id = 156;
pub const BGFX_FUNCTION_ID_SET_STENCIL: bgfx_function_id = 157;
pub const BGFX_FUNCTION_ID_SET_SCISSOR: bgfx_function_id = 158;
pub const BGFX_FUNCTION_ID_SET_SCISSOR_CACHED: bgfx_function_id = 159;
pub const BGFX_FUNCTION_ID_SET_TRANSFORM: bgfx_function_id = 160;
pub const BGFX_FUNCTION_ID_SET_TRANSFORM_CACHED: bgfx_function_id = 161;
pub const BGFX_FUNCTION_ID_ALLOC_TRANSFORM: bgfx_function_id = 162;
pub const BGFX_FUNCTION_ID_SET_UNIFORM: bgfx_function_id = 163;
pub const BGFX_FUNCTION_ID_SET_INDEX_BUFFER: bgfx_function_id = 164;
pub const BGFX_FUNCTION_ID_SET_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 165;
pub const BGFX_FUNCTION_ID_SET_TRANSIENT_INDEX_BUFFER: bgfx_function_id = 166;
pub const BGFX_FUNCTION_ID_SET_VERTEX_BUFFER: bgfx_function_id = 167;
pub const BGFX_FUNCTION_ID_SET_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 168;
pub const BGFX_FUNCTION_ID_SET_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 169;
pub const BGFX_FUNCTION_ID_SET_DYNAMIC_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 170;
pub const BGFX_FUNCTION_ID_SET_TRANSIENT_VERTEX_BUFFER: bgfx_function_id = 171;
pub const BGFX_FUNCTION_ID_SET_TRANSIENT_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 172;
pub const BGFX_FUNCTION_ID_SET_VERTEX_COUNT: bgfx_function_id = 173;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_DATA_BUFFER: bgfx_function_id = 174;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_DATA_FROM_VERTEX_BUFFER: bgfx_function_id = 175;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_DATA_FROM_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 176;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_COUNT: bgfx_function_id = 177;
pub const BGFX_FUNCTION_ID_SET_TEXTURE: bgfx_function_id = 178;
pub const BGFX_FUNCTION_ID_TOUCH: bgfx_function_id = 179;
pub const BGFX_FUNCTION_ID_SUBMIT: bgfx_function_id = 180;
pub const BGFX_FUNCTION_ID_SUBMIT_OCCLUSION_QUERY: bgfx_function_id = 181;
pub const BGFX_FUNCTION_ID_SUBMIT_INDIRECT: bgfx_function_id = 182;
pub const BGFX_FUNCTION_ID_SUBMIT_INDIRECT_COUNT: bgfx_function_id = 183;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_INDEX_BUFFER: bgfx_function_id = 184;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_VERTEX_BUFFER: bgfx_function_id = 185;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 186;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 187;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_INDIRECT_BUFFER: bgfx_function_id = 188;
pub const BGFX_FUNCTION_ID_SET_IMAGE: bgfx_function_id = 189;
pub const BGFX_FUNCTION_ID_DISPATCH: bgfx_function_id = 190;
pub const BGFX_FUNCTION_ID_DISPATCH_INDIRECT: bgfx_function_id = 191;
pub const BGFX_FUNCTION_ID_DISCARD: bgfx_function_id = 192;
pub const BGFX_FUNCTION_ID_BLIT: bgfx_function_id = 193;
pub const BGFX_FUNCTION_ID_COUNT: bgfx_function_id = 194;
pub type bgfx_function_id = ::std::os::raw::c_uint;
pub use self::bgfx_function_id as bgfx_function_id_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct bgfx_interface_vtbl {
    pub attachment_init: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_attachment_t,
            _handle: bgfx_texture_handle_t,
            _access: bgfx_access_t,
            _layer: u16,
            _numLayers: u16,
            _mip: u16,
            _resolve: u8,
        ),
    >,
    pub vertex_layout_begin: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_vertex_layout_t,
            _rendererType: bgfx_renderer_type_t,
        ) -> *mut bgfx_vertex_layout_t,
    >,
    pub vertex_layout_add: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_vertex_layout_t,
            _attrib: bgfx_attrib_t,
            _num: u8,
            _type: bgfx_attrib_type_t,
            _normalized: bool,
            _asInt: bool,
        ) -> *mut bgfx_vertex_layout_t,
    >,
    pub vertex_layout_decode: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *const bgfx_vertex_layout_t,
            _attrib: bgfx_attrib_t,
            _num: *mut u8,
            _type: *mut bgfx_attrib_type_t,
            _normalized: *mut bool,
            _asInt: *mut bool,
        ),
    >,
    pub vertex_layout_has: ::std::option::Option<
        unsafe extern "C" fn(_this: *const bgfx_vertex_layout_t, _attrib: bgfx_attrib_t) -> bool,
    >,
    pub vertex_layout_skip: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_vertex_layout_t,
            _num: u8,
        ) -> *mut bgfx_vertex_layout_t,
    >,
    pub vertex_layout_end:
        ::std::option::Option<unsafe extern "C" fn(_this: *mut bgfx_vertex_layout_t)>,
    pub vertex_pack: ::std::option::Option<
        unsafe extern "C" fn(
            _input: *const f32,
            _inputNormalized: bool,
            _attr: bgfx_attrib_t,
            _layout: *const bgfx_vertex_layout_t,
            _data: *mut ::std::os::raw::c_void,
            _index: u32,
        ),
    >,
    pub vertex_unpack: ::std::option::Option<
        unsafe extern "C" fn(
            _output: *mut f32,
            _attr: bgfx_attrib_t,
            _layout: *const bgfx_vertex_layout_t,
            _data: *const ::std::os::raw::c_void,
            _index: u32,
        ),
    >,
    pub vertex_convert: ::std::option::Option<
        unsafe extern "C" fn(
            _dstLayout: *const bgfx_vertex_layout_t,
            _dstData: *mut ::std::os::raw::c_void,
            _srcLayout: *const bgfx_vertex_layout_t,
            _srcData: *const ::std::os::raw::c_void,
            _num: u32,
        ),
    >,
    pub weld_vertices: ::std::option::Option<
        unsafe extern "C" fn(
            _output: *mut ::std::os::raw::c_void,
            _layout: *const bgfx_vertex_layout_t,
            _data: *const ::std::os::raw::c_void,
            _num: u32,
            _index32: bool,
            _epsilon: f32,
        ) -> u32,
    >,
    pub topology_convert: ::std::option::Option<
        unsafe extern "C" fn(
            _conversion: bgfx_topology_convert_t,
            _dst: *mut ::std::os::raw::c_void,
            _dstSize: u32,
            _indices: *const ::std::os::raw::c_void,
            _numIndices: u32,
            _index32: bool,
        ) -> u32,
    >,
    pub topology_sort_tri_list: ::std::option::Option<
        unsafe extern "C" fn(
            _sort: bgfx_topology_sort_t,
            _dst: *mut ::std::os::raw::c_void,
            _dstSize: u32,
            _dir: *const f32,
            _pos: *const f32,
            _vertices: *const ::std::os::raw::c_void,
            _stride: u32,
            _indices: *const ::std::os::raw::c_void,
            _numIndices: u32,
            _index32: bool,
        ),
    >,
    pub get_supported_renderers: ::std::option::Option<
        unsafe extern "C" fn(_max: u8, _enum: *mut bgfx_renderer_type_t) -> u8,
    >,
    pub get_renderer_name: ::std::option::Option<
        unsafe extern "C" fn(_type: bgfx_renderer_type_t) -> *const ::std::os::raw::c_char,
    >,
    pub init_ctor: ::std::option::Option<unsafe extern "C" fn(_init: *mut bgfx_init_t)>,
    pub init: ::std::option::Option<unsafe extern "C" fn(_init: *const bgfx_init_t) -> bool>,
    pub shutdown: ::std::option::Option<unsafe extern "C" fn()>,
    pub reset: ::std::option::Option<
        unsafe extern "C" fn(
            _width: u32,
            _height: u32,
            _flags: u32,
            _format: bgfx_texture_format_t,
        ),
    >,
    pub frame: ::std::option::Option<unsafe extern "C" fn(_capture: bool) -> u32>,
    pub get_renderer_type: ::std::option::Option<unsafe extern "C" fn() -> bgfx_renderer_type_t>,
    pub get_caps: ::std::option::Option<unsafe extern "C" fn() -> *const bgfx_caps_t>,
    pub get_stats: ::std::option::Option<unsafe extern "C" fn() -> *const bgfx_stats_t>,
    pub alloc: ::std::option::Option<unsafe extern "C" fn(_size: u32) -> *const bgfx_memory_t>,
    pub copy: ::std::option::Option<
        unsafe extern "C" fn(
            _data: *const ::std::os::raw::c_void,
            _size: u32,
        ) -> *const bgfx_memory_t,
    >,
    pub make_ref: ::std::option::Option<
        unsafe extern "C" fn(
            _data: *const ::std::os::raw::c_void,
            _size: u32,
        ) -> *const bgfx_memory_t,
    >,
    pub make_ref_release: ::std::option::Option<
        unsafe extern "C" fn(
            _data: *const ::std::os::raw::c_void,
            _size: u32,
            _releaseFn: bgfx_release_fn_t,
            _userData: *mut ::std::os::raw::c_void,
        ) -> *const bgfx_memory_t,
    >,
    pub set_debug: ::std::option::Option<unsafe extern "C" fn(_debug: u32)>,
    pub dbg_text_clear: ::std::option::Option<unsafe extern "C" fn(_attr: u8, _small: bool)>,
    pub dbg_text_printf: ::std::option::Option<
        unsafe extern "C" fn(
            _x: u16,
            _y: u16,
            _attr: u8,
            _format: *const ::std::os::raw::c_char,
            ...
        ),
    >,
    pub dbg_text_vprintf: ::std::option::Option<
        unsafe extern "C" fn(
            _x: u16,
            _y: u16,
            _attr: u8,
            _format: *const ::std::os::raw::c_char,
            _argList: *mut __va_list_tag,
        ),
    >,
    pub dbg_text_image: ::std::option::Option<
        unsafe extern "C" fn(
            _x: u16,
            _y: u16,
            _width: u16,
            _height: u16,
            _data: *const ::std::os::raw::c_void,
            _pitch: u16,
        ),
    >,
    pub create_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(_mem: *const bgfx_memory_t, _flags: u16) -> bgfx_index_buffer_handle_t,
    >,
    pub set_index_buffer_name: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_index_buffer_handle_t,
            _name: *const ::std::os::raw::c_char,
            _len: i32,
        ),
    >,
    pub destroy_index_buffer:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_index_buffer_handle_t)>,
    pub create_vertex_layout: ::std::option::Option<
        unsafe extern "C" fn(_layout: *const bgfx_vertex_layout_t) -> bgfx_vertex_layout_handle_t,
    >,
    pub destroy_vertex_layout:
        ::std::option::Option<unsafe extern "C" fn(_layoutHandle: bgfx_vertex_layout_handle_t)>,
    pub create_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _mem: *const bgfx_memory_t,
            _layout: *const bgfx_vertex_layout_t,
            _flags: u16,
        ) -> bgfx_vertex_buffer_handle_t,
    >,
    pub set_vertex_buffer_name: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_vertex_buffer_handle_t,
            _name: *const ::std::os::raw::c_char,
            _len: i32,
        ),
    >,
    pub destroy_vertex_buffer:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_vertex_buffer_handle_t)>,
    pub create_dynamic_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(_num: u32, _flags: u16) -> bgfx_dynamic_index_buffer_handle_t,
    >,
    pub create_dynamic_index_buffer_mem: ::std::option::Option<
        unsafe extern "C" fn(
            _mem: *const bgfx_memory_t,
            _flags: u16,
        ) -> bgfx_dynamic_index_buffer_handle_t,
    >,
    pub update_dynamic_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_dynamic_index_buffer_handle_t,
            _startIndex: u32,
            _mem: *const bgfx_memory_t,
        ),
    >,
    pub destroy_dynamic_index_buffer:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_dynamic_index_buffer_handle_t)>,
    pub create_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _num: u32,
            _layout: *const bgfx_vertex_layout_t,
            _flags: u16,
        ) -> bgfx_dynamic_vertex_buffer_handle_t,
    >,
    pub create_dynamic_vertex_buffer_mem: ::std::option::Option<
        unsafe extern "C" fn(
            _mem: *const bgfx_memory_t,
            _layout: *const bgfx_vertex_layout_t,
            _flags: u16,
        ) -> bgfx_dynamic_vertex_buffer_handle_t,
    >,
    pub update_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _startVertex: u32,
            _mem: *const bgfx_memory_t,
        ),
    >,
    pub destroy_dynamic_vertex_buffer:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_dynamic_vertex_buffer_handle_t)>,
    pub get_avail_transient_index_buffer:
        ::std::option::Option<unsafe extern "C" fn(_num: u32, _index32: bool) -> u32>,
    pub get_avail_transient_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(_num: u32, _layout: *const bgfx_vertex_layout_t) -> u32,
    >,
    pub get_avail_instance_data_buffer:
        ::std::option::Option<unsafe extern "C" fn(_num: u32, _stride: u16) -> u32>,
    pub alloc_transient_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(_tib: *mut bgfx_transient_index_buffer_t, _num: u32, _index32: bool),
    >,
    pub alloc_transient_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _tvb: *mut bgfx_transient_vertex_buffer_t,
            _num: u32,
            _layout: *const bgfx_vertex_layout_t,
        ),
    >,
    pub alloc_transient_buffers: ::std::option::Option<
        unsafe extern "C" fn(
            _tvb: *mut bgfx_transient_vertex_buffer_t,
            _layout: *const bgfx_vertex_layout_t,
            _numVertices: u32,
            _tib: *mut bgfx_transient_index_buffer_t,
            _numIndices: u32,
            _index32: bool,
        ) -> bool,
    >,
    pub alloc_instance_data_buffer: ::std::option::Option<
        unsafe extern "C" fn(_idb: *mut bgfx_instance_data_buffer_t, _num: u32, _stride: u16),
    >,
    pub create_indirect_buffer:
        ::std::option::Option<unsafe extern "C" fn(_num: u32) -> bgfx_indirect_buffer_handle_t>,
    pub destroy_indirect_buffer:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_indirect_buffer_handle_t)>,
    pub create_shader: ::std::option::Option<
        unsafe extern "C" fn(_mem: *const bgfx_memory_t) -> bgfx_shader_handle_t,
    >,
    pub get_shader_uniforms: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_shader_handle_t,
            _uniforms: *mut bgfx_uniform_handle_t,
            _max: u16,
        ) -> u16,
    >,
    pub set_shader_name: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_shader_handle_t,
            _name: *const ::std::os::raw::c_char,
            _len: i32,
        ),
    >,
    pub destroy_shader: ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_shader_handle_t)>,
    pub create_program: ::std::option::Option<
        unsafe extern "C" fn(
            _vsh: bgfx_shader_handle_t,
            _fsh: bgfx_shader_handle_t,
            _destroyShaders: bool,
        ) -> bgfx_program_handle_t,
    >,
    pub create_compute_program: ::std::option::Option<
        unsafe extern "C" fn(
            _csh: bgfx_shader_handle_t,
            _destroyShaders: bool,
        ) -> bgfx_program_handle_t,
    >,
    pub destroy_program:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_program_handle_t)>,
    pub is_texture_valid: ::std::option::Option<
        unsafe extern "C" fn(
            _depth: u16,
            _cubeMap: bool,
            _numLayers: u16,
            _format: bgfx_texture_format_t,
            _flags: u64,
        ) -> bool,
    >,
    pub is_frame_buffer_valid: ::std::option::Option<
        unsafe extern "C" fn(_num: u8, _attachment: *const bgfx_attachment_t) -> bool,
    >,
    pub calc_texture_size: ::std::option::Option<
        unsafe extern "C" fn(
            _info: *mut bgfx_texture_info_t,
            _width: u16,
            _height: u16,
            _depth: u16,
            _cubeMap: bool,
            _hasMips: bool,
            _numLayers: u16,
            _format: bgfx_texture_format_t,
        ),
    >,
    pub create_texture: ::std::option::Option<
        unsafe extern "C" fn(
            _mem: *const bgfx_memory_t,
            _flags: u64,
            _skip: u8,
            _info: *mut bgfx_texture_info_t,
        ) -> bgfx_texture_handle_t,
    >,
    pub create_texture_2d: ::std::option::Option<
        unsafe extern "C" fn(
            _width: u16,
            _height: u16,
            _hasMips: bool,
            _numLayers: u16,
            _format: bgfx_texture_format_t,
            _flags: u64,
            _mem: *const bgfx_memory_t,
        ) -> bgfx_texture_handle_t,
    >,
    pub create_texture_2d_scaled: ::std::option::Option<
        unsafe extern "C" fn(
            _ratio: bgfx_backbuffer_ratio_t,
            _hasMips: bool,
            _numLayers: u16,
            _format: bgfx_texture_format_t,
            _flags: u64,
        ) -> bgfx_texture_handle_t,
    >,
    pub create_texture_3d: ::std::option::Option<
        unsafe extern "C" fn(
            _width: u16,
            _height: u16,
            _depth: u16,
            _hasMips: bool,
            _format: bgfx_texture_format_t,
            _flags: u64,
            _mem: *const bgfx_memory_t,
        ) -> bgfx_texture_handle_t,
    >,
    pub create_texture_cube: ::std::option::Option<
        unsafe extern "C" fn(
            _size: u16,
            _hasMips: bool,
            _numLayers: u16,
            _format: bgfx_texture_format_t,
            _flags: u64,
            _mem: *const bgfx_memory_t,
        ) -> bgfx_texture_handle_t,
    >,
    pub update_texture_2d: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_texture_handle_t,
            _layer: u16,
            _mip: u8,
            _x: u16,
            _y: u16,
            _width: u16,
            _height: u16,
            _mem: *const bgfx_memory_t,
            _pitch: u16,
        ),
    >,
    pub update_texture_3d: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_texture_handle_t,
            _mip: u8,
            _x: u16,
            _y: u16,
            _z: u16,
            _width: u16,
            _height: u16,
            _depth: u16,
            _mem: *const bgfx_memory_t,
        ),
    >,
    pub update_texture_cube: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_texture_handle_t,
            _layer: u16,
            _side: u8,
            _mip: u8,
            _x: u16,
            _y: u16,
            _width: u16,
            _height: u16,
            _mem: *const bgfx_memory_t,
            _pitch: u16,
        ),
    >,
    pub read_texture: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_texture_handle_t,
            _data: *mut ::std::os::raw::c_void,
            _mip: u8,
        ) -> u32,
    >,
    pub set_texture_name: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_texture_handle_t,
            _name: *const ::std::os::raw::c_char,
            _len: i32,
        ),
    >,
    pub get_direct_access_ptr: ::std::option::Option<
        unsafe extern "C" fn(_handle: bgfx_texture_handle_t) -> *mut ::std::os::raw::c_void,
    >,
    pub destroy_texture:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_texture_handle_t)>,
    pub create_frame_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _width: u16,
            _height: u16,
            _format: bgfx_texture_format_t,
            _textureFlags: u64,
        ) -> bgfx_frame_buffer_handle_t,
    >,
    pub create_frame_buffer_scaled: ::std::option::Option<
        unsafe extern "C" fn(
            _ratio: bgfx_backbuffer_ratio_t,
            _format: bgfx_texture_format_t,
            _textureFlags: u64,
        ) -> bgfx_frame_buffer_handle_t,
    >,
    pub create_frame_buffer_from_handles: ::std::option::Option<
        unsafe extern "C" fn(
            _num: u8,
            _handles: *const bgfx_texture_handle_t,
            _destroyTexture: bool,
        ) -> bgfx_frame_buffer_handle_t,
    >,
    pub create_frame_buffer_from_attachment: ::std::option::Option<
        unsafe extern "C" fn(
            _num: u8,
            _attachment: *const bgfx_attachment_t,
            _destroyTexture: bool,
        ) -> bgfx_frame_buffer_handle_t,
    >,
    pub create_frame_buffer_from_nwh: ::std::option::Option<
        unsafe extern "C" fn(
            _nwh: *mut ::std::os::raw::c_void,
            _width: u16,
            _height: u16,
            _format: bgfx_texture_format_t,
            _depthFormat: bgfx_texture_format_t,
        ) -> bgfx_frame_buffer_handle_t,
    >,
    pub set_frame_buffer_name: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_frame_buffer_handle_t,
            _name: *const ::std::os::raw::c_char,
            _len: i32,
        ),
    >,
    pub get_texture: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_frame_buffer_handle_t,
            _attachment: u8,
        ) -> bgfx_texture_handle_t,
    >,
    pub destroy_frame_buffer:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_frame_buffer_handle_t)>,
    pub create_uniform: ::std::option::Option<
        unsafe extern "C" fn(
            _name: *const ::std::os::raw::c_char,
            _type: bgfx_uniform_type_t,
            _num: u16,
        ) -> bgfx_uniform_handle_t,
    >,
    pub get_uniform_info: ::std::option::Option<
        unsafe extern "C" fn(_handle: bgfx_uniform_handle_t, _info: *mut bgfx_uniform_info_t),
    >,
    pub destroy_uniform:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_uniform_handle_t)>,
    pub create_occlusion_query:
        ::std::option::Option<unsafe extern "C" fn() -> bgfx_occlusion_query_handle_t>,
    pub get_result: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_occlusion_query_handle_t,
            _result: *mut i32,
        ) -> bgfx_occlusion_query_result_t,
    >,
    pub destroy_occlusion_query:
        ::std::option::Option<unsafe extern "C" fn(_handle: bgfx_occlusion_query_handle_t)>,
    pub set_palette_color:
        ::std::option::Option<unsafe extern "C" fn(_index: u8, _rgba: *const f32)>,
    pub set_palette_color_rgba8:
        ::std::option::Option<unsafe extern "C" fn(_index: u8, _rgba: u32)>,
    pub set_view_name: ::std::option::Option<
        unsafe extern "C" fn(_id: bgfx_view_id_t, _name: *const ::std::os::raw::c_char),
    >,
    pub set_view_rect: ::std::option::Option<
        unsafe extern "C" fn(_id: bgfx_view_id_t, _x: u16, _y: u16, _width: u16, _height: u16),
    >,
    pub set_view_rect_ratio: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _x: u16,
            _y: u16,
            _ratio: bgfx_backbuffer_ratio_t,
        ),
    >,
    pub set_view_scissor: ::std::option::Option<
        unsafe extern "C" fn(_id: bgfx_view_id_t, _x: u16, _y: u16, _width: u16, _height: u16),
    >,
    pub set_view_clear: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _flags: u16,
            _rgba: u32,
            _depth: f32,
            _stencil: u8,
        ),
    >,
    pub set_view_clear_mrt: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _flags: u16,
            _depth: f32,
            _stencil: u8,
            _c0: u8,
            _c1: u8,
            _c2: u8,
            _c3: u8,
            _c4: u8,
            _c5: u8,
            _c6: u8,
            _c7: u8,
        ),
    >,
    pub set_view_mode:
        ::std::option::Option<unsafe extern "C" fn(_id: bgfx_view_id_t, _mode: bgfx_view_mode_t)>,
    pub set_view_frame_buffer: ::std::option::Option<
        unsafe extern "C" fn(_id: bgfx_view_id_t, _handle: bgfx_frame_buffer_handle_t),
    >,
    pub set_view_transform: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _view: *const ::std::os::raw::c_void,
            _proj: *const ::std::os::raw::c_void,
        ),
    >,
    pub set_view_order: ::std::option::Option<
        unsafe extern "C" fn(_id: bgfx_view_id_t, _num: u16, _order: *const bgfx_view_id_t),
    >,
    pub reset_view: ::std::option::Option<unsafe extern "C" fn(_id: bgfx_view_id_t)>,
    pub encoder_begin:
        ::std::option::Option<unsafe extern "C" fn(_forThread: bool) -> *mut bgfx_encoder_t>,
    pub encoder_end: ::std::option::Option<unsafe extern "C" fn(_encoder: *mut bgfx_encoder_t)>,
    pub encoder_set_marker: ::std::option::Option<
        unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _marker: *const ::std::os::raw::c_char),
    >,
    pub encoder_set_state: ::std::option::Option<
        unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _state: u64, _rgba: u32),
    >,
    pub encoder_set_condition: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _handle: bgfx_occlusion_query_handle_t,
            _visible: bool,
        ),
    >,
    pub encoder_set_stencil: ::std::option::Option<
        unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _fstencil: u32, _bstencil: u32),
    >,
    pub encoder_set_scissor: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _x: u16,
            _y: u16,
            _width: u16,
            _height: u16,
        ) -> u16,
    >,
    pub encoder_set_scissor_cached:
        ::std::option::Option<unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _cache: u16)>,
    pub encoder_set_transform: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _mtx: *const ::std::os::raw::c_void,
            _num: u16,
        ) -> u32,
    >,
    pub encoder_set_transform_cached: ::std::option::Option<
        unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _cache: u32, _num: u16),
    >,
    pub encoder_alloc_transform: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _transform: *mut bgfx_transform_t,
            _num: u16,
        ) -> u32,
    >,
    pub encoder_set_uniform: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _handle: bgfx_uniform_handle_t,
            _value: *const ::std::os::raw::c_void,
            _num: u16,
        ),
    >,
    pub encoder_set_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _handle: bgfx_index_buffer_handle_t,
            _firstIndex: u32,
            _numIndices: u32,
        ),
    >,
    pub encoder_set_dynamic_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _handle: bgfx_dynamic_index_buffer_handle_t,
            _firstIndex: u32,
            _numIndices: u32,
        ),
    >,
    pub encoder_set_transient_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _tib: *const bgfx_transient_index_buffer_t,
            _firstIndex: u32,
            _numIndices: u32,
        ),
    >,
    pub encoder_set_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stream: u8,
            _handle: bgfx_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
        ),
    >,
    pub encoder_set_vertex_buffer_with_layout: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stream: u8,
            _handle: bgfx_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
            _layoutHandle: bgfx_vertex_layout_handle_t,
        ),
    >,
    pub encoder_set_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stream: u8,
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
        ),
    >,
    pub encoder_set_dynamic_vertex_buffer_with_layout: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stream: u8,
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
            _layoutHandle: bgfx_vertex_layout_handle_t,
        ),
    >,
    pub encoder_set_transient_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stream: u8,
            _tvb: *const bgfx_transient_vertex_buffer_t,
            _startVertex: u32,
            _numVertices: u32,
        ),
    >,
    pub encoder_set_transient_vertex_buffer_with_layout: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stream: u8,
            _tvb: *const bgfx_transient_vertex_buffer_t,
            _startVertex: u32,
            _numVertices: u32,
            _layoutHandle: bgfx_vertex_layout_handle_t,
        ),
    >,
    pub encoder_set_vertex_count:
        ::std::option::Option<unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _numVertices: u32)>,
    pub encoder_set_instance_data_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _idb: *const bgfx_instance_data_buffer_t,
            _start: u32,
            _num: u32,
        ),
    >,
    pub encoder_set_instance_data_from_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _handle: bgfx_vertex_buffer_handle_t,
            _startVertex: u32,
            _num: u32,
        ),
    >,
    pub encoder_set_instance_data_from_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _startVertex: u32,
            _num: u32,
        ),
    >,
    pub encoder_set_instance_count:
        ::std::option::Option<unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _numInstances: u32)>,
    pub encoder_set_texture: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stage: u8,
            _sampler: bgfx_uniform_handle_t,
            _handle: bgfx_texture_handle_t,
            _flags: u32,
        ),
    >,
    pub encoder_touch: ::std::option::Option<
        unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _id: bgfx_view_id_t),
    >,
    pub encoder_submit: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub encoder_submit_occlusion_query: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _occlusionQuery: bgfx_occlusion_query_handle_t,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub encoder_submit_indirect: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _indirectHandle: bgfx_indirect_buffer_handle_t,
            _start: u16,
            _num: u16,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub encoder_submit_indirect_count: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _indirectHandle: bgfx_indirect_buffer_handle_t,
            _start: u16,
            _numHandle: bgfx_index_buffer_handle_t,
            _numIndex: u32,
            _numMax: u16,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub encoder_set_compute_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stage: u8,
            _handle: bgfx_index_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub encoder_set_compute_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stage: u8,
            _handle: bgfx_vertex_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub encoder_set_compute_dynamic_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stage: u8,
            _handle: bgfx_dynamic_index_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub encoder_set_compute_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stage: u8,
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub encoder_set_compute_indirect_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stage: u8,
            _handle: bgfx_indirect_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub encoder_set_image: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _stage: u8,
            _handle: bgfx_texture_handle_t,
            _mip: u8,
            _access: bgfx_access_t,
            _format: bgfx_texture_format_t,
        ),
    >,
    pub encoder_dispatch: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _numX: u32,
            _numY: u32,
            _numZ: u32,
            _flags: u8,
        ),
    >,
    pub encoder_dispatch_indirect: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _indirectHandle: bgfx_indirect_buffer_handle_t,
            _start: u16,
            _num: u16,
            _flags: u8,
        ),
    >,
    pub encoder_discard:
        ::std::option::Option<unsafe extern "C" fn(_this: *mut bgfx_encoder_t, _flags: u8)>,
    pub encoder_blit: ::std::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_encoder_t,
            _id: bgfx_view_id_t,
            _dst: bgfx_texture_handle_t,
            _dstMip: u8,
            _dstX: u16,
            _dstY: u16,
            _dstZ: u16,
            _src: bgfx_texture_handle_t,
            _srcMip: u8,
            _srcX: u16,
            _srcY: u16,
            _srcZ: u16,
            _width: u16,
            _height: u16,
            _depth: u16,
        ),
    >,
    pub request_screen_shot: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_frame_buffer_handle_t,
            _filePath: *const ::std::os::raw::c_char,
        ),
    >,
    pub render_frame:
        ::std::option::Option<unsafe extern "C" fn(_msecs: i32) -> bgfx_render_frame_t>,
    pub set_platform_data:
        ::std::option::Option<unsafe extern "C" fn(_data: *const bgfx_platform_data_t)>,
    pub get_internal_data:
        ::std::option::Option<unsafe extern "C" fn() -> *const bgfx_internal_data_t>,
    pub override_internal_texture_ptr: ::std::option::Option<
        unsafe extern "C" fn(_handle: bgfx_texture_handle_t, _ptr: usize) -> usize,
    >,
    pub override_internal_texture: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_texture_handle_t,
            _width: u16,
            _height: u16,
            _numMips: u8,
            _format: bgfx_texture_format_t,
            _flags: u64,
        ) -> usize,
    >,
    pub set_marker:
        ::std::option::Option<unsafe extern "C" fn(_marker: *const ::std::os::raw::c_char)>,
    pub set_state: ::std::option::Option<unsafe extern "C" fn(_state: u64, _rgba: u32)>,
    pub set_condition: ::std::option::Option<
        unsafe extern "C" fn(_handle: bgfx_occlusion_query_handle_t, _visible: bool),
    >,
    pub set_stencil: ::std::option::Option<unsafe extern "C" fn(_fstencil: u32, _bstencil: u32)>,
    pub set_scissor: ::std::option::Option<
        unsafe extern "C" fn(_x: u16, _y: u16, _width: u16, _height: u16) -> u16,
    >,
    pub set_scissor_cached: ::std::option::Option<unsafe extern "C" fn(_cache: u16)>,
    pub set_transform: ::std::option::Option<
        unsafe extern "C" fn(_mtx: *const ::std::os::raw::c_void, _num: u16) -> u32,
    >,
    pub set_transform_cached: ::std::option::Option<unsafe extern "C" fn(_cache: u32, _num: u16)>,
    pub alloc_transform: ::std::option::Option<
        unsafe extern "C" fn(_transform: *mut bgfx_transform_t, _num: u16) -> u32,
    >,
    pub set_uniform: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_uniform_handle_t,
            _value: *const ::std::os::raw::c_void,
            _num: u16,
        ),
    >,
    pub set_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_index_buffer_handle_t,
            _firstIndex: u32,
            _numIndices: u32,
        ),
    >,
    pub set_dynamic_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_dynamic_index_buffer_handle_t,
            _firstIndex: u32,
            _numIndices: u32,
        ),
    >,
    pub set_transient_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _tib: *const bgfx_transient_index_buffer_t,
            _firstIndex: u32,
            _numIndices: u32,
        ),
    >,
    pub set_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stream: u8,
            _handle: bgfx_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
        ),
    >,
    pub set_vertex_buffer_with_layout: ::std::option::Option<
        unsafe extern "C" fn(
            _stream: u8,
            _handle: bgfx_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
            _layoutHandle: bgfx_vertex_layout_handle_t,
        ),
    >,
    pub set_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stream: u8,
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
        ),
    >,
    pub set_dynamic_vertex_buffer_with_layout: ::std::option::Option<
        unsafe extern "C" fn(
            _stream: u8,
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _startVertex: u32,
            _numVertices: u32,
            _layoutHandle: bgfx_vertex_layout_handle_t,
        ),
    >,
    pub set_transient_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stream: u8,
            _tvb: *const bgfx_transient_vertex_buffer_t,
            _startVertex: u32,
            _numVertices: u32,
        ),
    >,
    pub set_transient_vertex_buffer_with_layout: ::std::option::Option<
        unsafe extern "C" fn(
            _stream: u8,
            _tvb: *const bgfx_transient_vertex_buffer_t,
            _startVertex: u32,
            _numVertices: u32,
            _layoutHandle: bgfx_vertex_layout_handle_t,
        ),
    >,
    pub set_vertex_count: ::std::option::Option<unsafe extern "C" fn(_numVertices: u32)>,
    pub set_instance_data_buffer: ::std::option::Option<
        unsafe extern "C" fn(_idb: *const bgfx_instance_data_buffer_t, _start: u32, _num: u32),
    >,
    pub set_instance_data_from_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(_handle: bgfx_vertex_buffer_handle_t, _startVertex: u32, _num: u32),
    >,
    pub set_instance_data_from_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _startVertex: u32,
            _num: u32,
        ),
    >,
    pub set_instance_count: ::std::option::Option<unsafe extern "C" fn(_numInstances: u32)>,
    pub set_texture: ::std::option::Option<
        unsafe extern "C" fn(
            _stage: u8,
            _sampler: bgfx_uniform_handle_t,
            _handle: bgfx_texture_handle_t,
            _flags: u32,
        ),
    >,
    pub touch: ::std::option::Option<unsafe extern "C" fn(_id: bgfx_view_id_t)>,
    pub submit: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub submit_occlusion_query: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _occlusionQuery: bgfx_occlusion_query_handle_t,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub submit_indirect: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _indirectHandle: bgfx_indirect_buffer_handle_t,
            _start: u16,
            _num: u16,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub submit_indirect_count: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _indirectHandle: bgfx_indirect_buffer_handle_t,
            _start: u16,
            _numHandle: bgfx_index_buffer_handle_t,
            _numIndex: u32,
            _numMax: u16,
            _depth: u32,
            _flags: u8,
        ),
    >,
    pub set_compute_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stage: u8,
            _handle: bgfx_index_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub set_compute_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stage: u8,
            _handle: bgfx_vertex_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub set_compute_dynamic_index_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stage: u8,
            _handle: bgfx_dynamic_index_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub set_compute_dynamic_vertex_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stage: u8,
            _handle: bgfx_dynamic_vertex_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub set_compute_indirect_buffer: ::std::option::Option<
        unsafe extern "C" fn(
            _stage: u8,
            _handle: bgfx_indirect_buffer_handle_t,
            _access: bgfx_access_t,
        ),
    >,
    pub set_image: ::std::option::Option<
        unsafe extern "C" fn(
            _stage: u8,
            _handle: bgfx_texture_handle_t,
            _mip: u8,
            _access: bgfx_access_t,
            _format: bgfx_texture_format_t,
        ),
    >,
    pub dispatch: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _numX: u32,
            _numY: u32,
            _numZ: u32,
            _flags: u8,
        ),
    >,
    pub dispatch_indirect: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _program: bgfx_program_handle_t,
            _indirectHandle: bgfx_indirect_buffer_handle_t,
            _start: u16,
            _num: u16,
            _flags: u8,
        ),
    >,
    pub discard: ::std::option::Option<unsafe extern "C" fn(_flags: u8)>,
    pub blit: ::std::option::Option<
        unsafe extern "C" fn(
            _id: bgfx_view_id_t,
            _dst: bgfx_texture_handle_t,
            _dstMip: u8,
            _dstX: u16,
            _dstY: u16,
            _dstZ: u16,
            _src: bgfx_texture_handle_t,
            _srcMip: u8,
            _srcX: u16,
            _srcY: u16,
            _srcZ: u16,
            _width: u16,
            _height: u16,
            _depth: u16,
        ),
    >,
}
pub type PFN_BGFX_GET_INTERFACE =
    ::std::option::Option<unsafe extern "C" fn(_version: u32) -> *mut bgfx_interface_vtbl_t>;
extern "C" {
    pub fn bgfx_get_interface(_version: u32) -> *mut bgfx_interface_vtbl_t;
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
    pub gp_offset: ::std::os::raw::c_uint,
    pub fp_offset: ::std::os::raw::c_uint,
    pub overflow_arg_area: *mut ::std::os::raw::c_void,
    pub reg_save_area: *mut ::std::os::raw::c_void,
}