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
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
/* automatically generated by rust-bindgen */

pub type size_t = u64;

pub const BGFX_API_VERSION: u32 = 115;
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_F8X1: u32 = 1;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F8X2: u32 = 2;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F8X4: u32 = 3;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F16X1: u32 = 4;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F16X2: u32 = 5;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F16X4: u32 = 6;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F32X1: u32 = 7;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F32X2: u32 = 8;
pub const BGFX_BUFFER_COMPUTE_FORMAT_F32X4: 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_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_TEXTURE_COMPARE_RESERVED: u32 = 524288;
pub const BGFX_CAPS_TEXTURE_COMPARE_LEQUAL: u32 = 1048576;
pub const BGFX_CAPS_TEXTURE_CUBE_ARRAY: u32 = 2097152;
pub const BGFX_CAPS_TEXTURE_DIRECT_ACCESS: u32 = 4194304;
pub const BGFX_CAPS_TEXTURE_READ_BACK: u32 = 8388608;
pub const BGFX_CAPS_VERTEX_ATTRIB_HALF: u32 = 16777216;
pub const BGFX_CAPS_VERTEX_ATTRIB_UINT10: u32 = 33554432;
pub const BGFX_CAPS_VERTEX_ID: u32 = 67108864;
pub const BGFX_CAPS_VIEWPORT_LAYER_ARRAY: u32 = 134217728;
pub const BGFX_CAPS_TEXTURE_COMPARE_ALL: u32 = 1572864;
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_INTEL: u32 = 32902;
pub const BGFX_PCI_ID_NVIDIA: u32 = 4318;
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 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."]
#[doc = ""]
pub type bgfx_fatal = u32;
#[doc = " Fatal error enum."]
#[doc = ""]
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_DIRECT3D9: bgfx_renderer_type = 1;
#[doc = " ( 1) Direct3D 9.0"]
pub const BGFX_RENDERER_TYPE_DIRECT3D11: bgfx_renderer_type = 2;
#[doc = " ( 2) Direct3D 11.0"]
pub const BGFX_RENDERER_TYPE_DIRECT3D12: bgfx_renderer_type = 3;
#[doc = " ( 3) Direct3D 12.0"]
pub const BGFX_RENDERER_TYPE_GNM: bgfx_renderer_type = 4;
#[doc = " ( 4) GNM"]
pub const BGFX_RENDERER_TYPE_METAL: bgfx_renderer_type = 5;
#[doc = " ( 5) Metal"]
pub const BGFX_RENDERER_TYPE_NVN: bgfx_renderer_type = 6;
#[doc = " ( 6) NVN"]
pub const BGFX_RENDERER_TYPE_OPENGLES: bgfx_renderer_type = 7;
#[doc = " ( 7) OpenGL ES 2.0+"]
pub const BGFX_RENDERER_TYPE_OPENGL: bgfx_renderer_type = 8;
#[doc = " ( 8) OpenGL 2.1+"]
pub const BGFX_RENDERER_TYPE_VULKAN: bgfx_renderer_type = 9;
#[doc = " ( 9) Vulkan"]
pub const BGFX_RENDERER_TYPE_WEBGPU: bgfx_renderer_type = 10;
#[doc = " (10) WebGPU"]
pub const BGFX_RENDERER_TYPE_COUNT: bgfx_renderer_type = 11;
#[doc = " Renderer backend type enum."]
#[doc = ""]
pub type bgfx_renderer_type = u32;
#[doc = " Renderer backend type enum."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_access = u32;
#[doc = " Access mode enum."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_attrib = u32;
#[doc = " Vertex attribute enum."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_attrib_type = u32;
#[doc = " Vertex attribute type enum."]
#[doc = ""]
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_ASTC5X5: bgfx_texture_format = 21;
#[doc = " (21) ASTC 5x5 5.12 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC6X6: bgfx_texture_format = 22;
#[doc = " (22) ASTC 6x6 3.56 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC8X5: bgfx_texture_format = 23;
#[doc = " (23) ASTC 8x5 3.20 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC8X6: bgfx_texture_format = 24;
#[doc = " (24) ASTC 8x6 2.67 BPP"]
pub const BGFX_TEXTURE_FORMAT_ASTC10X5: bgfx_texture_format = 25;
#[doc = " (25) ASTC 10x5 2.56 BPP"]
pub const BGFX_TEXTURE_FORMAT_UNKNOWN: bgfx_texture_format = 26;
#[doc = " (26) Compressed formats above."]
pub const BGFX_TEXTURE_FORMAT_R1: bgfx_texture_format = 27;
#[doc = " (27)"]
pub const BGFX_TEXTURE_FORMAT_A8: bgfx_texture_format = 28;
#[doc = " (28)"]
pub const BGFX_TEXTURE_FORMAT_R8: bgfx_texture_format = 29;
#[doc = " (29)"]
pub const BGFX_TEXTURE_FORMAT_R8I: bgfx_texture_format = 30;
#[doc = " (30)"]
pub const BGFX_TEXTURE_FORMAT_R8U: bgfx_texture_format = 31;
#[doc = " (31)"]
pub const BGFX_TEXTURE_FORMAT_R8S: bgfx_texture_format = 32;
#[doc = " (32)"]
pub const BGFX_TEXTURE_FORMAT_R16: bgfx_texture_format = 33;
#[doc = " (33)"]
pub const BGFX_TEXTURE_FORMAT_R16I: bgfx_texture_format = 34;
#[doc = " (34)"]
pub const BGFX_TEXTURE_FORMAT_R16U: bgfx_texture_format = 35;
#[doc = " (35)"]
pub const BGFX_TEXTURE_FORMAT_R16F: bgfx_texture_format = 36;
#[doc = " (36)"]
pub const BGFX_TEXTURE_FORMAT_R16S: bgfx_texture_format = 37;
#[doc = " (37)"]
pub const BGFX_TEXTURE_FORMAT_R32I: bgfx_texture_format = 38;
#[doc = " (38)"]
pub const BGFX_TEXTURE_FORMAT_R32U: bgfx_texture_format = 39;
#[doc = " (39)"]
pub const BGFX_TEXTURE_FORMAT_R32F: bgfx_texture_format = 40;
#[doc = " (40)"]
pub const BGFX_TEXTURE_FORMAT_RG8: bgfx_texture_format = 41;
#[doc = " (41)"]
pub const BGFX_TEXTURE_FORMAT_RG8I: bgfx_texture_format = 42;
#[doc = " (42)"]
pub const BGFX_TEXTURE_FORMAT_RG8U: bgfx_texture_format = 43;
#[doc = " (43)"]
pub const BGFX_TEXTURE_FORMAT_RG8S: bgfx_texture_format = 44;
#[doc = " (44)"]
pub const BGFX_TEXTURE_FORMAT_RG16: bgfx_texture_format = 45;
#[doc = " (45)"]
pub const BGFX_TEXTURE_FORMAT_RG16I: bgfx_texture_format = 46;
#[doc = " (46)"]
pub const BGFX_TEXTURE_FORMAT_RG16U: bgfx_texture_format = 47;
#[doc = " (47)"]
pub const BGFX_TEXTURE_FORMAT_RG16F: bgfx_texture_format = 48;
#[doc = " (48)"]
pub const BGFX_TEXTURE_FORMAT_RG16S: bgfx_texture_format = 49;
#[doc = " (49)"]
pub const BGFX_TEXTURE_FORMAT_RG32I: bgfx_texture_format = 50;
#[doc = " (50)"]
pub const BGFX_TEXTURE_FORMAT_RG32U: bgfx_texture_format = 51;
#[doc = " (51)"]
pub const BGFX_TEXTURE_FORMAT_RG32F: bgfx_texture_format = 52;
#[doc = " (52)"]
pub const BGFX_TEXTURE_FORMAT_RGB8: bgfx_texture_format = 53;
#[doc = " (53)"]
pub const BGFX_TEXTURE_FORMAT_RGB8I: bgfx_texture_format = 54;
#[doc = " (54)"]
pub const BGFX_TEXTURE_FORMAT_RGB8U: bgfx_texture_format = 55;
#[doc = " (55)"]
pub const BGFX_TEXTURE_FORMAT_RGB8S: bgfx_texture_format = 56;
#[doc = " (56)"]
pub const BGFX_TEXTURE_FORMAT_RGB9E5F: bgfx_texture_format = 57;
#[doc = " (57)"]
pub const BGFX_TEXTURE_FORMAT_BGRA8: bgfx_texture_format = 58;
#[doc = " (58)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8: bgfx_texture_format = 59;
#[doc = " (59)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8I: bgfx_texture_format = 60;
#[doc = " (60)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8U: bgfx_texture_format = 61;
#[doc = " (61)"]
pub const BGFX_TEXTURE_FORMAT_RGBA8S: bgfx_texture_format = 62;
#[doc = " (62)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16: bgfx_texture_format = 63;
#[doc = " (63)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16I: bgfx_texture_format = 64;
#[doc = " (64)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16U: bgfx_texture_format = 65;
#[doc = " (65)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16F: bgfx_texture_format = 66;
#[doc = " (66)"]
pub const BGFX_TEXTURE_FORMAT_RGBA16S: bgfx_texture_format = 67;
#[doc = " (67)"]
pub const BGFX_TEXTURE_FORMAT_RGBA32I: bgfx_texture_format = 68;
#[doc = " (68)"]
pub const BGFX_TEXTURE_FORMAT_RGBA32U: bgfx_texture_format = 69;
#[doc = " (69)"]
pub const BGFX_TEXTURE_FORMAT_RGBA32F: bgfx_texture_format = 70;
#[doc = " (70)"]
pub const BGFX_TEXTURE_FORMAT_R5G6B5: bgfx_texture_format = 71;
#[doc = " (71)"]
pub const BGFX_TEXTURE_FORMAT_RGBA4: bgfx_texture_format = 72;
#[doc = " (72)"]
pub const BGFX_TEXTURE_FORMAT_RGB5A1: bgfx_texture_format = 73;
#[doc = " (73)"]
pub const BGFX_TEXTURE_FORMAT_RGB10A2: bgfx_texture_format = 74;
#[doc = " (74)"]
pub const BGFX_TEXTURE_FORMAT_RG11B10F: bgfx_texture_format = 75;
#[doc = " (75)"]
pub const BGFX_TEXTURE_FORMAT_UNKNOWNDEPTH: bgfx_texture_format = 76;
#[doc = " (76) Depth formats below."]
pub const BGFX_TEXTURE_FORMAT_D16: bgfx_texture_format = 77;
#[doc = " (77)"]
pub const BGFX_TEXTURE_FORMAT_D24: bgfx_texture_format = 78;
#[doc = " (78)"]
pub const BGFX_TEXTURE_FORMAT_D24S8: bgfx_texture_format = 79;
#[doc = " (79)"]
pub const BGFX_TEXTURE_FORMAT_D32: bgfx_texture_format = 80;
#[doc = " (80)"]
pub const BGFX_TEXTURE_FORMAT_D16F: bgfx_texture_format = 81;
#[doc = " (81)"]
pub const BGFX_TEXTURE_FORMAT_D24F: bgfx_texture_format = 82;
#[doc = " (82)"]
pub const BGFX_TEXTURE_FORMAT_D32F: bgfx_texture_format = 83;
#[doc = " (83)"]
pub const BGFX_TEXTURE_FORMAT_D0S8: bgfx_texture_format = 84;
#[doc = " (84)"]
pub const BGFX_TEXTURE_FORMAT_COUNT: bgfx_texture_format = 85;
#[doc = " Texture format enum."]
#[doc = " Notation:"]
#[doc = "       RGBA16S"]
#[doc = "       ^   ^ ^"]
#[doc = "       |   | +-- [ ]Unorm"]
#[doc = "       |   |     [F]loat"]
#[doc = "       |   |     [S]norm"]
#[doc = "       |   |     [I]nt"]
#[doc = "       |   |     [U]int"]
#[doc = "       |   +---- Number of bits per component"]
#[doc = "       +-------- Components"]
#[doc = " @attention Availability depends on Caps (see: formats)."]
#[doc = ""]
pub type bgfx_texture_format = u32;
#[doc = " Texture format enum."]
#[doc = " Notation:"]
#[doc = "       RGBA16S"]
#[doc = "       ^   ^ ^"]
#[doc = "       |   | +-- [ ]Unorm"]
#[doc = "       |   |     [F]loat"]
#[doc = "       |   |     [S]norm"]
#[doc = "       |   |     [I]nt"]
#[doc = "       |   |     [U]int"]
#[doc = "       |   +---- Number of bits per component"]
#[doc = "       +-------- Components"]
#[doc = " @attention Availability depends on Caps (see: formats)."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_uniform_type = u32;
#[doc = " Uniform type enum."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_backbuffer_ratio = u32;
#[doc = " Backbuffer ratio enum."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_occlusion_query_result = u32;
#[doc = " Occlusion query result."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_topology = u32;
#[doc = " Primitive topology."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_topology_convert = u32;
#[doc = " Topology conversion function."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_topology_sort = u32;
#[doc = " Topology sort order."]
#[doc = ""]
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."]
#[doc = ""]
pub type bgfx_view_mode = u32;
#[doc = " View mode sets draw call sort order."]
#[doc = ""]
pub use self::bgfx_view_mode as bgfx_view_mode_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."]
#[doc = ""]
pub type bgfx_render_frame = u32;
#[doc = " Render frame enum."]
#[doc = ""]
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: ::core::option::Option<
        unsafe extern "C" fn(
            _this: *mut bgfx_allocator_interface_t,
            _ptr: *mut ::std::os::raw::c_void,
            _size: size_t,
            _align: size_t,
            _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."]
#[doc = ""]
#[doc = " @param[in] _ptr Pointer to allocated data."]
#[doc = " @param[in] _userData User defined data if needed."]
#[doc = ""]
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."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_caps_gpu_t = bgfx_caps_gpu_s;
#[doc = " Renderer runtime limits."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_caps_limits_t = bgfx_caps_limits_s;
#[doc = " Renderer capabilities."]
#[doc = ""]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct bgfx_caps_s {
    pub rendererType: bgfx_renderer_type_t,
    #[doc = " Supported functionality."]
    #[doc = "   @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:"]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_NONE` - Texture format is not supported."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_2D` - Texture format is supported."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_2D_SRGB` - Texture as sRGB format is supported."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_2D_EMULATED` - Texture format is emulated."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_3D` - Texture format is supported."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_3D_SRGB` - Texture as sRGB format is supported."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_3D_EMULATED` - Texture format is emulated."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_CUBE` - Texture format is supported."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_CUBE_SRGB` - Texture as sRGB format is supported."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_CUBE_EMULATED` - Texture format is emulated."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_VERTEX` - Texture format can be used from vertex shader."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_IMAGE_READ` - Texture format can be used as image"]
    #[doc = "     and read from."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_IMAGE_WRITE` - Texture format can be used as image"]
    #[doc = "     and written to."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER` - Texture format can be used as frame"]
    #[doc = "     buffer."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_FRAMEBUFFER_MSAA` - Texture format can be used as MSAA"]
    #[doc = "     frame buffer."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_MSAA` - Texture can be sampled as MSAA."]
    #[doc = "   - `BGFX_CAPS_FORMAT_TEXTURE_MIP_AUTOGEN` - Texture format supports auto-generated"]
    #[doc = "     mips."]
    pub formats: [u16; 85usize],
}
#[doc = " Renderer capabilities."]
#[doc = ""]
pub type bgfx_caps_t = bgfx_caps_s;
#[doc = " Internal data."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_internal_data_t = bgfx_internal_data_s;
#[doc = " Platform data."]
#[doc = ""]
#[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 headless"]
    #[doc = " context/device if renderer API supports it."]
    pub nwh: *mut ::std::os::raw::c_void,
    pub context: *mut ::std::os::raw::c_void,
    #[doc = " GL back-buffer, or D3D render target view. If `NULL` bgfx will"]
    #[doc = " create back-buffer color surface."]
    pub backBuffer: *mut ::std::os::raw::c_void,
    #[doc = " Backbuffer depth/stencil. If `NULL` bgfx will create back-buffer"]
    #[doc = " depth/stencil surface."]
    pub backBufferDS: *mut ::std::os::raw::c_void,
}
#[doc = " Platform data."]
#[doc = ""]
pub type bgfx_platform_data_t = bgfx_platform_data_s;
#[doc = " Backbuffer resolution and reset parameters."]
#[doc = ""]
#[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 = " Backbuffer resolution and reset parameters."]
#[doc = ""]
pub type bgfx_resolution_t = bgfx_resolution_s;
#[doc = " Configurable runtime limits parameters."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_init_limits_t = bgfx_init_limits_s;
#[doc = " Initialization parameters used by `bgfx::init`."]
#[doc = ""]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bgfx_init_s {
    #[doc = " Select rendering backend. When set to RendererType::Count"]
    #[doc = " a default rendering backend will be selected appropriate to the platform."]
    #[doc = " See: `bgfx::RendererType`"]
    pub type_: bgfx_renderer_type_t,
    #[doc = " Vendor PCI id. If set to `BGFX_PCI_ID_NONE` it will select the first"]
    #[doc = " device."]
    #[doc = "   - `BGFX_PCI_ID_NONE` - Autoselect adapter."]
    #[doc = "   - `BGFX_PCI_ID_SOFTWARE_RASTERIZER` - Software rasterizer."]
    #[doc = "   - `BGFX_PCI_ID_AMD` - AMD adapter."]
    #[doc = "   - `BGFX_PCI_ID_INTEL` - Intel adapter."]
    #[doc = "   - `BGFX_PCI_ID_NVIDIA` - nVidia adapter."]
    pub vendorId: u16,
    #[doc = " Device id. If set to 0 it will select first device, or device with"]
    #[doc = " matching id."]
    pub deviceId: u16,
    pub capabilities: u64,
    #[doc = " Capabilities initialization mask (default: UINT64_MAX)."]
    pub debug: bool,
    #[doc = " Enable device for debuging."]
    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."]
    #[doc = " See: `bgfx::CallbackI`"]
    pub callback: *mut bgfx_callback_interface_t,
    #[doc = " Custom allocator. When a custom allocator is not"]
    #[doc = " specified, bgfx uses the CRT allocator. Bgfx assumes"]
    #[doc = " custom allocator is thread safe."]
    pub allocator: *mut bgfx_allocator_interface_t,
}
#[doc = " Initialization parameters used by `bgfx::init`."]
#[doc = ""]
pub type bgfx_init_t = bgfx_init_s;
#[doc = " Memory must be obtained by calling `bgfx::alloc`, `bgfx::copy`, or `bgfx::makeRef`."]
#[doc = " @attention It is illegal to create this structure on stack and pass it to any bgfx API."]
#[doc = ""]
#[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`."]
#[doc = " @attention It is illegal to create this structure on stack and pass it to any bgfx API."]
#[doc = ""]
pub type bgfx_memory_t = bgfx_memory_s;
#[doc = " Transient index buffer."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_transient_index_buffer_t = bgfx_transient_index_buffer_s;
#[doc = " Transient vertex buffer."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_transient_vertex_buffer_t = bgfx_transient_vertex_buffer_s;
#[doc = " Instance data buffer info."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_instance_data_buffer_t = bgfx_instance_data_buffer_s;
#[doc = " Texture info."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_texture_info_t = bgfx_texture_info_s;
#[doc = " Uniform info."]
#[doc = ""]
#[repr(C)]
#[derive(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."]
#[doc = ""]
pub type bgfx_uniform_info_t = bgfx_uniform_info_s;
#[doc = " Frame buffer texture attachment info."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_attachment_t = bgfx_attachment_s;
#[doc = " Transform data."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_transform_t = bgfx_transform_s;
#[doc = " View stats."]
#[doc = ""]
#[repr(C)]
#[derive(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 = " View stats."]
#[doc = ""]
pub type bgfx_view_stats_t = bgfx_view_stats_s;
#[doc = " Encoder stats."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_encoder_stats_t = bgfx_encoder_stats_s;
#[doc = " Renderer statistics data."]
#[doc = " @remarks All time values are high-resolution timestamps, while"]
#[doc = " time frequencies define timestamps-per-second for that hardware."]
#[doc = ""]
#[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 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."]
#[doc = " @remarks All time values are high-resolution timestamps, while"]
#[doc = " time frequencies define timestamps-per-second for that hardware."]
#[doc = ""]
pub type bgfx_stats_t = bgfx_stats_s;
#[doc = " Vertex layout."]
#[doc = ""]
#[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."]
#[doc = ""]
pub type bgfx_vertex_layout_t = bgfx_vertex_layout_s;
#[doc = " Encoders are used for submitting draw calls from multiple threads. Only one encoder"]
#[doc = " per thread should be used. Use `bgfx::begin()` to obtain an encoder for a thread."]
#[doc = ""]
#[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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Render target texture handle."]
    #[doc = " @param[in] _access Access. See `Access::Enum`."]
    #[doc = " @param[in] _layer Cubemap side or depth layer/slice to use."]
    #[doc = " @param[in] _numLayers Number of texture layer/slice(s) in array to use."]
    #[doc = " @param[in] _mip Mip level."]
    #[doc = " @param[in] _resolve Resolve flags. See: `BGFX_RESOLVE_*`"]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _rendererType Renderer backend type. See: `bgfx::RendererType`"]
    #[doc = ""]
    #[doc = " @returns Returns itself."]
    #[doc = ""]
    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."]
    #[doc = " @remarks Must be called between begin/end."]
    #[doc = ""]
    #[doc = " @param[in] _attrib Attribute semantics. See: `bgfx::Attrib`"]
    #[doc = " @param[in] _num Number of elements 1, 2, 3 or 4."]
    #[doc = " @param[in] _type Element type."]
    #[doc = " @param[in] _normalized When using fixed point AttribType (f.e. Uint8)"]
    #[doc = "  value will be normalized for vertex shader usage. When normalized"]
    #[doc = "  is set to true, AttribType::Uint8 value in range 0-255 will be"]
    #[doc = "  in range 0.0-1.0 in vertex shader."]
    #[doc = " @param[in] _asInt Packaging rule for vertexPack, vertexUnpack, and"]
    #[doc = "  vertexConvert for AttribType::Uint8 and AttribType::Int16."]
    #[doc = "  Unpacking code must be implemented inside vertex shader."]
    #[doc = ""]
    #[doc = " @returns Returns itself."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _attrib Attribute semantics. See: `bgfx::Attrib`"]
    #[doc = " @param[out] _num Number of elements."]
    #[doc = " @param[out] _type Element type."]
    #[doc = " @param[out] _normalized Attribute is normalized."]
    #[doc = " @param[out] _asInt Attribute is packed as int."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _attrib Attribute semantics. See: `bgfx::Attrib`"]
    #[doc = ""]
    #[doc = " @returns True if VertexLayout contains attribute."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of bytes to skip."]
    #[doc = ""]
    #[doc = " @returns Returns itself."]
    #[doc = ""]
    pub fn bgfx_vertex_layout_skip(
        _this: *mut bgfx_vertex_layout_t,
        _num: u8,
    ) -> *mut bgfx_vertex_layout_t;
}
extern "C" {
    #[doc = " End VertexLayout."]
    #[doc = ""]
    pub fn bgfx_vertex_layout_end(_this: *mut bgfx_vertex_layout_t);
}
extern "C" {
    #[doc = " Pack vertex attribute into vertex stream format."]
    #[doc = ""]
    #[doc = " @param[in] _input Value to be packed into vertex stream."]
    #[doc = " @param[in] _inputNormalized `true` if input value is already normalized."]
    #[doc = " @param[in] _attr Attribute to pack."]
    #[doc = " @param[in] _layout Vertex stream layout."]
    #[doc = " @param[in] _data Destination vertex stream where data will be packed."]
    #[doc = " @param[in] _index Vertex index that will be modified."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[out] _output Result of unpacking."]
    #[doc = " @param[in] _attr Attribute to unpack."]
    #[doc = " @param[in] _layout Vertex stream layout."]
    #[doc = " @param[in] _data Source vertex stream from where data will be unpacked."]
    #[doc = " @param[in] _index Vertex index that will be unpacked."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _dstLayout Destination vertex stream layout."]
    #[doc = " @param[in] _dstData Destination vertex stream."]
    #[doc = " @param[in] _srcLayout Source vertex stream layout."]
    #[doc = " @param[in] _srcData Source vertex stream data."]
    #[doc = " @param[in] _num Number of vertices to convert from source to destination."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _output Welded vertices remapping table. The size of buffer"]
    #[doc = "  must be the same as number of vertices."]
    #[doc = " @param[in] _layout Vertex stream layout."]
    #[doc = " @param[in] _data Vertex stream."]
    #[doc = " @param[in] _num Number of vertices in vertex stream."]
    #[doc = " @param[in] _index32 Set to `true` if input indices are 32-bit."]
    #[doc = " @param[in] _epsilon Error tolerance for vertex position comparison."]
    #[doc = ""]
    #[doc = " @returns Number of unique vertices after vertex welding."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _conversion Conversion type, see `TopologyConvert::Enum`."]
    #[doc = " @param[out] _dst Destination index buffer. If this argument is NULL"]
    #[doc = "  function will return number of indices after conversion."]
    #[doc = " @param[in] _dstSize Destination index buffer in bytes. It must be"]
    #[doc = "  large enough to contain output indices. If destination size is"]
    #[doc = "  insufficient index buffer will be truncated."]
    #[doc = " @param[in] _indices Source indices."]
    #[doc = " @param[in] _numIndices Number of input indices."]
    #[doc = " @param[in] _index32 Set to `true` if input indices are 32-bit."]
    #[doc = ""]
    #[doc = " @returns Number of output indices after conversion."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _sort Sort order, see `TopologySort::Enum`."]
    #[doc = " @param[out] _dst Destination index buffer."]
    #[doc = " @param[in] _dstSize Destination index buffer in bytes. It must be"]
    #[doc = "  large enough to contain output indices. If destination size is"]
    #[doc = "  insufficient index buffer will be truncated."]
    #[doc = " @param[in] _dir Direction (vector must be normalized)."]
    #[doc = " @param[in] _pos Position."]
    #[doc = " @param[in] _vertices Pointer to first vertex represented as"]
    #[doc = "  float x, y, z. Must contain at least number of vertices"]
    #[doc = "  referencende by index buffer."]
    #[doc = " @param[in] _stride Vertex stride."]
    #[doc = " @param[in] _indices Source indices."]
    #[doc = " @param[in] _numIndices Number of input indices."]
    #[doc = " @param[in] _index32 Set to `true` if input indices are 32-bit."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _max Maximum number of elements in _enum array."]
    #[doc = " @param[inout] _enum Array where supported renderers will be written."]
    #[doc = ""]
    #[doc = " @returns Number of supported renderers."]
    #[doc = ""]
    pub fn bgfx_get_supported_renderers(_max: u8, _enum: *mut bgfx_renderer_type_t) -> u8;
}
extern "C" {
    #[doc = " Returns name of renderer."]
    #[doc = ""]
    #[doc = " @param[in] _type Renderer backend type. See: `bgfx::RendererType`"]
    #[doc = ""]
    #[doc = " @returns Name of renderer."]
    #[doc = ""]
    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 bgfx library."]
    #[doc = ""]
    #[doc = " @param[in] _init Initialization parameters. See: `bgfx::Init` for more info."]
    #[doc = ""]
    #[doc = " @returns `true` if initialization was successful."]
    #[doc = ""]
    pub fn bgfx_init(_init: *const bgfx_init_t) -> bool;
}
extern "C" {
    #[doc = " Shutdown bgfx library."]
    #[doc = ""]
    pub fn bgfx_shutdown();
}
extern "C" {
    #[doc = " Reset graphic settings and back-buffer size."]
    #[doc = " @attention This call doesn't actually change window size, it just"]
    #[doc = "   resizes back-buffer. Windowing code has to change window size."]
    #[doc = ""]
    #[doc = " @param[in] _width Back-buffer width."]
    #[doc = " @param[in] _height Back-buffer height."]
    #[doc = " @param[in] _flags See: `BGFX_RESET_*` for more info."]
    #[doc = "    - `BGFX_RESET_NONE` - No reset flags."]
    #[doc = "    - `BGFX_RESET_FULLSCREEN` - Not supported yet."]
    #[doc = "    - `BGFX_RESET_MSAA_X[2/4/8/16]` - Enable 2, 4, 8 or 16 x MSAA."]
    #[doc = "    - `BGFX_RESET_VSYNC` - Enable V-Sync."]
    #[doc = "    - `BGFX_RESET_MAXANISOTROPY` - Turn on/off max anisotropy."]
    #[doc = "    - `BGFX_RESET_CAPTURE` - Begin screen capture."]
    #[doc = "    - `BGFX_RESET_FLUSH_AFTER_RENDER` - Flush rendering after submitting to GPU."]
    #[doc = "    - `BGFX_RESET_FLIP_AFTER_RENDER` - This flag  specifies where flip"]
    #[doc = "      occurs. Default behaviour is that flip occurs before rendering new"]
    #[doc = "      frame. This flag only has effect when `BGFX_CONFIG_MULTITHREADED=0`."]
    #[doc = "    - `BGFX_RESET_SRGB_BACKBUFFER` - Enable sRGB backbuffer."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = ""]
    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"]
    #[doc = " just swaps internal buffers, kicks render thread, and returns. In"]
    #[doc = " singlethreaded renderer this call does frame rendering."]
    #[doc = ""]
    #[doc = " @param[in] _capture Capture frame with graphics debugger."]
    #[doc = ""]
    #[doc = " @returns Current frame number. This might be used in conjunction with"]
    #[doc = "  double/multi buffering data outside the library and passing it to"]
    #[doc = "  library via `bgfx::makeRef` calls."]
    #[doc = ""]
    pub fn bgfx_frame(_capture: bool) -> u32;
}
extern "C" {
    #[doc = " Returns current renderer backend API type."]
    #[doc = " @remarks"]
    #[doc = "   Library must be initialized."]
    #[doc = ""]
    pub fn bgfx_get_renderer_type() -> bgfx_renderer_type_t;
}
extern "C" {
    #[doc = " Returns renderer capabilities."]
    #[doc = " @remarks"]
    #[doc = "   Library must be initialized."]
    #[doc = ""]
    pub fn bgfx_get_caps() -> *const bgfx_caps_t;
}
extern "C" {
    #[doc = " Returns performance counters."]
    #[doc = " @attention Pointer returned is valid until `bgfx::frame` is called."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _size Size to allocate."]
    #[doc = ""]
    #[doc = " @returns Allocated memory."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _data Pointer to data to be copied."]
    #[doc = " @param[in] _size Size of data to be copied."]
    #[doc = ""]
    #[doc = " @returns Allocated memory."]
    #[doc = ""]
    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"]
    #[doc = " doesn't allocate memory for data. It just copies the _data pointer. You"]
    #[doc = " can pass `ReleaseFn` function pointer to release this memory after it's"]
    #[doc = " consumed, otherwise you must make sure _data is available for at least 2"]
    #[doc = " `bgfx::frame` calls. `ReleaseFn` function must be able to be called"]
    #[doc = " from any thread."]
    #[doc = " @attention Data passed must be available for at least 2 `bgfx::frame` calls."]
    #[doc = ""]
    #[doc = " @param[in] _data Pointer to data."]
    #[doc = " @param[in] _size Size of data."]
    #[doc = ""]
    #[doc = " @returns Referenced memory."]
    #[doc = ""]
    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"]
    #[doc = " doesn't allocate memory for data. It just copies the _data pointer. You"]
    #[doc = " can pass `ReleaseFn` function pointer to release this memory after it's"]
    #[doc = " consumed, otherwise you must make sure _data is available for at least 2"]
    #[doc = " `bgfx::frame` calls. `ReleaseFn` function must be able to be called"]
    #[doc = " from any thread."]
    #[doc = " @attention Data passed must be available for at least 2 `bgfx::frame` calls."]
    #[doc = ""]
    #[doc = " @param[in] _data Pointer to data."]
    #[doc = " @param[in] _size Size of data."]
    #[doc = " @param[in] _releaseFn Callback function to release memory after use."]
    #[doc = " @param[in] _userData User data to be passed to callback function."]
    #[doc = ""]
    #[doc = " @returns Referenced memory."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _debug Available flags:"]
    #[doc = "    - `BGFX_DEBUG_IFH` - Infinitely fast hardware. When this flag is set"]
    #[doc = "      all rendering calls will be skipped. This is useful when profiling"]
    #[doc = "      to quickly assess potential bottlenecks between CPU and GPU."]
    #[doc = "    - `BGFX_DEBUG_PROFILER` - Enable profiler."]
    #[doc = "    - `BGFX_DEBUG_STATS` - Display internal statistics."]
    #[doc = "    - `BGFX_DEBUG_TEXT` - Display debug text."]
    #[doc = "    - `BGFX_DEBUG_WIREFRAME` - Wireframe rendering. All rendering"]
    #[doc = "      primitives will be rendered as lines."]
    #[doc = ""]
    pub fn bgfx_set_debug(_debug: u32);
}
extern "C" {
    #[doc = " Clear internal debug text buffer."]
    #[doc = ""]
    #[doc = " @param[in] _attr Background color."]
    #[doc = " @param[in] _small Default 8x16 or 8x8 font."]
    #[doc = ""]
    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)."]
    #[doc = ""]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _attr Color palette. Where top 4-bits represent index of background, and bottom"]
    #[doc = "  4-bits represent foreground color from standard VGA text palette (ANSI escape codes)."]
    #[doc = " @param[in] _format `printf` style format."]
    #[doc = " @param[in]"]
    #[doc = ""]
    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)."]
    #[doc = ""]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _attr Color palette. Where top 4-bits represent index of background, and bottom"]
    #[doc = "  4-bits represent foreground color from standard VGA text palette (ANSI escape codes)."]
    #[doc = " @param[in] _format `printf` style format."]
    #[doc = " @param[in] _argList Variable arguments list for format string."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _width Image width."]
    #[doc = " @param[in] _height Image height."]
    #[doc = " @param[in] _data Raw image data (character/attribute raw encoding)."]
    #[doc = " @param[in] _pitch Image pitch in bytes."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _mem Index buffer data."]
    #[doc = " @param[in] _flags Buffer creation flags."]
    #[doc = "    - `BGFX_BUFFER_NONE` - No flags."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer"]
    #[doc = "        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader."]
    #[doc = "    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of"]
    #[doc = "        data is passed. If this flag is not specified, and more data is passed on update, the buffer"]
    #[doc = "        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic"]
    #[doc = "        buffers."]
    #[doc = "    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on"]
    #[doc = "        index buffers."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Static index buffer handle."]
    #[doc = " @param[in] _name Static index buffer name."]
    #[doc = " @param[in] _len Static index buffer name length (if length is INT32_MAX, it's expected"]
    #[doc = "  that _name is zero terminated string."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Static index buffer handle."]
    #[doc = ""]
    pub fn bgfx_destroy_index_buffer(_handle: bgfx_index_buffer_handle_t);
}
extern "C" {
    #[doc = " Create vertex layout."]
    #[doc = ""]
    #[doc = " @param[in] _layout Vertex layout."]
    #[doc = ""]
    pub fn bgfx_create_vertex_layout(
        _layout: *const bgfx_vertex_layout_t,
    ) -> bgfx_vertex_layout_handle_t;
}
extern "C" {
    #[doc = " Destroy vertex layout."]
    #[doc = ""]
    #[doc = " @param[in] _layoutHandle Vertex layout handle."]
    #[doc = ""]
    pub fn bgfx_destroy_vertex_layout(_layoutHandle: bgfx_vertex_layout_handle_t);
}
extern "C" {
    #[doc = " Create static vertex buffer."]
    #[doc = ""]
    #[doc = " @param[in] _mem Vertex buffer data."]
    #[doc = " @param[in] _layout Vertex layout."]
    #[doc = " @param[in] _flags Buffer creation flags."]
    #[doc = "   - `BGFX_BUFFER_NONE` - No flags."]
    #[doc = "   - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader."]
    #[doc = "   - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer"]
    #[doc = "       is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU."]
    #[doc = "   - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader."]
    #[doc = "   - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of"]
    #[doc = "       data is passed. If this flag is not specified, and more data is passed on update, the buffer"]
    #[doc = "       will be trimmed to fit the existing buffer size. This flag has effect only on dynamic buffers."]
    #[doc = "   - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on index buffers."]
    #[doc = ""]
    #[doc = " @returns Static vertex buffer handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Static vertex buffer handle."]
    #[doc = " @param[in] _name Static vertex buffer name."]
    #[doc = " @param[in] _len Static vertex buffer name length (if length is INT32_MAX, it's expected"]
    #[doc = "  that _name is zero terminated string."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Static vertex buffer handle."]
    #[doc = ""]
    pub fn bgfx_destroy_vertex_buffer(_handle: bgfx_vertex_buffer_handle_t);
}
extern "C" {
    #[doc = " Create empty dynamic index buffer."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of indices."]
    #[doc = " @param[in] _flags Buffer creation flags."]
    #[doc = "    - `BGFX_BUFFER_NONE` - No flags."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer"]
    #[doc = "        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader."]
    #[doc = "    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of"]
    #[doc = "        data is passed. If this flag is not specified, and more data is passed on update, the buffer"]
    #[doc = "        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic"]
    #[doc = "        buffers."]
    #[doc = "    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on"]
    #[doc = "        index buffers."]
    #[doc = ""]
    #[doc = " @returns Dynamic index buffer handle."]
    #[doc = ""]
    pub fn bgfx_create_dynamic_index_buffer(
        _num: u32,
        _flags: u16,
    ) -> bgfx_dynamic_index_buffer_handle_t;
}
extern "C" {
    #[doc = " Create dynamic index buffer and initialized it."]
    #[doc = ""]
    #[doc = " @param[in] _mem Index buffer data."]
    #[doc = " @param[in] _flags Buffer creation flags."]
    #[doc = "    - `BGFX_BUFFER_NONE` - No flags."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer"]
    #[doc = "        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader."]
    #[doc = "    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of"]
    #[doc = "        data is passed. If this flag is not specified, and more data is passed on update, the buffer"]
    #[doc = "        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic"]
    #[doc = "        buffers."]
    #[doc = "    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on"]
    #[doc = "        index buffers."]
    #[doc = ""]
    #[doc = " @returns Dynamic index buffer handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic index buffer handle."]
    #[doc = " @param[in] _startIndex Start index."]
    #[doc = " @param[in] _mem Index buffer data."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic index buffer handle."]
    #[doc = ""]
    pub fn bgfx_destroy_dynamic_index_buffer(_handle: bgfx_dynamic_index_buffer_handle_t);
}
extern "C" {
    #[doc = " Create empty dynamic vertex buffer."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of vertices."]
    #[doc = " @param[in] _layout Vertex layout."]
    #[doc = " @param[in] _flags Buffer creation flags."]
    #[doc = "    - `BGFX_BUFFER_NONE` - No flags."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer"]
    #[doc = "        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader."]
    #[doc = "    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of"]
    #[doc = "        data is passed. If this flag is not specified, and more data is passed on update, the buffer"]
    #[doc = "        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic"]
    #[doc = "        buffers."]
    #[doc = "    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on"]
    #[doc = "        index buffers."]
    #[doc = ""]
    #[doc = " @returns Dynamic vertex buffer handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _mem Vertex buffer data."]
    #[doc = " @param[in] _layout Vertex layout."]
    #[doc = " @param[in] _flags Buffer creation flags."]
    #[doc = "    - `BGFX_BUFFER_NONE` - No flags."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ` - Buffer will be read from by compute shader."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_WRITE` - Buffer will be written into by compute shader. When buffer"]
    #[doc = "        is created with `BGFX_BUFFER_COMPUTE_WRITE` flag it cannot be updated from CPU."]
    #[doc = "    - `BGFX_BUFFER_COMPUTE_READ_WRITE` - Buffer will be used for read/write by compute shader."]
    #[doc = "    - `BGFX_BUFFER_ALLOW_RESIZE` - Buffer will resize on buffer update if a different amount of"]
    #[doc = "        data is passed. If this flag is not specified, and more data is passed on update, the buffer"]
    #[doc = "        will be trimmed to fit the existing buffer size. This flag has effect only on dynamic"]
    #[doc = "        buffers."]
    #[doc = "    - `BGFX_BUFFER_INDEX32` - Buffer is using 32-bit indices. This flag has effect only on"]
    #[doc = "        index buffers."]
    #[doc = ""]
    #[doc = " @returns Dynamic vertex buffer handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic vertex buffer handle."]
    #[doc = " @param[in] _startVertex Start vertex."]
    #[doc = " @param[in] _mem Vertex buffer data."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic vertex buffer handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of required indices."]
    #[doc = " @param[in] _index32 Set to `true` if input indices will be 32-bit."]
    #[doc = ""]
    #[doc = " @returns Number of requested or maximum available indices."]
    #[doc = ""]
    pub fn bgfx_get_avail_transient_index_buffer(_num: u32, _index32: bool) -> u32;
}
extern "C" {
    #[doc = " Returns number of requested or maximum available vertices."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of required vertices."]
    #[doc = " @param[in] _layout Vertex layout."]
    #[doc = ""]
    #[doc = " @returns Number of requested or maximum available vertices."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of required instances."]
    #[doc = " @param[in] _stride Stride per instance."]
    #[doc = ""]
    #[doc = " @returns Number of requested or maximum available instance buffer slots."]
    #[doc = ""]
    pub fn bgfx_get_avail_instance_data_buffer(_num: u32, _stride: u16) -> u32;
}
extern "C" {
    #[doc = " Allocate transient index buffer."]
    #[doc = ""]
    #[doc = " @param[out] _tib TransientIndexBuffer structure is filled and is valid"]
    #[doc = "  for the duration of frame, and it can be reused for multiple draw"]
    #[doc = "  calls."]
    #[doc = " @param[in] _num Number of indices to allocate."]
    #[doc = " @param[in] _index32 Set to `true` if input indices will be 32-bit."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[out] _tvb TransientVertexBuffer structure is filled and is valid"]
    #[doc = "  for the duration of frame, and it can be reused for multiple draw"]
    #[doc = "  calls."]
    #[doc = " @param[in] _num Number of vertices to allocate."]
    #[doc = " @param[in] _layout Vertex layout."]
    #[doc = ""]
    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"]
    #[doc = " buffers. If both space requirements are satisfied function returns"]
    #[doc = " true."]
    #[doc = ""]
    #[doc = " @param[out] _tvb TransientVertexBuffer structure is filled and is valid"]
    #[doc = "  for the duration of frame, and it can be reused for multiple draw"]
    #[doc = "  calls."]
    #[doc = " @param[in] _layout Vertex layout."]
    #[doc = " @param[in] _numVertices Number of vertices to allocate."]
    #[doc = " @param[out] _tib TransientIndexBuffer structure is filled and is valid"]
    #[doc = "  for the duration of frame, and it can be reused for multiple draw"]
    #[doc = "  calls."]
    #[doc = " @param[in] _numIndices Number of indices to allocate."]
    #[doc = " @param[in] _index32 Set to `true` if input indices will be 32-bit."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[out] _idb InstanceDataBuffer structure is filled and is valid"]
    #[doc = "  for duration of frame, and it can be reused for multiple draw"]
    #[doc = "  calls."]
    #[doc = " @param[in] _num Number of instances."]
    #[doc = " @param[in] _stride Instance stride. Must be multiple of 16."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of indirect calls."]
    #[doc = ""]
    #[doc = " @returns Indirect buffer handle."]
    #[doc = ""]
    pub fn bgfx_create_indirect_buffer(_num: u32) -> bgfx_indirect_buffer_handle_t;
}
extern "C" {
    #[doc = " Destroy draw indirect buffer."]
    #[doc = ""]
    #[doc = " @param[in] _handle Indirect buffer handle."]
    #[doc = ""]
    pub fn bgfx_destroy_indirect_buffer(_handle: bgfx_indirect_buffer_handle_t);
}
extern "C" {
    #[doc = " Create shader from memory buffer."]
    #[doc = ""]
    #[doc = " @param[in] _mem Shader binary."]
    #[doc = ""]
    #[doc = " @returns Shader handle."]
    #[doc = ""]
    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."]
    #[doc = " @remarks"]
    #[doc = "   Only non-predefined uniforms are returned."]
    #[doc = ""]
    #[doc = " @param[in] _handle Shader handle."]
    #[doc = " @param[out] _uniforms UniformHandle array where data will be stored."]
    #[doc = " @param[in] _max Maximum capacity of array."]
    #[doc = ""]
    #[doc = " @returns Number of uniforms used by shader."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Shader handle."]
    #[doc = " @param[in] _name Shader name."]
    #[doc = " @param[in] _len Shader name length (if length is INT32_MAX, it's expected"]
    #[doc = "  that _name is zero terminated string)."]
    #[doc = ""]
    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."]
    #[doc = " @remark Once a shader program is created with _handle,"]
    #[doc = "   it is safe to destroy that shader."]
    #[doc = ""]
    #[doc = " @param[in] _handle Shader handle."]
    #[doc = ""]
    pub fn bgfx_destroy_shader(_handle: bgfx_shader_handle_t);
}
extern "C" {
    #[doc = " Create program with vertex and fragment shaders."]
    #[doc = ""]
    #[doc = " @param[in] _vsh Vertex shader."]
    #[doc = " @param[in] _fsh Fragment shader."]
    #[doc = " @param[in] _destroyShaders If true, shaders will be destroyed when program is destroyed."]
    #[doc = ""]
    #[doc = " @returns Program handle if vertex shader output and fragment shader"]
    #[doc = "  input are matching, otherwise returns invalid program handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _csh Compute shader."]
    #[doc = " @param[in] _destroyShaders If true, shaders will be destroyed when program is destroyed."]
    #[doc = ""]
    #[doc = " @returns Program handle."]
    #[doc = ""]
    pub fn bgfx_create_compute_program(
        _csh: bgfx_shader_handle_t,
        _destroyShaders: bool,
    ) -> bgfx_program_handle_t;
}
extern "C" {
    #[doc = " Destroy program."]
    #[doc = ""]
    #[doc = " @param[in] _handle Program handle."]
    #[doc = ""]
    pub fn bgfx_destroy_program(_handle: bgfx_program_handle_t);
}
extern "C" {
    #[doc = " Validate texture parameters."]
    #[doc = ""]
    #[doc = " @param[in] _depth Depth dimension of volume texture."]
    #[doc = " @param[in] _cubeMap Indicates that texture contains cubemap."]
    #[doc = " @param[in] _numLayers Number of layers in texture array."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _flags Texture flags. See `BGFX_TEXTURE_*`."]
    #[doc = ""]
    #[doc = " @returns True if texture can be successfully created."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of attachments."]
    #[doc = " @param[in] _attachment Attachment texture info. See: `bgfx::Attachment`."]
    #[doc = ""]
    #[doc = " @returns True if frame buffer can be successfully created."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[out] _info Resulting texture info structure. See: `TextureInfo`."]
    #[doc = " @param[in] _width Width."]
    #[doc = " @param[in] _height Height."]
    #[doc = " @param[in] _depth Depth dimension of volume texture."]
    #[doc = " @param[in] _cubeMap Indicates that texture contains cubemap."]
    #[doc = " @param[in] _hasMips Indicates that texture contains full mip-map chain."]
    #[doc = " @param[in] _numLayers Number of layers in texture array."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _mem DDS, KTX or PVR texture binary data."]
    #[doc = " @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = " @param[in] _skip Skip top level mips when parsing texture."]
    #[doc = " @param[out] _info When non-`NULL` is specified it returns parsed texture information."]
    #[doc = ""]
    #[doc = " @returns Texture handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _width Width."]
    #[doc = " @param[in] _height Height."]
    #[doc = " @param[in] _hasMips Indicates that texture contains full mip-map chain."]
    #[doc = " @param[in] _numLayers Number of layers in texture array. Must be 1 if caps"]
    #[doc = "  `BGFX_CAPS_TEXTURE_2D_ARRAY` flag is not set."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = " @param[in] _mem Texture data. If `_mem` is non-NULL, created texture will be immutable. If"]
    #[doc = "  `_mem` is NULL content of the texture is uninitialized. When `_numLayers` is more than"]
    #[doc = "  1, expected memory layout is texture and all mips together for each array element."]
    #[doc = ""]
    #[doc = " @returns Texture handle."]
    #[doc = ""]
    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 backbuffer ratio. Texture will maintain ratio"]
    #[doc = " if back buffer resolution changes."]
    #[doc = ""]
    #[doc = " @param[in] _ratio Texture size in respect to back-buffer size. See: `BackbufferRatio::Enum`."]
    #[doc = " @param[in] _hasMips Indicates that texture contains full mip-map chain."]
    #[doc = " @param[in] _numLayers Number of layers in texture array. Must be 1 if caps"]
    #[doc = "  `BGFX_CAPS_TEXTURE_2D_ARRAY` flag is not set."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = ""]
    #[doc = " @returns Texture handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _width Width."]
    #[doc = " @param[in] _height Height."]
    #[doc = " @param[in] _depth Depth."]
    #[doc = " @param[in] _hasMips Indicates that texture contains full mip-map chain."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = " @param[in] _mem Texture data. If `_mem` is non-NULL, created texture will be immutable. If"]
    #[doc = "  `_mem` is NULL content of the texture is uninitialized. When `_numLayers` is more than"]
    #[doc = "  1, expected memory layout is texture and all mips together for each array element."]
    #[doc = ""]
    #[doc = " @returns Texture handle."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _size Cube side size."]
    #[doc = " @param[in] _hasMips Indicates that texture contains full mip-map chain."]
    #[doc = " @param[in] _numLayers Number of layers in texture array. Must be 1 if caps"]
    #[doc = "  `BGFX_CAPS_TEXTURE_2D_ARRAY` flag is not set."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = " @param[in] _mem Texture data. If `_mem` is non-NULL, created texture will be immutable. If"]
    #[doc = "  `_mem` is NULL content of the texture is uninitialized. When `_numLayers` is more than"]
    #[doc = "  1, expected memory layout is texture and all mips together for each array element."]
    #[doc = ""]
    #[doc = " @returns Texture handle."]
    #[doc = ""]
    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."]
    #[doc = " @attention It's valid to update only mutable texture. See `bgfx::createTexture2D` for more info."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _layer Layer in texture array."]
    #[doc = " @param[in] _mip Mip level."]
    #[doc = " @param[in] _x X offset in texture."]
    #[doc = " @param[in] _y Y offset in texture."]
    #[doc = " @param[in] _width Width of texture block."]
    #[doc = " @param[in] _height Height of texture block."]
    #[doc = " @param[in] _mem Texture update data."]
    #[doc = " @param[in] _pitch Pitch of input image (bytes). When _pitch is set to"]
    #[doc = "  UINT16_MAX, it will be calculated internally based on _width."]
    #[doc = ""]
    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."]
    #[doc = " @attention It's valid to update only mutable texture. See `bgfx::createTexture3D` for more info."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _mip Mip level."]
    #[doc = " @param[in] _x X offset in texture."]
    #[doc = " @param[in] _y Y offset in texture."]
    #[doc = " @param[in] _z Z offset in texture."]
    #[doc = " @param[in] _width Width of texture block."]
    #[doc = " @param[in] _height Height of texture block."]
    #[doc = " @param[in] _depth Depth of texture block."]
    #[doc = " @param[in] _mem Texture update data."]
    #[doc = ""]
    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."]
    #[doc = " @attention It's valid to update only mutable texture. See `bgfx::createTextureCube` for more info."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _layer Layer in texture array."]
    #[doc = " @param[in] _side Cubemap side `BGFX_CUBE_MAP_<POSITIVE or NEGATIVE>_<X, Y or Z>`,"]
    #[doc = "    where 0 is +X, 1 is -X, 2 is +Y, 3 is -Y, 4 is +Z, and 5 is -Z."]
    #[doc = "                   +----------+"]
    #[doc = "                   |-z       2|"]
    #[doc = "                   | ^  +y    |"]
    #[doc = "                   | |        |    Unfolded cube:"]
    #[doc = "                   | +---->+x |"]
    #[doc = "        +----------+----------+----------+----------+"]
    #[doc = "        |+y       1|+y       4|+y       0|+y       5|"]
    #[doc = "        | ^  -x    | ^  +z    | ^  +x    | ^  -z    |"]
    #[doc = "        | |        | |        | |        | |        |"]
    #[doc = "        | +---->+z | +---->+x | +---->-z | +---->-x |"]
    #[doc = "        +----------+----------+----------+----------+"]
    #[doc = "                   |+z       3|"]
    #[doc = "                   | ^  -y    |"]
    #[doc = "                   | |        |"]
    #[doc = "                   | +---->+x |"]
    #[doc = "                   +----------+"]
    #[doc = " @param[in] _mip Mip level."]
    #[doc = " @param[in] _x X offset in texture."]
    #[doc = " @param[in] _y Y offset in texture."]
    #[doc = " @param[in] _width Width of texture block."]
    #[doc = " @param[in] _height Height of texture block."]
    #[doc = " @param[in] _mem Texture update data."]
    #[doc = " @param[in] _pitch Pitch of input image (bytes). When _pitch is set to"]
    #[doc = "  UINT16_MAX, it will be calculated internally based on _width."]
    #[doc = ""]
    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."]
    #[doc = " @attention Texture must be created with `BGFX_TEXTURE_READ_BACK` flag."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_TEXTURE_READ_BACK`."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _data Destination buffer."]
    #[doc = " @param[in] _mip Mip level."]
    #[doc = ""]
    #[doc = " @returns Frame number when the result will be available. See: `bgfx::frame`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _name Texture name."]
    #[doc = " @param[in] _len Texture name length (if length is INT32_MAX, it's expected"]
    #[doc = "  that _name is zero terminated string."]
    #[doc = ""]
    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."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_TEXTURE_DIRECT_ACCESS`. This feature"]
    #[doc = "   is available on GPUs that have unified memory architecture (UMA) support."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = ""]
    #[doc = " @returns Pointer to texture memory. If returned pointer is `NULL` direct access"]
    #[doc = "  is not available for this texture. If pointer is `UINTPTR_MAX` sentinel value"]
    #[doc = "  it means texture is pending creation. Pointer returned can be cached and it"]
    #[doc = "  will be valid until texture is destroyed."]
    #[doc = ""]
    pub fn bgfx_get_direct_access_ptr(
        _handle: bgfx_texture_handle_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Destroy texture."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = ""]
    pub fn bgfx_destroy_texture(_handle: bgfx_texture_handle_t);
}
extern "C" {
    #[doc = " Create frame buffer (simple)."]
    #[doc = ""]
    #[doc = " @param[in] _width Texture width."]
    #[doc = " @param[in] _height Texture height."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _textureFlags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = ""]
    #[doc = " @returns Frame buffer handle."]
    #[doc = ""]
    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 backbuffer ratio. Frame buffer will maintain ratio"]
    #[doc = " if back buffer resolution changes."]
    #[doc = ""]
    #[doc = " @param[in] _ratio Frame buffer size in respect to back-buffer size. See:"]
    #[doc = "  `BackbufferRatio::Enum`."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _textureFlags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = ""]
    #[doc = " @returns Frame buffer handle."]
    #[doc = ""]
    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)."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of texture handles."]
    #[doc = " @param[in] _handles Texture attachments."]
    #[doc = " @param[in] _destroyTexture If true, textures will be destroyed when"]
    #[doc = "  frame buffer is destroyed."]
    #[doc = ""]
    #[doc = " @returns Frame buffer handle."]
    #[doc = ""]
    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"]
    #[doc = " mip level."]
    #[doc = ""]
    #[doc = " @param[in] _num Number of attachments."]
    #[doc = " @param[in] _attachment Attachment texture info. See: `bgfx::Attachment`."]
    #[doc = " @param[in] _destroyTexture If true, textures will be destroyed when"]
    #[doc = "  frame buffer is destroyed."]
    #[doc = ""]
    #[doc = " @returns Frame buffer handle."]
    #[doc = ""]
    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."]
    #[doc = " @remarks"]
    #[doc = "   Frame buffer cannot be used for sampling."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_SWAP_CHAIN`."]
    #[doc = ""]
    #[doc = " @param[in] _nwh OS' target native window handle."]
    #[doc = " @param[in] _width Window back buffer width."]
    #[doc = " @param[in] _height Window back buffer height."]
    #[doc = " @param[in] _format Window back buffer color format."]
    #[doc = " @param[in] _depthFormat Window back buffer depth format."]
    #[doc = ""]
    #[doc = " @returns Frame buffer handle."]
    #[doc = ""]
    pub fn bgfx_create_frame_buffer_from_nwh(
        _nwh: *const ::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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Frame buffer handle."]
    #[doc = " @param[in] _name Frame buffer name."]
    #[doc = " @param[in] _len Frame buffer name length (if length is INT32_MAX, it's expected"]
    #[doc = "  that _name is zero terminated string."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Frame buffer handle."]
    #[doc = " @param[in] _attachment"]
    #[doc = ""]
    pub fn bgfx_get_texture(
        _handle: bgfx_frame_buffer_handle_t,
        _attachment: u8,
    ) -> bgfx_texture_handle_t;
}
extern "C" {
    #[doc = " Destroy frame buffer."]
    #[doc = ""]
    #[doc = " @param[in] _handle Frame buffer handle."]
    #[doc = ""]
    pub fn bgfx_destroy_frame_buffer(_handle: bgfx_frame_buffer_handle_t);
}
extern "C" {
    #[doc = " Create shader uniform parameter."]
    #[doc = " @remarks"]
    #[doc = "   1. Uniform names are unique. It's valid to call `bgfx::createUniform`"]
    #[doc = "      multiple times with the same uniform name. The library will always"]
    #[doc = "      return the same handle, but the handle reference count will be"]
    #[doc = "      incremented. This means that the same number of `bgfx::destroyUniform`"]
    #[doc = "      must be called to properly destroy the uniform."]
    #[doc = "   2. Predefined uniforms (declared in `bgfx_shader.sh`):"]
    #[doc = "      - `u_viewRect vec4(x, y, width, height)` - view rectangle for current"]
    #[doc = "        view, in pixels."]
    #[doc = "      - `u_viewTexel vec4(1.0/width, 1.0/height, undef, undef)` - inverse"]
    #[doc = "        width and height"]
    #[doc = "      - `u_view mat4` - view matrix"]
    #[doc = "      - `u_invView mat4` - inverted view matrix"]
    #[doc = "      - `u_proj mat4` - projection matrix"]
    #[doc = "      - `u_invProj mat4` - inverted projection matrix"]
    #[doc = "      - `u_viewProj mat4` - concatenated view projection matrix"]
    #[doc = "      - `u_invViewProj mat4` - concatenated inverted view projection matrix"]
    #[doc = "      - `u_model mat4[BGFX_CONFIG_MAX_BONES]` - array of model matrices."]
    #[doc = "      - `u_modelView mat4` - concatenated model view matrix, only first"]
    #[doc = "        model matrix from array is used."]
    #[doc = "      - `u_modelViewProj mat4` - concatenated model view projection matrix."]
    #[doc = "      - `u_alphaRef float` - alpha reference value for alpha test."]
    #[doc = ""]
    #[doc = " @param[in] _name Uniform name in shader."]
    #[doc = " @param[in] _type Type of uniform (See: `bgfx::UniformType`)."]
    #[doc = " @param[in] _num Number of elements in array."]
    #[doc = ""]
    #[doc = " @returns Handle to uniform object."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Handle to uniform object."]
    #[doc = " @param[out] _info Uniform info."]
    #[doc = ""]
    pub fn bgfx_get_uniform_info(_handle: bgfx_uniform_handle_t, _info: *mut bgfx_uniform_info_t);
}
extern "C" {
    #[doc = " Destroy shader uniform parameter."]
    #[doc = ""]
    #[doc = " @param[in] _handle Handle to uniform object."]
    #[doc = ""]
    pub fn bgfx_destroy_uniform(_handle: bgfx_uniform_handle_t);
}
extern "C" {
    #[doc = " Create occlusion query."]
    #[doc = ""]
    pub fn bgfx_create_occlusion_query() -> bgfx_occlusion_query_handle_t;
}
extern "C" {
    #[doc = " Retrieve occlusion query result from previous frame."]
    #[doc = ""]
    #[doc = " @param[in] _handle Handle to occlusion query object."]
    #[doc = " @param[out] _result Number of pixels that passed test. This argument"]
    #[doc = "  can be `NULL` if result of occlusion query is not needed."]
    #[doc = ""]
    #[doc = " @returns Occlusion query result."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Handle to occlusion query object."]
    #[doc = ""]
    pub fn bgfx_destroy_occlusion_query(_handle: bgfx_occlusion_query_handle_t);
}
extern "C" {
    #[doc = " Set palette color value."]
    #[doc = ""]
    #[doc = " @param[in] _index Index into palette."]
    #[doc = " @param[in] _rgba RGBA floating point values."]
    #[doc = ""]
    pub fn bgfx_set_palette_color(_index: u8, _rgba: *const f32);
}
extern "C" {
    #[doc = " Set palette color value."]
    #[doc = ""]
    #[doc = " @param[in] _index Index into palette."]
    #[doc = " @param[in] _rgba Packed 32-bit RGBA value."]
    #[doc = ""]
    pub fn bgfx_set_palette_color_rgba8(_index: u8, _rgba: u32);
}
extern "C" {
    #[doc = " Set view name."]
    #[doc = " @remarks"]
    #[doc = "   This is debug only feature."]
    #[doc = "   In graphics debugger view name will appear as:"]
    #[doc = "       \"nnnc <view name>\""]
    #[doc = "        ^  ^ ^"]
    #[doc = "        |  +--- compute (C)"]
    #[doc = "        +------ view id"]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _name View name."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _width Width of view port region."]
    #[doc = " @param[in] _height Height of view port region."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _ratio Width and height will be set in respect to back-buffer size."]
    #[doc = "  See: `BackbufferRatio::Enum`."]
    #[doc = ""]
    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"]
    #[doc = " _x, _y, _width and _height are set to 0, scissor will be disabled."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _width Width of view scissor region."]
    #[doc = " @param[in] _height Height of view scissor region."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _flags Clear flags. Use `BGFX_CLEAR_NONE` to remove any clear"]
    #[doc = "  operation. See: `BGFX_CLEAR_*`."]
    #[doc = " @param[in] _rgba Color clear value."]
    #[doc = " @param[in] _depth Depth clear value."]
    #[doc = " @param[in] _stencil Stencil clear value."]
    #[doc = ""]
    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"]
    #[doc = " frame buffer texture. Must use `bgfx::setPaletteColor` to setup clear color"]
    #[doc = " palette."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _flags Clear flags. Use `BGFX_CLEAR_NONE` to remove any clear"]
    #[doc = "  operation. See: `BGFX_CLEAR_*`."]
    #[doc = " @param[in] _depth Depth clear value."]
    #[doc = " @param[in] _stencil Stencil clear value."]
    #[doc = " @param[in] _c0 Palette index for frame buffer attachment 0."]
    #[doc = " @param[in] _c1 Palette index for frame buffer attachment 1."]
    #[doc = " @param[in] _c2 Palette index for frame buffer attachment 2."]
    #[doc = " @param[in] _c3 Palette index for frame buffer attachment 3."]
    #[doc = " @param[in] _c4 Palette index for frame buffer attachment 4."]
    #[doc = " @param[in] _c5 Palette index for frame buffer attachment 5."]
    #[doc = " @param[in] _c6 Palette index for frame buffer attachment 6."]
    #[doc = " @param[in] _c7 Palette index for frame buffer attachment 7."]
    #[doc = ""]
    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."]
    #[doc = " @remarks"]
    #[doc = "   View mode must be set prior calling `bgfx::submit` for the view."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _mode View sort mode. See `ViewMode::Enum`."]
    #[doc = ""]
    pub fn bgfx_set_view_mode(_id: bgfx_view_id_t, _mode: bgfx_view_mode_t);
}
extern "C" {
    #[doc = " Set view frame buffer."]
    #[doc = " @remarks"]
    #[doc = "   Not persistent after `bgfx::reset` call."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _handle Frame buffer handle. Passing `BGFX_INVALID_HANDLE` as"]
    #[doc = "  frame buffer handle will draw primitives from this view into"]
    #[doc = "  default back buffer."]
    #[doc = ""]
    pub fn bgfx_set_view_frame_buffer(_id: bgfx_view_id_t, _handle: bgfx_frame_buffer_handle_t);
}
extern "C" {
    #[doc = " Set view view and projection matrices, all draw primitives in this"]
    #[doc = " view will use these matrices."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _view View matrix."]
    #[doc = " @param[in] _proj Projection matrix."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id First view id."]
    #[doc = " @param[in] _num Number of views to remap."]
    #[doc = " @param[in] _order View remap id table. Passing `NULL` will reset view ids"]
    #[doc = "  to default state."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id"]
    #[doc = ""]
    pub fn bgfx_reset_view(_id: bgfx_view_id_t);
}
extern "C" {
    #[doc = " Begin submitting draw calls from thread."]
    #[doc = ""]
    #[doc = " @param[in] _forThread Explicitly request an encoder for a worker thread."]
    #[doc = ""]
    #[doc = " @returns Encoder."]
    #[doc = ""]
    pub fn bgfx_encoder_begin(_forThread: bool) -> *mut bgfx_encoder_t;
}
extern "C" {
    #[doc = " End submitting draw calls from thread."]
    #[doc = ""]
    #[doc = " @param[in] _encoder Encoder."]
    #[doc = ""]
    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"]
    #[doc = " graphics debugging tools."]
    #[doc = ""]
    #[doc = " @param[in] _marker Marker string."]
    #[doc = ""]
    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."]
    #[doc = " @remarks"]
    #[doc = "   1. To setup more complex states use:"]
    #[doc = "      `BGFX_STATE_ALPHA_REF(_ref)`,"]
    #[doc = "      `BGFX_STATE_POINT_SIZE(_size)`,"]
    #[doc = "      `BGFX_STATE_BLEND_FUNC(_src, _dst)`,"]
    #[doc = "      `BGFX_STATE_BLEND_FUNC_SEPARATE(_srcRGB, _dstRGB, _srcA, _dstA)`,"]
    #[doc = "      `BGFX_STATE_BLEND_EQUATION(_equation)`,"]
    #[doc = "      `BGFX_STATE_BLEND_EQUATION_SEPARATE(_equationRGB, _equationA)`"]
    #[doc = "   2. `BGFX_STATE_BLEND_EQUATION_ADD` is set when no other blend"]
    #[doc = "      equation is specified."]
    #[doc = ""]
    #[doc = " @param[in] _state State flags. Default state for primitive type is"]
    #[doc = "    triangles. See: `BGFX_STATE_DEFAULT`."]
    #[doc = "    - `BGFX_STATE_DEPTH_TEST_*` - Depth test function."]
    #[doc = "    - `BGFX_STATE_BLEND_*` - See remark 1 about BGFX_STATE_BLEND_FUNC."]
    #[doc = "    - `BGFX_STATE_BLEND_EQUATION_*` - See remark 2."]
    #[doc = "    - `BGFX_STATE_CULL_*` - Backface culling mode."]
    #[doc = "    - `BGFX_STATE_WRITE_*` - Enable R, G, B, A or Z write."]
    #[doc = "    - `BGFX_STATE_MSAA` - Enable hardware multisample antialiasing."]
    #[doc = "    - `BGFX_STATE_PT_[TRISTRIP/LINES/POINTS]` - Primitive type."]
    #[doc = " @param[in] _rgba Sets blend factor used by `BGFX_STATE_BLEND_FACTOR` and"]
    #[doc = "    `BGFX_STATE_BLEND_INV_FACTOR` blend modes."]
    #[doc = ""]
    pub fn bgfx_encoder_set_state(_this: *mut bgfx_encoder_t, _state: u64, _rgba: u32);
}
extern "C" {
    #[doc = " Set condition for rendering."]
    #[doc = ""]
    #[doc = " @param[in] _handle Occlusion query handle."]
    #[doc = " @param[in] _visible Render if occlusion query is visible."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _fstencil Front stencil state."]
    #[doc = " @param[in] _bstencil Back stencil state. If back is set to `BGFX_STENCIL_NONE`"]
    #[doc = "  _fstencil is applied to both front and back facing primitives."]
    #[doc = ""]
    pub fn bgfx_encoder_set_stencil(_this: *mut bgfx_encoder_t, _fstencil: u32, _bstencil: u32);
}
extern "C" {
    #[doc = " Set scissor for draw primitive."]
    #[doc = " @remark"]
    #[doc = "   To scissor for all primitives in view see `bgfx::setViewScissor`."]
    #[doc = ""]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _width Width of view scissor region."]
    #[doc = " @param[in] _height Height of view scissor region."]
    #[doc = ""]
    #[doc = " @returns Scissor cache index."]
    #[doc = ""]
    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."]
    #[doc = " @remark"]
    #[doc = "   To scissor for all primitives in view see `bgfx::setViewScissor`."]
    #[doc = ""]
    #[doc = " @param[in] _cache Index in scissor cache."]
    #[doc = ""]
    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,"]
    #[doc = " the model will be rendered with an identity model matrix."]
    #[doc = ""]
    #[doc = " @param[in] _mtx Pointer to first matrix in array."]
    #[doc = " @param[in] _num Number of matrices in array."]
    #[doc = ""]
    #[doc = " @returns Index into matrix cache in case the same model matrix has"]
    #[doc = "  to be used for other draw primitive call."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _cache Index in matrix cache."]
    #[doc = " @param[in] _num Number of matrices from cache."]
    #[doc = ""]
    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."]
    #[doc = " @attention Pointer returned can be modifed until `bgfx::frame` is called."]
    #[doc = ""]
    #[doc = " @param[out] _transform Pointer to `Transform` structure."]
    #[doc = " @param[in] _num Number of matrices."]
    #[doc = ""]
    #[doc = " @returns Index in matrix cache."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Uniform."]
    #[doc = " @param[in] _value Pointer to uniform data."]
    #[doc = " @param[in] _num Number of elements. Passing `UINT16_MAX` will"]
    #[doc = "  use the _num passed on uniform creation."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Index buffer."]
    #[doc = " @param[in] _firstIndex First index to render."]
    #[doc = " @param[in] _numIndices Number of indices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic index buffer."]
    #[doc = " @param[in] _firstIndex First index to render."]
    #[doc = " @param[in] _numIndices Number of indices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _tib Transient index buffer."]
    #[doc = " @param[in] _firstIndex First index to render."]
    #[doc = " @param[in] _numIndices Number of indices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _handle Vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _handle Vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = " @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid"]
    #[doc = "  handle is used, vertex layout used for creation"]
    #[doc = "  of vertex buffer will be used."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _handle Dynamic vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _tvb Transient vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _tvb Transient vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = " @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid"]
    #[doc = "  handle is used, vertex layout used for creation"]
    #[doc = "  of vertex buffer will be used."]
    #[doc = ""]
    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 conjuction"]
    #[doc = " with gl_VertexID."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`."]
    #[doc = ""]
    #[doc = " @param[in] _numVertices Number of vertices."]
    #[doc = ""]
    pub fn bgfx_encoder_set_vertex_count(_this: *mut bgfx_encoder_t, _numVertices: u32);
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive."]
    #[doc = ""]
    #[doc = " @param[in] _idb Transient instance data buffer."]
    #[doc = " @param[in] _start First instance data."]
    #[doc = " @param[in] _num Number of data instances."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Vertex buffer."]
    #[doc = " @param[in] _startVertex First instance data."]
    #[doc = " @param[in] _num Number of data instances."]
    #[doc = "  Set instance data buffer for draw primitive."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic vertex buffer."]
    #[doc = " @param[in] _startVertex First instance data."]
    #[doc = " @param[in] _num Number of data instances."]
    #[doc = ""]
    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 conjuction"]
    #[doc = " with gl_InstanceID."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`."]
    #[doc = ""]
    #[doc = " @param[in] _numInstances"]
    #[doc = ""]
    pub fn bgfx_encoder_set_instance_count(_this: *mut bgfx_encoder_t, _numInstances: u32);
}
extern "C" {
    #[doc = " Set texture stage for draw primitive."]
    #[doc = ""]
    #[doc = " @param[in] _stage Texture unit."]
    #[doc = " @param[in] _sampler Program sampler."]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _flags Texture sampling mode. Default value UINT32_MAX uses"]
    #[doc = "    texture sampling settings from the texture."]
    #[doc = "    - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "      mode."]
    #[doc = "    - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "      sampling."]
    #[doc = ""]
    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"]
    #[doc = " will be applied but no geometry will be submitted. Useful in cases"]
    #[doc = " when no other draw/compute primitive is submitted to view, but it's"]
    #[doc = " desired to execute clear view."]
    #[doc = " @remark"]
    #[doc = "   These empty draw calls will sort before ordinary draw calls."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = ""]
    pub fn bgfx_encoder_touch(_this: *mut bgfx_encoder_t, _id: bgfx_view_id_t);
}
extern "C" {
    #[doc = " Submit primitive for rendering."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Program."]
    #[doc = " @param[in] _depth Depth for sorting."]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Program."]
    #[doc = " @param[in] _occlusionQuery Occlusion query."]
    #[doc = " @param[in] _depth Depth for sorting."]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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"]
    #[doc = " indirect buffer."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Program."]
    #[doc = " @param[in] _indirectHandle Indirect buffer."]
    #[doc = " @param[in] _start First element in indirect buffer."]
    #[doc = " @param[in] _num Number of dispatches."]
    #[doc = " @param[in] _depth Depth for sorting."]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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 = " Set compute index buffer."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Index buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Vertex buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Dynamic index buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Dynamic vertex buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Indirect buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _mip Mip level."]
    #[doc = " @param[in] _access Image access. See `Access::Enum`."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Compute program."]
    #[doc = " @param[in] _numX Number of groups X."]
    #[doc = " @param[in] _numY Number of groups Y."]
    #[doc = " @param[in] _numZ Number of groups Z."]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Compute program."]
    #[doc = " @param[in] _indirectHandle Indirect buffer."]
    #[doc = " @param[in] _start First element in indirect buffer."]
    #[doc = " @param[in] _num Number of dispatches."]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    pub fn bgfx_encoder_discard(_this: *mut bgfx_encoder_t, _flags: u8);
}
extern "C" {
    #[doc = " Blit 2D texture region between two 2D textures."]
    #[doc = " @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_TEXTURE_BLIT`."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _dst Destination texture handle."]
    #[doc = " @param[in] _dstMip Destination texture mip level."]
    #[doc = " @param[in] _dstX Destination texture X position."]
    #[doc = " @param[in] _dstY Destination texture Y position."]
    #[doc = " @param[in] _dstZ If texture is 2D this argument should be 0. If destination texture is cube"]
    #[doc = "  this argument represents destination texture cube face. For 3D texture this argument"]
    #[doc = "  represents destination texture Z position."]
    #[doc = " @param[in] _src Source texture handle."]
    #[doc = " @param[in] _srcMip Source texture mip level."]
    #[doc = " @param[in] _srcX Source texture X position."]
    #[doc = " @param[in] _srcY Source texture Y position."]
    #[doc = " @param[in] _srcZ If texture is 2D this argument should be 0. If source texture is cube"]
    #[doc = "  this argument represents source texture cube face. For 3D texture this argument"]
    #[doc = "  represents source texture Z position."]
    #[doc = " @param[in] _width Width of region."]
    #[doc = " @param[in] _height Height of region."]
    #[doc = " @param[in] _depth If texture is 3D this argument represents depth of region, otherwise it's"]
    #[doc = "  unused."]
    #[doc = ""]
    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."]
    #[doc = " @remarks"]
    #[doc = "   `bgfx::CallbackI::screenShot` must be implemented."]
    #[doc = " @attention Frame buffer handle must be created with OS' target native window handle."]
    #[doc = ""]
    #[doc = " @param[in] _handle Frame buffer handle. If handle is `BGFX_INVALID_HANDLE` request will be"]
    #[doc = "  made for main window back buffer."]
    #[doc = " @param[in] _filePath Will be passed to `bgfx::CallbackI::screenShot` callback."]
    #[doc = ""]
    pub fn bgfx_request_screen_shot(
        _handle: bgfx_frame_buffer_handle_t,
        _filePath: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Render frame."]
    #[doc = " @attention `bgfx::renderFrame` is blocking call. It waits for"]
    #[doc = "   `bgfx::frame` to be called from API thread to process frame."]
    #[doc = "   If timeout value is passed call will timeout and return even"]
    #[doc = "   if `bgfx::frame` is not called."]
    #[doc = " @warning This call should be only used on platforms that don't"]
    #[doc = "   allow creating separate rendering thread. If it is called before"]
    #[doc = "   to bgfx::init, render thread won't be created by bgfx::init call."]
    #[doc = ""]
    #[doc = " @param[in] _msecs Timeout in milliseconds."]
    #[doc = ""]
    #[doc = " @returns Current renderer context state. See: `bgfx::RenderFrame`."]
    #[doc = ""]
    pub fn bgfx_render_frame(_msecs: i32) -> bgfx_render_frame_t;
}
extern "C" {
    #[doc = " Set platform data."]
    #[doc = " @warning Must be called before `bgfx::init`."]
    #[doc = ""]
    #[doc = " @param[in] _data Platform data."]
    #[doc = ""]
    pub fn bgfx_set_platform_data(_data: *const bgfx_platform_data_t);
}
extern "C" {
    #[doc = " Get internal data for interop."]
    #[doc = " @attention It's expected you understand some bgfx internals before you"]
    #[doc = "   use this call."]
    #[doc = " @warning Must be called only on render thread."]
    #[doc = ""]
    pub fn bgfx_get_internal_data() -> *const bgfx_internal_data_t;
}
extern "C" {
    #[doc = " Override internal texture with externally created texture. Previously"]
    #[doc = " created internal texture will released."]
    #[doc = " @attention It's expected you understand some bgfx internals before you"]
    #[doc = "   use this call."]
    #[doc = " @warning Must be called only on render thread."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _ptr Native API pointer to texture."]
    #[doc = ""]
    #[doc = " @returns Native API pointer to texture. If result is 0, texture is not created"]
    #[doc = "  yet from the main thread."]
    #[doc = ""]
    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"]
    #[doc = " internal texture will released."]
    #[doc = " @attention It's expected you understand some bgfx internals before you"]
    #[doc = "   use this call."]
    #[doc = " @returns Native API pointer to texture. If result is 0, texture is not created yet from the"]
    #[doc = "   main thread."]
    #[doc = " @warning Must be called only on render thread."]
    #[doc = ""]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _width Width."]
    #[doc = " @param[in] _height Height."]
    #[doc = " @param[in] _numMips Number of mip-maps."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = " @param[in] _flags Texture creation (see `BGFX_TEXTURE_*`.), and sampler (see `BGFX_SAMPLER_*`)"]
    #[doc = "  flags. Default texture sampling mode is linear, and wrap mode is repeat."]
    #[doc = "  - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "    mode."]
    #[doc = "  - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "    sampling."]
    #[doc = ""]
    #[doc = " @returns Native API pointer to texture. If result is 0, texture is not created"]
    #[doc = "  yet from the main thread."]
    #[doc = ""]
    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"]
    #[doc = " graphics debugging tools."]
    #[doc = ""]
    #[doc = " @param[in] _marker Marker string."]
    #[doc = ""]
    pub fn bgfx_set_marker(_marker: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " Set render states for draw primitive."]
    #[doc = " @remarks"]
    #[doc = "   1. To setup more complex states use:"]
    #[doc = "      `BGFX_STATE_ALPHA_REF(_ref)`,"]
    #[doc = "      `BGFX_STATE_POINT_SIZE(_size)`,"]
    #[doc = "      `BGFX_STATE_BLEND_FUNC(_src, _dst)`,"]
    #[doc = "      `BGFX_STATE_BLEND_FUNC_SEPARATE(_srcRGB, _dstRGB, _srcA, _dstA)`,"]
    #[doc = "      `BGFX_STATE_BLEND_EQUATION(_equation)`,"]
    #[doc = "      `BGFX_STATE_BLEND_EQUATION_SEPARATE(_equationRGB, _equationA)`"]
    #[doc = "   2. `BGFX_STATE_BLEND_EQUATION_ADD` is set when no other blend"]
    #[doc = "      equation is specified."]
    #[doc = ""]
    #[doc = " @param[in] _state State flags. Default state for primitive type is"]
    #[doc = "    triangles. See: `BGFX_STATE_DEFAULT`."]
    #[doc = "    - `BGFX_STATE_DEPTH_TEST_*` - Depth test function."]
    #[doc = "    - `BGFX_STATE_BLEND_*` - See remark 1 about BGFX_STATE_BLEND_FUNC."]
    #[doc = "    - `BGFX_STATE_BLEND_EQUATION_*` - See remark 2."]
    #[doc = "    - `BGFX_STATE_CULL_*` - Backface culling mode."]
    #[doc = "    - `BGFX_STATE_WRITE_*` - Enable R, G, B, A or Z write."]
    #[doc = "    - `BGFX_STATE_MSAA` - Enable hardware multisample antialiasing."]
    #[doc = "    - `BGFX_STATE_PT_[TRISTRIP/LINES/POINTS]` - Primitive type."]
    #[doc = " @param[in] _rgba Sets blend factor used by `BGFX_STATE_BLEND_FACTOR` and"]
    #[doc = "    `BGFX_STATE_BLEND_INV_FACTOR` blend modes."]
    #[doc = ""]
    pub fn bgfx_set_state(_state: u64, _rgba: u32);
}
extern "C" {
    #[doc = " Set condition for rendering."]
    #[doc = ""]
    #[doc = " @param[in] _handle Occlusion query handle."]
    #[doc = " @param[in] _visible Render if occlusion query is visible."]
    #[doc = ""]
    pub fn bgfx_set_condition(_handle: bgfx_occlusion_query_handle_t, _visible: bool);
}
extern "C" {
    #[doc = " Set stencil test state."]
    #[doc = ""]
    #[doc = " @param[in] _fstencil Front stencil state."]
    #[doc = " @param[in] _bstencil Back stencil state. If back is set to `BGFX_STENCIL_NONE`"]
    #[doc = "  _fstencil is applied to both front and back facing primitives."]
    #[doc = ""]
    pub fn bgfx_set_stencil(_fstencil: u32, _bstencil: u32);
}
extern "C" {
    #[doc = " Set scissor for draw primitive."]
    #[doc = " @remark"]
    #[doc = "   To scissor for all primitives in view see `bgfx::setViewScissor`."]
    #[doc = ""]
    #[doc = " @param[in] _x Position x from the left corner of the window."]
    #[doc = " @param[in] _y Position y from the top corner of the window."]
    #[doc = " @param[in] _width Width of view scissor region."]
    #[doc = " @param[in] _height Height of view scissor region."]
    #[doc = ""]
    #[doc = " @returns Scissor cache index."]
    #[doc = ""]
    pub fn bgfx_set_scissor(_x: u16, _y: u16, _width: u16, _height: u16) -> u16;
}
extern "C" {
    #[doc = " Set scissor from cache for draw primitive."]
    #[doc = " @remark"]
    #[doc = "   To scissor for all primitives in view see `bgfx::setViewScissor`."]
    #[doc = ""]
    #[doc = " @param[in] _cache Index in scissor cache."]
    #[doc = ""]
    pub fn bgfx_set_scissor_cached(_cache: u16);
}
extern "C" {
    #[doc = " Set model matrix for draw primitive. If it is not called,"]
    #[doc = " the model will be rendered with an identity model matrix."]
    #[doc = ""]
    #[doc = " @param[in] _mtx Pointer to first matrix in array."]
    #[doc = " @param[in] _num Number of matrices in array."]
    #[doc = ""]
    #[doc = " @returns Index into matrix cache in case the same model matrix has"]
    #[doc = "  to be used for other draw primitive call."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _cache Index in matrix cache."]
    #[doc = " @param[in] _num Number of matrices from cache."]
    #[doc = ""]
    pub fn bgfx_set_transform_cached(_cache: u32, _num: u16);
}
extern "C" {
    #[doc = " Reserve matrices in internal matrix cache."]
    #[doc = " @attention Pointer returned can be modifed until `bgfx::frame` is called."]
    #[doc = ""]
    #[doc = " @param[out] _transform Pointer to `Transform` structure."]
    #[doc = " @param[in] _num Number of matrices."]
    #[doc = ""]
    #[doc = " @returns Index in matrix cache."]
    #[doc = ""]
    pub fn bgfx_alloc_transform(_transform: *mut bgfx_transform_t, _num: u16) -> u32;
}
extern "C" {
    #[doc = " Set shader uniform parameter for draw primitive."]
    #[doc = ""]
    #[doc = " @param[in] _handle Uniform."]
    #[doc = " @param[in] _value Pointer to uniform data."]
    #[doc = " @param[in] _num Number of elements. Passing `UINT16_MAX` will"]
    #[doc = "  use the _num passed on uniform creation."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Index buffer."]
    #[doc = " @param[in] _firstIndex First index to render."]
    #[doc = " @param[in] _numIndices Number of indices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic index buffer."]
    #[doc = " @param[in] _firstIndex First index to render."]
    #[doc = " @param[in] _numIndices Number of indices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _tib Transient index buffer."]
    #[doc = " @param[in] _firstIndex First index to render."]
    #[doc = " @param[in] _numIndices Number of indices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _handle Vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _handle Vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = " @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid"]
    #[doc = "  handle is used, vertex layout used for creation"]
    #[doc = "  of vertex buffer will be used."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _handle Dynamic vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _handle Dynamic vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = " @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid"]
    #[doc = "  handle is used, vertex layout used for creation"]
    #[doc = "  of vertex buffer will be used."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _tvb Transient vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stream Vertex stream."]
    #[doc = " @param[in] _tvb Transient vertex buffer."]
    #[doc = " @param[in] _startVertex First vertex to render."]
    #[doc = " @param[in] _numVertices Number of vertices to render."]
    #[doc = " @param[in] _layoutHandle Vertex layout for aliasing vertex buffer. If invalid"]
    #[doc = "  handle is used, vertex layout used for creation"]
    #[doc = "  of vertex buffer will be used."]
    #[doc = ""]
    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 conjuction"]
    #[doc = " with gl_VertexID."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`."]
    #[doc = ""]
    #[doc = " @param[in] _numVertices Number of vertices."]
    #[doc = ""]
    pub fn bgfx_set_vertex_count(_numVertices: u32);
}
extern "C" {
    #[doc = " Set instance data buffer for draw primitive."]
    #[doc = ""]
    #[doc = " @param[in] _idb Transient instance data buffer."]
    #[doc = " @param[in] _start First instance data."]
    #[doc = " @param[in] _num Number of data instances."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Vertex buffer."]
    #[doc = " @param[in] _startVertex First instance data."]
    #[doc = " @param[in] _num Number of data instances."]
    #[doc = "  Set instance data buffer for draw primitive."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _handle Dynamic vertex buffer."]
    #[doc = " @param[in] _startVertex First instance data."]
    #[doc = " @param[in] _num Number of data instances."]
    #[doc = ""]
    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 conjuction"]
    #[doc = " with gl_InstanceID."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_VERTEX_ID`."]
    #[doc = ""]
    #[doc = " @param[in] _numInstances"]
    #[doc = ""]
    pub fn bgfx_set_instance_count(_numInstances: u32);
}
extern "C" {
    #[doc = " Set texture stage for draw primitive."]
    #[doc = ""]
    #[doc = " @param[in] _stage Texture unit."]
    #[doc = " @param[in] _sampler Program sampler."]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _flags Texture sampling mode. Default value UINT32_MAX uses"]
    #[doc = "    texture sampling settings from the texture."]
    #[doc = "    - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap"]
    #[doc = "      mode."]
    #[doc = "    - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic"]
    #[doc = "      sampling."]
    #[doc = ""]
    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"]
    #[doc = " will be applied but no geometry will be submitted."]
    #[doc = " @remark"]
    #[doc = "   These empty draw calls will sort before ordinary draw calls."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = ""]
    pub fn bgfx_touch(_id: bgfx_view_id_t);
}
extern "C" {
    #[doc = " Submit primitive for rendering."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Program."]
    #[doc = " @param[in] _depth Depth for sorting."]
    #[doc = " @param[in] _flags Which states to discard for next draw. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Program."]
    #[doc = " @param[in] _occlusionQuery Occlusion query."]
    #[doc = " @param[in] _depth Depth for sorting."]
    #[doc = " @param[in] _flags Which states to discard for next draw. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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"]
    #[doc = " indirect buffer."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Program."]
    #[doc = " @param[in] _indirectHandle Indirect buffer."]
    #[doc = " @param[in] _start First element in indirect buffer."]
    #[doc = " @param[in] _num Number of dispatches."]
    #[doc = " @param[in] _depth Depth for sorting."]
    #[doc = " @param[in] _flags Which states to discard for next draw. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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 = " Set compute index buffer."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Index buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Vertex buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Dynamic index buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Dynamic vertex buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Indirect buffer handle."]
    #[doc = " @param[in] _access Buffer access. See `Access::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _stage Compute stage."]
    #[doc = " @param[in] _handle Texture handle."]
    #[doc = " @param[in] _mip Mip level."]
    #[doc = " @param[in] _access Image access. See `Access::Enum`."]
    #[doc = " @param[in] _format Texture format. See: `TextureFormat::Enum`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Compute program."]
    #[doc = " @param[in] _numX Number of groups X."]
    #[doc = " @param[in] _numY Number of groups Y."]
    #[doc = " @param[in] _numZ Number of groups Z."]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _program Compute program."]
    #[doc = " @param[in] _indirectHandle Indirect buffer."]
    #[doc = " @param[in] _start First element in indirect buffer."]
    #[doc = " @param[in] _num Number of dispatches."]
    #[doc = " @param[in] _flags Discard or preserve states. See `BGFX_DISCARD_*`."]
    #[doc = ""]
    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."]
    #[doc = ""]
    #[doc = " @param[in] _flags Draw/compute states to discard."]
    #[doc = ""]
    pub fn bgfx_discard(_flags: u8);
}
extern "C" {
    #[doc = " Blit 2D texture region between two 2D textures."]
    #[doc = " @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag."]
    #[doc = " @attention Availability depends on: `BGFX_CAPS_TEXTURE_BLIT`."]
    #[doc = ""]
    #[doc = " @param[in] _id View id."]
    #[doc = " @param[in] _dst Destination texture handle."]
    #[doc = " @param[in] _dstMip Destination texture mip level."]
    #[doc = " @param[in] _dstX Destination texture X position."]
    #[doc = " @param[in] _dstY Destination texture Y position."]
    #[doc = " @param[in] _dstZ If texture is 2D this argument should be 0. If destination texture is cube"]
    #[doc = "  this argument represents destination texture cube face. For 3D texture this argument"]
    #[doc = "  represents destination texture Z position."]
    #[doc = " @param[in] _src Source texture handle."]
    #[doc = " @param[in] _srcMip Source texture mip level."]
    #[doc = " @param[in] _srcX Source texture X position."]
    #[doc = " @param[in] _srcY Source texture Y position."]
    #[doc = " @param[in] _srcZ If texture is 2D this argument should be 0. If source texture is cube"]
    #[doc = "  this argument represents source texture cube face. For 3D texture this argument"]
    #[doc = "  represents source texture Z position."]
    #[doc = " @param[in] _width Width of region."]
    #[doc = " @param[in] _height Height of region."]
    #[doc = " @param[in] _depth If texture is 3D this argument represents depth of region, otherwise it's"]
    #[doc = "  unused."]
    #[doc = ""]
    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_SET_COMPUTE_INDEX_BUFFER: bgfx_function_id = 137;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_VERTEX_BUFFER: bgfx_function_id = 138;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 139;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 140;
pub const BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_INDIRECT_BUFFER: bgfx_function_id = 141;
pub const BGFX_FUNCTION_ID_ENCODER_SET_IMAGE: bgfx_function_id = 142;
pub const BGFX_FUNCTION_ID_ENCODER_DISPATCH: bgfx_function_id = 143;
pub const BGFX_FUNCTION_ID_ENCODER_DISPATCH_INDIRECT: bgfx_function_id = 144;
pub const BGFX_FUNCTION_ID_ENCODER_DISCARD: bgfx_function_id = 145;
pub const BGFX_FUNCTION_ID_ENCODER_BLIT: bgfx_function_id = 146;
pub const BGFX_FUNCTION_ID_REQUEST_SCREEN_SHOT: bgfx_function_id = 147;
pub const BGFX_FUNCTION_ID_RENDER_FRAME: bgfx_function_id = 148;
pub const BGFX_FUNCTION_ID_SET_PLATFORM_DATA: bgfx_function_id = 149;
pub const BGFX_FUNCTION_ID_GET_INTERNAL_DATA: bgfx_function_id = 150;
pub const BGFX_FUNCTION_ID_OVERRIDE_INTERNAL_TEXTURE_PTR: bgfx_function_id = 151;
pub const BGFX_FUNCTION_ID_OVERRIDE_INTERNAL_TEXTURE: bgfx_function_id = 152;
pub const BGFX_FUNCTION_ID_SET_MARKER: bgfx_function_id = 153;
pub const BGFX_FUNCTION_ID_SET_STATE: bgfx_function_id = 154;
pub const BGFX_FUNCTION_ID_SET_CONDITION: bgfx_function_id = 155;
pub const BGFX_FUNCTION_ID_SET_STENCIL: bgfx_function_id = 156;
pub const BGFX_FUNCTION_ID_SET_SCISSOR: bgfx_function_id = 157;
pub const BGFX_FUNCTION_ID_SET_SCISSOR_CACHED: bgfx_function_id = 158;
pub const BGFX_FUNCTION_ID_SET_TRANSFORM: bgfx_function_id = 159;
pub const BGFX_FUNCTION_ID_SET_TRANSFORM_CACHED: bgfx_function_id = 160;
pub const BGFX_FUNCTION_ID_ALLOC_TRANSFORM: bgfx_function_id = 161;
pub const BGFX_FUNCTION_ID_SET_UNIFORM: bgfx_function_id = 162;
pub const BGFX_FUNCTION_ID_SET_INDEX_BUFFER: bgfx_function_id = 163;
pub const BGFX_FUNCTION_ID_SET_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 164;
pub const BGFX_FUNCTION_ID_SET_TRANSIENT_INDEX_BUFFER: bgfx_function_id = 165;
pub const BGFX_FUNCTION_ID_SET_VERTEX_BUFFER: bgfx_function_id = 166;
pub const BGFX_FUNCTION_ID_SET_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 167;
pub const BGFX_FUNCTION_ID_SET_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 168;
pub const BGFX_FUNCTION_ID_SET_DYNAMIC_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 169;
pub const BGFX_FUNCTION_ID_SET_TRANSIENT_VERTEX_BUFFER: bgfx_function_id = 170;
pub const BGFX_FUNCTION_ID_SET_TRANSIENT_VERTEX_BUFFER_WITH_LAYOUT: bgfx_function_id = 171;
pub const BGFX_FUNCTION_ID_SET_VERTEX_COUNT: bgfx_function_id = 172;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_DATA_BUFFER: bgfx_function_id = 173;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_DATA_FROM_VERTEX_BUFFER: bgfx_function_id = 174;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_DATA_FROM_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 175;
pub const BGFX_FUNCTION_ID_SET_INSTANCE_COUNT: bgfx_function_id = 176;
pub const BGFX_FUNCTION_ID_SET_TEXTURE: bgfx_function_id = 177;
pub const BGFX_FUNCTION_ID_TOUCH: bgfx_function_id = 178;
pub const BGFX_FUNCTION_ID_SUBMIT: bgfx_function_id = 179;
pub const BGFX_FUNCTION_ID_SUBMIT_OCCLUSION_QUERY: bgfx_function_id = 180;
pub const BGFX_FUNCTION_ID_SUBMIT_INDIRECT: bgfx_function_id = 181;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_INDEX_BUFFER: bgfx_function_id = 182;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_VERTEX_BUFFER: bgfx_function_id = 183;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_DYNAMIC_INDEX_BUFFER: bgfx_function_id = 184;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_DYNAMIC_VERTEX_BUFFER: bgfx_function_id = 185;
pub const BGFX_FUNCTION_ID_SET_COMPUTE_INDIRECT_BUFFER: bgfx_function_id = 186;
pub const BGFX_FUNCTION_ID_SET_IMAGE: bgfx_function_id = 187;
pub const BGFX_FUNCTION_ID_DISPATCH: bgfx_function_id = 188;
pub const BGFX_FUNCTION_ID_DISPATCH_INDIRECT: bgfx_function_id = 189;
pub const BGFX_FUNCTION_ID_DISCARD: bgfx_function_id = 190;
pub const BGFX_FUNCTION_ID_BLIT: bgfx_function_id = 191;
pub const BGFX_FUNCTION_ID_COUNT: bgfx_function_id = 192;
pub type bgfx_function_id = u32;
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_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 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,
}