saxaboom 0.2.0+irconverter-2.0

Binding library for Metal Shader Converter
Documentation
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
/* automatically generated by rust-bindgen 0.71.1 */

pub const IR_VERSION_MAJOR: u32 = 2;
pub const IR_VERSION_MINOR: u32 = 1;
pub const IR_VERSION_PATCH: u32 = 0;
pub const IRDescriptorRangeOffsetAppend: u32 = 4294967295;
pub const IRIntrinsicMaskClosestHitAll: u64 = 2147483647;
pub const IRIntrinsicMaskMissShaderAll: u64 = 32767;
pub const IRIntrinsicMaskCallableShaderAll: u64 = 28735;
pub const IRRayTracingUnlimitedRecursionDepth: i32 = -1;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRComparisonFunction {
    Never = 1,
    Less = 2,
    Equal = 3,
    LessEqual = 4,
    Greater = 5,
    NotEqual = 6,
    GreaterEqual = 7,
    Always = 8,
}
impl IRDescriptorRangeFlags {
    pub const None: IRDescriptorRangeFlags = IRDescriptorRangeFlags(0);
}
impl IRDescriptorRangeFlags {
    pub const DescriptorsVolatile: IRDescriptorRangeFlags = IRDescriptorRangeFlags(1);
}
impl IRDescriptorRangeFlags {
    pub const DataVolatile: IRDescriptorRangeFlags = IRDescriptorRangeFlags(2);
}
impl IRDescriptorRangeFlags {
    pub const DataStaticWhileSetAtExecute: IRDescriptorRangeFlags = IRDescriptorRangeFlags(4);
}
impl IRDescriptorRangeFlags {
    pub const DataStatic: IRDescriptorRangeFlags = IRDescriptorRangeFlags(8);
}
impl IRDescriptorRangeFlags {
    pub const DescriptorsStaticKeepingBufferBoundsChecks: IRDescriptorRangeFlags =
        IRDescriptorRangeFlags(65536);
}
impl ::std::ops::BitOr<IRDescriptorRangeFlags> for IRDescriptorRangeFlags {
    type Output = Self;
    #[inline]
    fn bitor(self, other: Self) -> Self {
        IRDescriptorRangeFlags(self.0 | other.0)
    }
}
impl ::std::ops::BitOrAssign for IRDescriptorRangeFlags {
    #[inline]
    fn bitor_assign(&mut self, rhs: IRDescriptorRangeFlags) {
        self.0 |= rhs.0;
    }
}
impl ::std::ops::BitAnd<IRDescriptorRangeFlags> for IRDescriptorRangeFlags {
    type Output = Self;
    #[inline]
    fn bitand(self, other: Self) -> Self {
        IRDescriptorRangeFlags(self.0 & other.0)
    }
}
impl ::std::ops::BitAndAssign for IRDescriptorRangeFlags {
    #[inline]
    fn bitand_assign(&mut self, rhs: IRDescriptorRangeFlags) {
        self.0 &= rhs.0;
    }
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct IRDescriptorRangeFlags(pub ::std::os::raw::c_uint);
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRFilter {
    MinMagMipPoint = 0,
    MinMagPointMipLinear = 1,
    MinPointMagLinearMipPoint = 4,
    MinPointMagMipLinear = 5,
    MinLinearMagMipPoint = 16,
    MinLinearMagPointMipLinear = 17,
    MinMagLinearMipPoint = 20,
    MinMagMipLinear = 21,
    Anisotropic = 85,
    ComparisonMinMagMipPoint = 128,
    ComparisonMinMagPointMipLinear = 129,
    ComparisonMinPointMagLinearMipPoint = 132,
    ComparisonMinPointMagMipLinear = 133,
    ComparisonMinLinearMagMipPoint = 144,
    ComparisonMinLinearMagPointMipLinear = 145,
    ComparisonMinMagLinearMipPoint = 148,
    ComparisonMinMagMipLinear = 149,
    ComparisonAnisotropic = 213,
    MinimumMinMagMipPoint = 256,
    MinimumMinMagPointMipLinear = 257,
    MinimumMinPointMagLinearMipPoint = 260,
    MinimumMinPointMagMipLinear = 261,
    MinimumMinLinearMagMipPoint = 272,
    MinimumMinLinearMagPointMipLinear = 273,
    MinimumMinMagLinearMipPoint = 276,
    MinimumMinMagMipLinear = 277,
    MinimumAnisotropic = 341,
    MaximumMinMagMipPoint = 384,
    MaximumMinMagPointMipLinear = 385,
    MaximumMinPointMagLinearMipPoint = 388,
    MaximumMinPointMagMipLinear = 389,
    MaximumMinLinearMagMipPoint = 400,
    MaximumMinLinearMagPointMipLinear = 401,
    MaximumMinMagLinearMipPoint = 404,
    MaximumMinMagMipLinear = 405,
    MaximumAnisotropic = 469,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRFormat {
    Unknown = 0,
    R32G32B32A32Typeless = 1,
    R32G32B32A32Float = 2,
    R32G32B32A32Uint = 3,
    R32G32B32A32Sint = 4,
    R32G32B32Typeless = 5,
    R32G32B32Float = 6,
    R32G32B32Uint = 7,
    R32G32B32Sint = 8,
    R16G16B16A16Typeless = 9,
    R16G16B16A16Float = 10,
    R16G16B16A16Unorm = 11,
    R16G16B16A16Uint = 12,
    R16G16B16A16Snorm = 13,
    R16G16B16A16Sint = 14,
    R32G32Typeless = 15,
    R32G32Float = 16,
    R32G32Uint = 17,
    R32G32Sint = 18,
    R32G8X24Typeless = 19,
    D32FloatS8X24Uint = 20,
    R32FloatX8X24Typeless = 21,
    X32TypelessG8X24Uint = 22,
    R10G10B10A2Typeless = 23,
    R10G10B10A2Unorm = 24,
    R10G10B10A2Uint = 25,
    R11G11B10Float = 26,
    R8G8B8A8Typeless = 27,
    R8G8B8A8Unorm = 28,
    R8G8B8A8Unorm_sRGB = 29,
    R8G8B8A8Uint = 30,
    R8G8B8A8Snorm = 31,
    R8G8B8A8Sint = 32,
    R16G16Typeless = 33,
    R16G16Float = 34,
    R16G16Unorm = 35,
    R16G16Uint = 36,
    R16G16Snorm = 37,
    R16G16Sint = 38,
    R32Typeless = 39,
    D32Float = 40,
    R32Float = 41,
    R32Uint = 42,
    R32Sint = 43,
    R24G8Typeless = 44,
    D24UnormS8Uint = 45,
    R24UnormX8Typeless = 46,
    X24TypelessG8Uint = 47,
    R8G8Typeless = 48,
    R8G8Unorm = 49,
    R8G8Uint = 50,
    R8G8Snorm = 51,
    R8G8Sint = 52,
    R16Typeless = 53,
    R16Float = 54,
    D16Unorm = 55,
    R16Unorm = 56,
    R16Uint = 57,
    R16Snorm = 58,
    R16Sint = 59,
    R8Typeless = 60,
    R8Unorm = 61,
    R8Uint = 62,
    R8Snorm = 63,
    R8Sint = 64,
    A8Unorm = 65,
    R1Unorm = 66,
    R9G9B9E5Sharedexp = 67,
    R8G8B8G8Unorm = 68,
    G8R8G8B8Unorm = 69,
    BC1Typeless = 70,
    BC1Unorm = 71,
    BC1Unorm_sRGB = 72,
    BC2Typeless = 73,
    BC2Unorm = 74,
    BC2Unorm_sRGB = 75,
    BC3Typeless = 76,
    BC3Unorm = 77,
    BC3Unorm_sRGB = 78,
    BC4Typeless = 79,
    BC4Unorm = 80,
    BC4Snorm = 81,
    BC5Typeless = 82,
    BC5Unorm = 83,
    BC5Snorm = 84,
    B5G6R5Unorm = 85,
    B5G5R5A1Unorm = 86,
    B8G8R8A8Unorm = 87,
    B8G8R8X8Unorm = 88,
    R10G10B10XRBiasA2Unorm = 89,
    B8G8R8A8Typeless = 90,
    B8G8R8A8Unorm_sRGB = 91,
    B8G8R8X8Typeless = 92,
    B8G8R8X8Unorm_sRGB = 93,
    BC6HTypeless = 94,
    BC6HUf16 = 95,
    BC6HSf16 = 96,
    BC7Typeless = 97,
    BC7Unorm = 98,
    BC7Unorm_sRGB = 99,
    AYUV = 100,
    Y410 = 101,
    Y416 = 102,
    NV12 = 103,
    P010 = 104,
    P016 = 105,
    _420Opaque = 106,
    YUY2 = 107,
    Y210 = 108,
    Y216 = 109,
    NV11 = 110,
    AI44 = 111,
    IA44 = 112,
    P8 = 113,
    A8P8 = 114,
    B4G4R4A4Unorm = 115,
    P208 = 130,
    V208 = 131,
    V408 = 132,
    SamplerFeedbackMinMipOpaque = 189,
    SamplerFeedbackMipRegionUsedOpaque = 190,
    ForceUint = 4294967295,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRInputClassification {
    PerVertexData = 0,
    PerInstanceData = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRInputPrimitive {
    Undefined = 0,
    Point = 1,
    Line = 2,
    Triangle = 3,
    LineAdj = 6,
    TriangleAdj = 7,
    _1ControlPointPatch = 8,
    _2ControlPointPatch = 9,
    _3ControlPointPatch = 10,
    _4ControlPointPatch = 11,
    _5ControlPointPatch = 12,
    _6ControlPointPatch = 13,
    _7ControlPointPatch = 14,
    _8ControlPointPatch = 15,
    _9ControlPointPatch = 16,
    _10ControlPointPatch = 17,
    _11ControlPointPatch = 18,
    _12ControlPointPatch = 19,
    _13ControlPointPatch = 20,
    _14ControlPointPatch = 21,
    _15ControlPointPatch = 22,
    _16ControlPointPatch = 23,
    _17ControlPointPatch = 24,
    _18ControlPointPatch = 25,
    _19ControlPointPatch = 26,
    _20ControlPointPatch = 27,
    _21ControlPointPatch = 28,
    _22ControlPointPatch = 29,
    _23ControlPointPatch = 30,
    _24ControlPointPatch = 31,
    _25ControlPointPatch = 32,
    _26ControlPointPatch = 33,
    _27ControlPointPatch = 34,
    _28ControlPointPatch = 35,
    _29ControlPointPatch = 36,
    _30ControlPointPatch = 37,
    _31ControlPointPatch = 38,
    _32ControlPointPatch = 39,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRInputTopology {
    Undefined = 0,
    Point = 1,
    Line = 2,
    Triangle = 3,
    Patch = 4,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRTessellatorOutputPrimitive {
    IRTessellatorOutputUndefined = 0,
    IRTessellatorOutputPoint = 1,
    IRTessellatorOutputLine = 2,
    IRTessellatorOutputTriangleCW = 3,
    IRTessellatorOutputTriangleCCW = 4,
}
impl IRRootDescriptorFlags {
    pub const None: IRRootDescriptorFlags = IRRootDescriptorFlags(0);
}
impl IRRootDescriptorFlags {
    pub const DataVolatile: IRRootDescriptorFlags = IRRootDescriptorFlags(2);
}
impl IRRootDescriptorFlags {
    pub const DataStaticWhileSetAtExecute: IRRootDescriptorFlags = IRRootDescriptorFlags(4);
}
impl IRRootDescriptorFlags {
    pub const DataStatic: IRRootDescriptorFlags = IRRootDescriptorFlags(8);
}
impl ::std::ops::BitOr<IRRootDescriptorFlags> for IRRootDescriptorFlags {
    type Output = Self;
    #[inline]
    fn bitor(self, other: Self) -> Self {
        IRRootDescriptorFlags(self.0 | other.0)
    }
}
impl ::std::ops::BitOrAssign for IRRootDescriptorFlags {
    #[inline]
    fn bitor_assign(&mut self, rhs: IRRootDescriptorFlags) {
        self.0 |= rhs.0;
    }
}
impl ::std::ops::BitAnd<IRRootDescriptorFlags> for IRRootDescriptorFlags {
    type Output = Self;
    #[inline]
    fn bitand(self, other: Self) -> Self {
        IRRootDescriptorFlags(self.0 & other.0)
    }
}
impl ::std::ops::BitAndAssign for IRRootDescriptorFlags {
    #[inline]
    fn bitand_assign(&mut self, rhs: IRRootDescriptorFlags) {
        self.0 &= rhs.0;
    }
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct IRRootDescriptorFlags(pub ::std::os::raw::c_uint);
impl IRRootSignatureFlags {
    pub const None: IRRootSignatureFlags = IRRootSignatureFlags(0);
}
impl IRRootSignatureFlags {
    pub const AllowInputAssemblerInputLayout: IRRootSignatureFlags = IRRootSignatureFlags(1);
}
impl IRRootSignatureFlags {
    pub const DenyVertexShaderRootAccess: IRRootSignatureFlags = IRRootSignatureFlags(2);
}
impl IRRootSignatureFlags {
    pub const DenyHullShaderRootAccess: IRRootSignatureFlags = IRRootSignatureFlags(4);
}
impl IRRootSignatureFlags {
    pub const DenyDomainShaderRootAccess: IRRootSignatureFlags = IRRootSignatureFlags(8);
}
impl IRRootSignatureFlags {
    pub const DenyGeometryShaderRootAccess: IRRootSignatureFlags = IRRootSignatureFlags(16);
}
impl IRRootSignatureFlags {
    pub const DenyPixelShaderRootAccess: IRRootSignatureFlags = IRRootSignatureFlags(32);
}
impl IRRootSignatureFlags {
    pub const AllowStreamOutput: IRRootSignatureFlags = IRRootSignatureFlags(64);
}
impl IRRootSignatureFlags {
    pub const LocalRootSignature: IRRootSignatureFlags = IRRootSignatureFlags(128);
}
impl IRRootSignatureFlags {
    pub const DenyAmplificationShaderRootAccess: IRRootSignatureFlags = IRRootSignatureFlags(256);
}
impl IRRootSignatureFlags {
    pub const DenyMeshShaderRootAccess: IRRootSignatureFlags = IRRootSignatureFlags(512);
}
impl IRRootSignatureFlags {
    pub const CBVSRVUAVHeapDirectlyIndexed: IRRootSignatureFlags = IRRootSignatureFlags(1024);
}
impl IRRootSignatureFlags {
    pub const SamplerHeapDirectlyIndexed: IRRootSignatureFlags = IRRootSignatureFlags(2048);
}
impl ::std::ops::BitOr<IRRootSignatureFlags> for IRRootSignatureFlags {
    type Output = Self;
    #[inline]
    fn bitor(self, other: Self) -> Self {
        IRRootSignatureFlags(self.0 | other.0)
    }
}
impl ::std::ops::BitOrAssign for IRRootSignatureFlags {
    #[inline]
    fn bitor_assign(&mut self, rhs: IRRootSignatureFlags) {
        self.0 |= rhs.0;
    }
}
impl ::std::ops::BitAnd<IRRootSignatureFlags> for IRRootSignatureFlags {
    type Output = Self;
    #[inline]
    fn bitand(self, other: Self) -> Self {
        IRRootSignatureFlags(self.0 & other.0)
    }
}
impl ::std::ops::BitAndAssign for IRRootSignatureFlags {
    #[inline]
    fn bitand_assign(&mut self, rhs: IRRootSignatureFlags) {
        self.0 &= rhs.0;
    }
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct IRRootSignatureFlags(pub ::std::os::raw::c_uint);
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRShaderVisibility {
    All = 0,
    Vertex = 1,
    Hull = 2,
    Domain = 3,
    Geometry = 4,
    Pixel = 5,
    Amplification = 6,
    Mesh = 7,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRTessellatorDomain {
    Undefined = 0,
    Isoline = 1,
    Tri = 2,
    Quad = 3,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRTessellatorPartitioning {
    Undefined = 0,
    Integer = 1,
    Pow2 = 2,
    FractionalOdd = 3,
    FractionalEven = 4,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRTextureAddressMode {
    Wrap = 1,
    Mirror = 2,
    Clamp = 3,
    Border = 4,
    MirrorOnce = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRCompiler {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRObject {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootSignature {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRMetalLibBinary {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRShaderReflection {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRError {
    _unused: [u8; 0],
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRShaderStage {
    Invalid = 0,
    Vertex = 1,
    Fragment = 2,
    Hull = 3,
    Domain = 4,
    Mesh = 5,
    Amplification = 6,
    Geometry = 7,
    Compute = 8,
    ClosestHit = 9,
    Intersection = 10,
    AnyHit = 11,
    Miss = 12,
    RayGeneration = 13,
    Callable = 14,
    StreamOut = 15,
    StageIn = 16,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRObjectType {
    DXILBytecode = 0,
    MetalIRObject = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRResourceType {
    Table = 0,
    Constant = 1,
    CBV = 2,
    SRV = 3,
    UAV = 4,
    Sampler = 5,
    Invalid = 6,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRDescriptorRangeType {
    SRV = 0,
    UAV = 1,
    CBV = 2,
    Sampler = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRDescriptorRange {
    pub RangeType: IRDescriptorRangeType,
    pub NumDescriptors: u32,
    pub BaseShaderRegister: u32,
    pub RegisterSpace: u32,
    pub OffsetInDescriptorsFromTableStart: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootDescriptorTable {
    pub NumDescriptorRanges: u32,
    pub pDescriptorRanges: *const IRDescriptorRange,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRVertexInputTable {
    pub NumDescriptorRanges: u32,
    pub pDescriptorRanges: *const IRDescriptorRange,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootConstants {
    pub ShaderRegister: u32,
    pub RegisterSpace: u32,
    pub Num32BitValues: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootDescriptor {
    pub ShaderRegister: u32,
    pub RegisterSpace: u32,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRStripCutIndex {
    Disabled = 0,
    _0xFFFF = 1,
    _0xFFFFFFFF = 2,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRRootParameterType {
    DescriptorTable = 0,
    _32BitConstants = 1,
    CBV = 2,
    SRV = 3,
    UAV = 4,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRRootParameter {
    pub ParameterType: IRRootParameterType,
    pub u_1: IRRootParameter_u,
    pub ShaderVisibility: IRShaderVisibility,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRRootParameter_u {
    pub DescriptorTable: IRRootDescriptorTable,
    pub Constants: IRRootConstants,
    pub Descriptor: IRRootDescriptor,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRStaticBorderColor {
    TransparentBlack = 0,
    OpaqueBlack = 1,
    OpaqueWhite = 2,
}
impl IRCompatibilityFlags {
    pub const None: IRCompatibilityFlags = IRCompatibilityFlags(0);
}
impl IRCompatibilityFlags {
    pub const BoundsCheck: IRCompatibilityFlags = IRCompatibilityFlags(1);
}
impl IRCompatibilityFlags {
    pub const VertexPositionInfToNan: IRCompatibilityFlags = IRCompatibilityFlags(2);
}
impl IRCompatibilityFlags {
    pub const TextureMinLODClamp: IRCompatibilityFlags = IRCompatibilityFlags(4);
}
impl IRCompatibilityFlags {
    pub const SamplerLODBias: IRCompatibilityFlags = IRCompatibilityFlags(8);
}
impl IRCompatibilityFlags {
    pub const PositionInvariance: IRCompatibilityFlags = IRCompatibilityFlags(16);
}
impl IRCompatibilityFlags {
    pub const SampleNanToZero: IRCompatibilityFlags = IRCompatibilityFlags(32);
}
impl IRCompatibilityFlags {
    pub const TexWriteRoundingRTZ: IRCompatibilityFlags = IRCompatibilityFlags(64);
}
impl IRCompatibilityFlags {
    pub const Suppress2DComputeDerivativeErrors: IRCompatibilityFlags = IRCompatibilityFlags(128);
}
impl ::std::ops::BitOr<IRCompatibilityFlags> for IRCompatibilityFlags {
    type Output = Self;
    #[inline]
    fn bitor(self, other: Self) -> Self {
        IRCompatibilityFlags(self.0 | other.0)
    }
}
impl ::std::ops::BitOrAssign for IRCompatibilityFlags {
    #[inline]
    fn bitor_assign(&mut self, rhs: IRCompatibilityFlags) {
        self.0 |= rhs.0;
    }
}
impl ::std::ops::BitAnd<IRCompatibilityFlags> for IRCompatibilityFlags {
    type Output = Self;
    #[inline]
    fn bitand(self, other: Self) -> Self {
        IRCompatibilityFlags(self.0 & other.0)
    }
}
impl ::std::ops::BitAndAssign for IRCompatibilityFlags {
    #[inline]
    fn bitand_assign(&mut self, rhs: IRCompatibilityFlags) {
        self.0 &= rhs.0;
    }
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct IRCompatibilityFlags(pub ::std::os::raw::c_uint);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRStaticSamplerDescriptor {
    pub Filter: IRFilter,
    pub AddressU: IRTextureAddressMode,
    pub AddressV: IRTextureAddressMode,
    pub AddressW: IRTextureAddressMode,
    pub MipLODBias: f32,
    pub MaxAnisotropy: u32,
    pub ComparisonFunc: IRComparisonFunction,
    pub BorderColor: IRStaticBorderColor,
    pub MinLOD: f32,
    pub MaxLOD: f32,
    pub ShaderRegister: u32,
    pub RegisterSpace: u32,
    pub ShaderVisibility: IRShaderVisibility,
}
impl IRRootSignatureVersion {
    pub const _1_0: IRRootSignatureVersion = IRRootSignatureVersion::_1;
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRRootSignatureVersion {
    _1 = 1,
    _1_1 = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootSignatureDescriptor {
    pub NumParameters: u32,
    pub pParameters: *const IRRootParameter,
    pub NumStaticSamplers: u32,
    pub pStaticSamplers: *const IRStaticSamplerDescriptor,
    pub Flags: IRRootSignatureFlags,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRDescriptorRange1 {
    pub RangeType: IRDescriptorRangeType,
    pub NumDescriptors: u32,
    pub BaseShaderRegister: u32,
    pub RegisterSpace: u32,
    pub Flags: IRDescriptorRangeFlags,
    pub OffsetInDescriptorsFromTableStart: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootDescriptorTable1 {
    pub NumDescriptorRanges: u32,
    pub pDescriptorRanges: *mut IRDescriptorRange1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootDescriptor1 {
    pub ShaderRegister: u32,
    pub RegisterSpace: u32,
    pub Flags: IRRootDescriptorFlags,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRRootParameter1 {
    pub ParameterType: IRRootParameterType,
    pub u_1: IRRootParameter1_u,
    pub ShaderVisibility: IRShaderVisibility,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRRootParameter1_u {
    pub DescriptorTable: IRRootDescriptorTable1,
    pub Constants: IRRootConstants,
    pub Descriptor: IRRootDescriptor1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRootSignatureDescriptor1 {
    pub NumParameters: u32,
    pub pParameters: *mut IRRootParameter1,
    pub NumStaticSamplers: u32,
    pub pStaticSamplers: *mut IRStaticSamplerDescriptor,
    pub Flags: IRRootSignatureFlags,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedRootSignatureDescriptor {
    pub version: IRRootSignatureVersion,
    pub u_1: IRVersionedRootSignatureDescriptor_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedRootSignatureDescriptor_u {
    pub desc_1_0: IRRootSignatureDescriptor,
    pub desc_1_1: IRRootSignatureDescriptor1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRInputElementDescriptor1 {
    pub semanticIndex: u32,
    pub format: IRFormat,
    pub inputSlot: u32,
    pub alignedByteOffset: u32,
    pub instanceDataStepRate: u32,
    pub inputSlotClass: IRInputClassification,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRInputLayoutDescriptor1 {
    pub semanticNames: [*const ::std::os::raw::c_char; 31usize],
    pub inputElementDescs: [IRInputElementDescriptor1; 31usize],
    pub numElements: u32,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRInputLayoutDescriptorVersion {
    _1 = 1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedInputLayoutDescriptor {
    pub version: IRInputLayoutDescriptorVersion,
    pub u_1: IRVersionedInputLayoutDescriptor_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedInputLayoutDescriptor_u {
    pub desc_1_0: IRInputLayoutDescriptor1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRHitGroupType {
    Triangles = 0,
    ProceduralPrimitive = 1,
}
impl IRRaytracingPipelineFlags {
    pub const None: IRRaytracingPipelineFlags = IRRaytracingPipelineFlags(0);
}
impl IRRaytracingPipelineFlags {
    pub const SkipTriangles: IRRaytracingPipelineFlags = IRRaytracingPipelineFlags(256);
}
impl IRRaytracingPipelineFlags {
    pub const SkipProceduralPrimitives: IRRaytracingPipelineFlags = IRRaytracingPipelineFlags(512);
}
impl ::std::ops::BitOr<IRRaytracingPipelineFlags> for IRRaytracingPipelineFlags {
    type Output = Self;
    #[inline]
    fn bitor(self, other: Self) -> Self {
        IRRaytracingPipelineFlags(self.0 | other.0)
    }
}
impl ::std::ops::BitOrAssign for IRRaytracingPipelineFlags {
    #[inline]
    fn bitor_assign(&mut self, rhs: IRRaytracingPipelineFlags) {
        self.0 |= rhs.0;
    }
}
impl ::std::ops::BitAnd<IRRaytracingPipelineFlags> for IRRaytracingPipelineFlags {
    type Output = Self;
    #[inline]
    fn bitand(self, other: Self) -> Self {
        IRRaytracingPipelineFlags(self.0 & other.0)
    }
}
impl ::std::ops::BitAndAssign for IRRaytracingPipelineFlags {
    #[inline]
    fn bitand_assign(&mut self, rhs: IRRaytracingPipelineFlags) {
        self.0 &= rhs.0;
    }
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct IRRaytracingPipelineFlags(pub ::std::os::raw::c_uint);
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRRayGenerationCompilationMode {
    Kernel = 0,
    VisibleFunction = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRIntersectionFunctionCompilationMode {
    VisibleFunction = 0,
    IntersectionFunction = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRErrorCode {
    NoError = 0,
    ShaderRequiresRootSignature = 1,
    UnrecognizedRootSignatureDescriptor = 2,
    UnrecognizedParameterTypeInRootSignature = 3,
    ResourceNotReferencedByRootSignature = 4,
    ShaderIncompatibleWithDualSourceBlending = 5,
    UnsupportedWaveSize = 6,
    UnsupportedInstruction = 7,
    CompilationError = 8,
    FailedToSynthesizeStageInFunction = 9,
    FailedToSynthesizeStreamOutFunction = 10,
    FailedToSynthesizeIndirectIntersectionFunction = 11,
    UnableToVerifyModule = 12,
    UnableToLinkModule = 13,
    UnrecognizedDXILHeader = 14,
    InvalidRaytracingAttribute = 15,
    NullHullShaderInputOutputMismatch = 16,
    InvalidRaytracingUserAttributeSize = 17,
    IncorrectHitgroupType = 18,
    Unknown = 19,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRBytecodeOwnership {
    #[doc = " Do not take ownership."]
    None = 0,
    #[doc = " Copy the bytecode."]
    Copy = 1,
}
impl IRCompilerValidationFlags {
    pub const None: IRCompilerValidationFlags = IRCompilerValidationFlags(0);
}
impl IRCompilerValidationFlags {
    pub const ValidateRawRootResources: IRCompilerValidationFlags = IRCompilerValidationFlags(1);
}
impl IRCompilerValidationFlags {
    pub const ValidateAllResourcesBound: IRCompilerValidationFlags = IRCompilerValidationFlags(2);
}
impl IRCompilerValidationFlags {
    pub const ValidateDXIL: IRCompilerValidationFlags = IRCompilerValidationFlags(4);
}
impl IRCompilerValidationFlags {
    pub const All: IRCompilerValidationFlags = IRCompilerValidationFlags(-1);
}
impl ::std::ops::BitOr<IRCompilerValidationFlags> for IRCompilerValidationFlags {
    type Output = Self;
    #[inline]
    fn bitor(self, other: Self) -> Self {
        IRCompilerValidationFlags(self.0 | other.0)
    }
}
impl ::std::ops::BitOrAssign for IRCompilerValidationFlags {
    #[inline]
    fn bitor_assign(&mut self, rhs: IRCompilerValidationFlags) {
        self.0 |= rhs.0;
    }
}
impl ::std::ops::BitAnd<IRCompilerValidationFlags> for IRCompilerValidationFlags {
    type Output = Self;
    #[inline]
    fn bitand(self, other: Self) -> Self {
        IRCompilerValidationFlags(self.0 & other.0)
    }
}
impl ::std::ops::BitAndAssign for IRCompilerValidationFlags {
    #[inline]
    fn bitand_assign(&mut self, rhs: IRCompilerValidationFlags) {
        self.0 &= rhs.0;
    }
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct IRCompilerValidationFlags(pub ::std::os::raw::c_int);
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRStageInCodeGenerationMode {
    UseMetalVertexFetch = 0,
    UseSeparateStageInFunction = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRDualSourceBlendingConfiguration {
    DecideAtRuntime = 0,
    ForceEnabled = 1,
    ForceDisabled = 2,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRDepthFeedbackConfiguration {
    DecideAtRuntime = 0,
    ForceEnabled = 1,
    ForceDisabled = 2,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRGPUFamily {
    Apple6 = 1006,
    Apple7 = 1007,
    Apple8 = 1008,
    Apple9 = 1009,
    Metal3 = 5001,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IROperatingSystem {
    macOS = 0,
    iOS = 1,
    tvOS = 2,
    iOSSimulator = 3,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = " Function constant types. Values match MTLDataType enum."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRFunctionConstantType {
    Bool = 53,
    Int = 29,
    Float = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRFunctionConstant {
    pub name: *const ::std::os::raw::c_char,
    pub type_: IRFunctionConstantType,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRReflectionVersion {
    _1_0 = 1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRCSInfo_1_0 {
    pub tg_size: [u32; 3usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedCSInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedCSInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedCSInfo_u {
    pub info_1_0: IRCSInfo_1_0,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRVertexInputInfo_1_0 {
    pub name: *const ::std::os::raw::c_char,
    pub attributeIndex: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRVSInfo_1_0 {
    pub instance_id_index: ::std::os::raw::c_int,
    pub vertex_id_index: ::std::os::raw::c_int,
    pub vertex_output_size_in_bytes: u32,
    pub needs_draw_params: bool,
    pub vertex_inputs: *mut IRVertexInputInfo_1_0,
    pub num_vertex_inputs: usize,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedVSInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedVSInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedVSInfo_u {
    pub info_1_0: IRVSInfo_1_0,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRFSInfo_1_0 {
    pub num_render_targets: ::std::os::raw::c_int,
    pub rt_index_int: u8,
    pub discards: bool,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedFSInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedFSInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedFSInfo_u {
    pub info_1_0: IRFSInfo_1_0,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRVertexOutputInfo_1_0 {
    pub name: *const ::std::os::raw::c_char,
    pub attributeIndex: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRGSInfo_1_0 {
    pub vertex_outputs: *mut IRVertexOutputInfo_1_0,
    pub num_vertex_outputs: usize,
    pub is_passthrough: bool,
    pub rt_array_index_record_id: i32,
    pub viewport_array_index_record_id: i32,
    pub input_primitive: IRInputPrimitive,
    pub max_input_primitives_per_mesh_threadgroup: u32,
    pub max_payload_size_in_bytes: u32,
    pub instance_count: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedGSInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedGSInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedGSInfo_u {
    pub info_1_0: IRGSInfo_1_0,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRHSInfo_1_0 {
    pub max_patches_per_object_threadgroup: u32,
    pub max_object_threads_per_patch: u32,
    pub patch_constants_size: u32,
    pub patch_constant_function: *const ::std::os::raw::c_char,
    pub static_payload_size: u32,
    pub payload_size_per_patch: u32,
    pub input_control_point_count: u32,
    pub output_control_point_count: u32,
    pub output_control_point_size: u32,
    pub tessellator_domain: IRTessellatorDomain,
    pub tessellator_partitioning: IRTessellatorPartitioning,
    pub tessellator_output_primitive: IRTessellatorOutputPrimitive,
    pub tessellation_type_half: bool,
    pub max_tessellation_factor: f32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedHSInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedHSInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedHSInfo_u {
    pub info_1_0: IRHSInfo_1_0,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRDSInfo_1_0 {
    pub tessellator_domain: IRTessellatorDomain,
    pub max_input_prims_per_mesh_threadgroup: u32,
    pub input_control_point_count: u32,
    pub input_control_point_size: u32,
    pub patch_constants_size: u32,
    pub tessellation_type_half: bool,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedDSInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedDSInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedDSInfo_u {
    pub info_1_0: IRDSInfo_1_0,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum IRMeshShaderPrimitiveTopology {
    Point = 0,
    Line = 1,
    Triangle = 2,
    Undefined = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRMSInfo_1_0 {
    pub max_vertex_output_count: u32,
    pub max_primitive_output_count: u32,
    pub primitive_topology: IRMeshShaderPrimitiveTopology,
    pub max_payload_size_in_bytes: u32,
    pub num_threads: [u32; 3usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedMSInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedMSInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedMSInfo_u {
    pub info_1_0: IRMSInfo_1_0,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRASInfo_1_0 {
    pub num_threads: [u32; 3usize],
    pub max_payload_size_in_bytes: u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedASInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedASInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedASInfo_u {
    pub info_1_0: IRASInfo_1_0,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRRTInfo_1_0 {
    pub is_indirect_intersection_function: bool,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct IRVersionedRTInfo {
    pub version: IRReflectionVersion,
    pub u_1: IRVersionedRTInfo_u,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IRVersionedRTInfo_u {
    pub info_1_0: IRRTInfo_1_0,
}
#[doc = " Represents a shader resource location from reflection data."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IRResourceLocation {
    #[doc = "< Resource type."]
    pub resourceType: IRResourceType,
    #[doc = "< DXIL space of this resource."]
    pub space: u32,
    #[doc = "< DXIL slot of this resource."]
    pub slot: u32,
    #[doc = "< Offset in bytes into the top-level argument buffer."]
    pub topLevelOffset: u32,
    #[doc = "< Size of the entry in the argument buffer in bytes."]
    pub sizeBytes: u64,
    #[doc = "< Name of the resource. String is non-owned and points into the parent reflection object. May be NULL."]
    pub resourceName: *const ::std::os::raw::c_char,
}
pub struct metal_irconverter {
    __library: ::libloading::Library,
    pub IRErrorGetCode: unsafe extern "C" fn(error: *const IRError) -> u32,
    pub IRErrorGetPayload:
        unsafe extern "C" fn(error: *const IRError) -> *const ::std::os::raw::c_void,
    pub IRErrorDestroy: unsafe extern "C" fn(error: *mut IRError),
    pub IRRootSignatureCreateFromDescriptor: unsafe extern "C" fn(
        descriptor: *const IRVersionedRootSignatureDescriptor,
        error: *mut *mut IRError,
    ) -> *mut IRRootSignature,
    pub IRRootSignatureDestroy: unsafe extern "C" fn(sig: *mut IRRootSignature),
    pub IRObjectCreateFromDXIL: unsafe extern "C" fn(
        bytecode: *const u8,
        size: usize,
        bytecodeOwnership: IRBytecodeOwnership,
    ) -> *mut IRObject,
    pub IRObjectDestroy: unsafe extern "C" fn(object: *mut IRObject),
    pub IRObjectGetType: unsafe extern "C" fn(object: *const IRObject) -> IRObjectType,
    pub IRObjectGetMetalIRShaderStage:
        unsafe extern "C" fn(object: *const IRObject) -> IRShaderStage,
    pub IRCompilerSetValidationFlags:
        unsafe extern "C" fn(compiler: *mut IRCompiler, validationFlags: IRCompilerValidationFlags),
    pub IRCompilerCreate: unsafe extern "C" fn() -> *mut IRCompiler,
    pub IRCompilerDestroy: unsafe extern "C" fn(compiler: *mut IRCompiler),
    pub IRCompilerAllocCompileAndLink: unsafe extern "C" fn(
        compiler: *mut IRCompiler,
        entryPointName: *const ::std::os::raw::c_char,
        input: *const IRObject,
        error: *mut *mut IRError,
    ) -> *mut IRObject,
    pub IRCompilerAllocCombineCompileAndLink: unsafe extern "C" fn(
        compiler: *mut IRCompiler,
        intersectionFunctionEntryPointName: *const ::std::os::raw::c_char,
        intersectionFunctionBytecode: *const IRObject,
        anyHitFunctionEntryPointName: *const ::std::os::raw::c_char,
        anyHitFunctionBytecode: *const IRObject,
        error: *mut *mut IRError,
    ) -> *mut IRObject,
    pub IRObjectGetMetalLibBinary: unsafe extern "C" fn(
        obj: *const IRObject,
        stage: IRShaderStage,
        lib: *mut IRMetalLibBinary,
    ) -> bool,
    pub IRCompilerSetStageInGenerationMode: unsafe extern "C" fn(
        compiler: *mut IRCompiler,
        stageInCodeGenerationMode: IRStageInCodeGenerationMode,
    ),
    pub IRMetalLibSynthesizeStageInFunction: unsafe extern "C" fn(
        compiler: *const IRCompiler,
        vertexShaderReflection: *const IRShaderReflection,
        layout: *const IRVersionedInputLayoutDescriptor,
        binary: *mut IRMetalLibBinary,
    ) -> bool,
    pub IRObjectGetReflection: unsafe extern "C" fn(
        obj: *const IRObject,
        stage: IRShaderStage,
        reflection: *mut IRShaderReflection,
    ) -> bool,
    pub IRCompilerSetGlobalRootSignature:
        unsafe extern "C" fn(compiler: *mut IRCompiler, rootSignature: *const IRRootSignature),
    pub IRCompilerSetLocalRootSignature:
        unsafe extern "C" fn(compiler: *mut IRCompiler, rootSignature: *const IRRootSignature),
    pub IRCompilerSetHitgroupType:
        unsafe extern "C" fn(compiler: *mut IRCompiler, hitGroupType: IRHitGroupType),
    pub IRObjectGatherRaytracingIntrinsics: unsafe extern "C" fn(
        input: *mut IRObject,
        entryPoint: *const ::std::os::raw::c_char,
    ) -> u64,
    pub IRCompilerSetRayTracingPipelineArguments: unsafe extern "C" fn(
        compiler: *mut IRCompiler,
        maxAttributeSizeInBytes: u32,
        raytracingPipelineFlags: IRRaytracingPipelineFlags,
        chs: u64,
        miss: u64,
        anyHit: u64,
        callableArgs: u64,
        maxRecursiveDepth: ::std::os::raw::c_int,
        rayGenerationCompilationMode: IRRayGenerationCompilationMode,
        intersectionFunctionCompilationMode: IRIntersectionFunctionCompilationMode,
    ),
    pub IRCompilerSetCompatibilityFlags:
        unsafe extern "C" fn(compiler: *mut IRCompiler, flags: IRCompatibilityFlags),
    pub IRCompilerSetInputTopology:
        unsafe extern "C" fn(compiler: *mut IRCompiler, inputTopology: IRInputTopology),
    pub IRCompilerEnableGeometryAndTessellationEmulation:
        unsafe extern "C" fn(compiler: *mut IRCompiler, enable: bool),
    pub IRCompilerSetDualSourceBlendingConfiguration: unsafe extern "C" fn(
        compiler: *mut IRCompiler,
        configuration: IRDualSourceBlendingConfiguration,
    ),
    pub IRCompilerSetDepthFeedbackConfiguration: unsafe extern "C" fn(
        compiler: *mut IRCompiler,
        configuration: IRDepthFeedbackConfiguration,
    ),
    pub IRCompilerSetIntRTMask: unsafe extern "C" fn(compiler: *mut IRCompiler, intRTMask: u8),
    pub IRMetalLibSynthesizeIndirectRayDispatchFunction:
        unsafe extern "C" fn(compiler: *const IRCompiler, binary: *mut IRMetalLibBinary) -> bool,
    pub IRMetalLibSynthesizeIndirectIntersectionFunction:
        unsafe extern "C" fn(compiler: *const IRCompiler, binary: *mut IRMetalLibBinary) -> bool,
    pub IRCompilerSetEntryPointName:
        unsafe extern "C" fn(compiler: *mut IRCompiler, newName: *const ::std::os::raw::c_char),
    pub IRCompilerSetMinimumGPUFamily:
        unsafe extern "C" fn(compiler: *mut IRCompiler, family: IRGPUFamily),
    pub IRCompilerIgnoreRootSignature:
        unsafe extern "C" fn(compiler: *mut IRCompiler, ignoreEmbeddedRootSignature: bool),
    pub IRCompilerIgnoreDebugInformation:
        unsafe extern "C" fn(compiler: *mut IRCompiler, ignoreDebugInformation: bool),
    pub IRCompilerSetMinimumDeploymentTarget: unsafe extern "C" fn(
        compiler: *mut IRCompiler,
        operatingSystem: IROperatingSystem,
        version: *const ::std::os::raw::c_char,
    ),
    pub IRMetalLibBinaryCreate: unsafe extern "C" fn() -> *mut IRMetalLibBinary,
    pub IRMetalLibBinaryDestroy: unsafe extern "C" fn(lib: *mut IRMetalLibBinary),
    pub IRMetalLibGetBytecode:
        unsafe extern "C" fn(lib: *const IRMetalLibBinary, outBytecode: *mut u8) -> usize,
    pub IRMetalLibGetBytecodeSize: unsafe extern "C" fn(lib: *const IRMetalLibBinary) -> usize,
    pub IRObjectSerialize: unsafe extern "C" fn(
        outputPath: *const ::std::os::raw::c_char,
        obj: *const IRObject,
        stage: IRShaderStage,
    ) -> bool,
    pub IRShaderReflectionCreate: unsafe extern "C" fn() -> *mut IRShaderReflection,
    pub IRShaderReflectionDestroy: unsafe extern "C" fn(reflection: *mut IRShaderReflection),
    pub IRShaderReflectionGetEntryPointFunctionName:
        unsafe extern "C" fn(
            reflection: *const IRShaderReflection,
        ) -> *const ::std::os::raw::c_char,
    pub IRShaderReflectionNeedsFunctionConstants:
        unsafe extern "C" fn(reflection: *const IRShaderReflection) -> bool,
    pub IRShaderReflectionGetFunctionConstantCount:
        unsafe extern "C" fn(reflection: *const IRShaderReflection) -> usize,
    pub IRShaderReflectionCopyFunctionConstants: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        functionConstants: *mut IRFunctionConstant,
    ),
    pub IRShaderReflectionReleaseFunctionConstants: unsafe extern "C" fn(
        functionConstants: *mut IRFunctionConstant,
        functionConstantCount: usize,
    ),
    pub IRShaderReflectionCopyComputeInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        csinfo: *mut IRVersionedCSInfo,
    ) -> bool,
    pub IRShaderReflectionCopyVertexInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        vsinfo: *mut IRVersionedVSInfo,
    ) -> bool,
    pub IRShaderReflectionCopyFragmentInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        fsinfo: *mut IRVersionedFSInfo,
    ) -> bool,
    pub IRShaderReflectionCopyGeometryInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        gsinfo: *mut IRVersionedGSInfo,
    ) -> bool,
    pub IRShaderReflectionCopyHullInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        hsinfo: *mut IRVersionedHSInfo,
    ) -> bool,
    pub IRShaderReflectionCopyDomainInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        dsinfo: *mut IRVersionedDSInfo,
    ) -> bool,
    pub IRShaderReflectionCopyMeshInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        msinfo: *mut IRVersionedMSInfo,
    ) -> bool,
    pub IRShaderReflectionCopyAmplificationInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        asinfo: *mut IRVersionedASInfo,
    ) -> bool,
    pub IRShaderReflectionCopyRaytracingInfo: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        rtinfo: *mut IRVersionedRTInfo,
    ) -> bool,
    pub IRShaderReflectionReleaseComputeInfo:
        unsafe extern "C" fn(csinfo: *mut IRVersionedCSInfo) -> bool,
    pub IRShaderReflectionReleaseVertexInfo:
        unsafe extern "C" fn(vsinfo: *mut IRVersionedVSInfo) -> bool,
    pub IRShaderReflectionReleaseFragmentInfo:
        unsafe extern "C" fn(fsinfo: *mut IRVersionedFSInfo) -> bool,
    pub IRShaderReflectionReleaseGeometryInfo:
        unsafe extern "C" fn(gsinfo: *mut IRVersionedGSInfo) -> bool,
    pub IRShaderReflectionReleaseHullInfo:
        unsafe extern "C" fn(hsinfo: *mut IRVersionedHSInfo) -> bool,
    pub IRShaderReflectionReleaseDomainInfo:
        unsafe extern "C" fn(dsinfo: *mut IRVersionedDSInfo) -> bool,
    pub IRShaderReflectionReleaseMeshInfo:
        unsafe extern "C" fn(msinfo: *mut IRVersionedMSInfo) -> bool,
    pub IRShaderReflectionReleaseAmplificationInfo:
        unsafe extern "C" fn(asinfo: *mut IRVersionedASInfo) -> bool,
    pub IRShaderReflectionReleaseRaytracingInfo:
        unsafe extern "C" fn(rtinfo: *mut IRVersionedRTInfo) -> bool,
    pub IRShaderReflectionGetResourceCount:
        unsafe extern "C" fn(reflection: *const IRShaderReflection) -> usize,
    pub IRShaderReflectionGetResourceLocations: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
        resourceLocations: *mut IRResourceLocation,
    ),
    pub IRRootSignatureGetResourceCount:
        unsafe extern "C" fn(rootSignature: *const IRRootSignature) -> usize,
    pub IRRootSignatureGetResourceLocations: unsafe extern "C" fn(
        rootSignature: *const IRRootSignature,
        resourceLocations: *mut IRResourceLocation,
    ),
    pub IRShaderReflectionAllocStringAndSerialize:
        unsafe extern "C" fn(reflection: *mut IRShaderReflection) -> *const ::std::os::raw::c_char,
    pub IRShaderReflectionCopyJSONString: unsafe extern "C" fn(
        reflection: *const IRShaderReflection,
    )
        -> *const ::std::os::raw::c_char,
    pub IRShaderReflectionFreeString:
        unsafe extern "C" fn(serialized: *const ::std::os::raw::c_char),
    pub IRShaderReflectionReleaseString:
        unsafe extern "C" fn(serialized: *const ::std::os::raw::c_char),
    pub IRShaderReflectionDeserialize: unsafe extern "C" fn(
        blob: *const ::std::os::raw::c_char,
        reflection: *mut IRShaderReflection,
    ),
    pub IRShaderReflectionCreateFromJSON:
        unsafe extern "C" fn(json: *const ::std::os::raw::c_char) -> *mut IRShaderReflection,
    pub IRVersionedRootSignatureDescriptorAllocStringAndSerialize:
        unsafe extern "C" fn(
            rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor,
        ) -> *const ::std::os::raw::c_char,
    pub IRVersionedRootSignatureDescriptorCopyJSONString:
        unsafe extern "C" fn(
            rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor,
        ) -> *const ::std::os::raw::c_char,
    pub IRVersionedRootSignatureDescriptorFreeString:
        unsafe extern "C" fn(serialized: *const ::std::os::raw::c_char),
    pub IRVersionedRootSignatureDescriptorReleaseString:
        unsafe extern "C" fn(serialized: *const ::std::os::raw::c_char),
    pub IRVersionedRootSignatureDescriptorDeserialize: unsafe extern "C" fn(
        serialized: *const ::std::os::raw::c_char,
        rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor,
    ) -> bool,
    pub IRVersionedRootSignatureDescriptorCreateFromJSON:
        unsafe extern "C" fn(
            serialized: *const ::std::os::raw::c_char,
        ) -> *mut IRVersionedRootSignatureDescriptor,
    pub IRVersionedRootSignatureDescriptorRelease:
        unsafe extern "C" fn(rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor),
    pub IRInputLayoutDescriptor1CopyJSONString:
        unsafe extern "C" fn(
            inputLayoutDescriptor: *mut IRInputLayoutDescriptor1,
        ) -> *const ::std::os::raw::c_char,
    pub IRInputLayoutDescriptor1ReleaseString:
        unsafe extern "C" fn(serialized: *const ::std::os::raw::c_char),
    pub IRInputLayoutDescriptor1CreateFromJSON:
        unsafe extern "C" fn(
            serialized: *const ::std::os::raw::c_char,
        ) -> *mut IRInputLayoutDescriptor1,
    pub IRInputLayoutDescriptor1Release:
        unsafe extern "C" fn(inputLayoutDescriptor: *mut IRInputLayoutDescriptor1),
}
impl metal_irconverter {
    pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
    where
        P: AsRef<::std::ffi::OsStr>,
    {
        let library = ::libloading::Library::new(path)?;
        Self::from_library(library)
    }
    pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
    where
        L: Into<::libloading::Library>,
    {
        let __library = library.into();
        let IRErrorGetCode = __library.get(b"IRErrorGetCode\0").map(|sym| *sym)?;
        let IRErrorGetPayload = __library.get(b"IRErrorGetPayload\0").map(|sym| *sym)?;
        let IRErrorDestroy = __library.get(b"IRErrorDestroy\0").map(|sym| *sym)?;
        let IRRootSignatureCreateFromDescriptor = __library
            .get(b"IRRootSignatureCreateFromDescriptor\0")
            .map(|sym| *sym)?;
        let IRRootSignatureDestroy = __library.get(b"IRRootSignatureDestroy\0").map(|sym| *sym)?;
        let IRObjectCreateFromDXIL = __library.get(b"IRObjectCreateFromDXIL\0").map(|sym| *sym)?;
        let IRObjectDestroy = __library.get(b"IRObjectDestroy\0").map(|sym| *sym)?;
        let IRObjectGetType = __library.get(b"IRObjectGetType\0").map(|sym| *sym)?;
        let IRObjectGetMetalIRShaderStage = __library
            .get(b"IRObjectGetMetalIRShaderStage\0")
            .map(|sym| *sym)?;
        let IRCompilerSetValidationFlags = __library
            .get(b"IRCompilerSetValidationFlags\0")
            .map(|sym| *sym)?;
        let IRCompilerCreate = __library.get(b"IRCompilerCreate\0").map(|sym| *sym)?;
        let IRCompilerDestroy = __library.get(b"IRCompilerDestroy\0").map(|sym| *sym)?;
        let IRCompilerAllocCompileAndLink = __library
            .get(b"IRCompilerAllocCompileAndLink\0")
            .map(|sym| *sym)?;
        let IRCompilerAllocCombineCompileAndLink = __library
            .get(b"IRCompilerAllocCombineCompileAndLink\0")
            .map(|sym| *sym)?;
        let IRObjectGetMetalLibBinary = __library
            .get(b"IRObjectGetMetalLibBinary\0")
            .map(|sym| *sym)?;
        let IRCompilerSetStageInGenerationMode = __library
            .get(b"IRCompilerSetStageInGenerationMode\0")
            .map(|sym| *sym)?;
        let IRMetalLibSynthesizeStageInFunction = __library
            .get(b"IRMetalLibSynthesizeStageInFunction\0")
            .map(|sym| *sym)?;
        let IRObjectGetReflection = __library.get(b"IRObjectGetReflection\0").map(|sym| *sym)?;
        let IRCompilerSetGlobalRootSignature = __library
            .get(b"IRCompilerSetGlobalRootSignature\0")
            .map(|sym| *sym)?;
        let IRCompilerSetLocalRootSignature = __library
            .get(b"IRCompilerSetLocalRootSignature\0")
            .map(|sym| *sym)?;
        let IRCompilerSetHitgroupType = __library
            .get(b"IRCompilerSetHitgroupType\0")
            .map(|sym| *sym)?;
        let IRObjectGatherRaytracingIntrinsics = __library
            .get(b"IRObjectGatherRaytracingIntrinsics\0")
            .map(|sym| *sym)?;
        let IRCompilerSetRayTracingPipelineArguments = __library
            .get(b"IRCompilerSetRayTracingPipelineArguments\0")
            .map(|sym| *sym)?;
        let IRCompilerSetCompatibilityFlags = __library
            .get(b"IRCompilerSetCompatibilityFlags\0")
            .map(|sym| *sym)?;
        let IRCompilerSetInputTopology = __library
            .get(b"IRCompilerSetInputTopology\0")
            .map(|sym| *sym)?;
        let IRCompilerEnableGeometryAndTessellationEmulation = __library
            .get(b"IRCompilerEnableGeometryAndTessellationEmulation\0")
            .map(|sym| *sym)?;
        let IRCompilerSetDualSourceBlendingConfiguration = __library
            .get(b"IRCompilerSetDualSourceBlendingConfiguration\0")
            .map(|sym| *sym)?;
        let IRCompilerSetDepthFeedbackConfiguration = __library
            .get(b"IRCompilerSetDepthFeedbackConfiguration\0")
            .map(|sym| *sym)?;
        let IRCompilerSetIntRTMask = __library.get(b"IRCompilerSetIntRTMask\0").map(|sym| *sym)?;
        let IRMetalLibSynthesizeIndirectRayDispatchFunction = __library
            .get(b"IRMetalLibSynthesizeIndirectRayDispatchFunction\0")
            .map(|sym| *sym)?;
        let IRMetalLibSynthesizeIndirectIntersectionFunction = __library
            .get(b"IRMetalLibSynthesizeIndirectIntersectionFunction\0")
            .map(|sym| *sym)?;
        let IRCompilerSetEntryPointName = __library
            .get(b"IRCompilerSetEntryPointName\0")
            .map(|sym| *sym)?;
        let IRCompilerSetMinimumGPUFamily = __library
            .get(b"IRCompilerSetMinimumGPUFamily\0")
            .map(|sym| *sym)?;
        let IRCompilerIgnoreRootSignature = __library
            .get(b"IRCompilerIgnoreRootSignature\0")
            .map(|sym| *sym)?;
        let IRCompilerIgnoreDebugInformation = __library
            .get(b"IRCompilerIgnoreDebugInformation\0")
            .map(|sym| *sym)?;
        let IRCompilerSetMinimumDeploymentTarget = __library
            .get(b"IRCompilerSetMinimumDeploymentTarget\0")
            .map(|sym| *sym)?;
        let IRMetalLibBinaryCreate = __library.get(b"IRMetalLibBinaryCreate\0").map(|sym| *sym)?;
        let IRMetalLibBinaryDestroy = __library
            .get(b"IRMetalLibBinaryDestroy\0")
            .map(|sym| *sym)?;
        let IRMetalLibGetBytecode = __library.get(b"IRMetalLibGetBytecode\0").map(|sym| *sym)?;
        let IRMetalLibGetBytecodeSize = __library
            .get(b"IRMetalLibGetBytecodeSize\0")
            .map(|sym| *sym)?;
        let IRObjectSerialize = __library.get(b"IRObjectSerialize\0").map(|sym| *sym)?;
        let IRShaderReflectionCreate = __library
            .get(b"IRShaderReflectionCreate\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionDestroy = __library
            .get(b"IRShaderReflectionDestroy\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionGetEntryPointFunctionName = __library
            .get(b"IRShaderReflectionGetEntryPointFunctionName\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionNeedsFunctionConstants = __library
            .get(b"IRShaderReflectionNeedsFunctionConstants\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionGetFunctionConstantCount = __library
            .get(b"IRShaderReflectionGetFunctionConstantCount\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyFunctionConstants = __library
            .get(b"IRShaderReflectionCopyFunctionConstants\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseFunctionConstants = __library
            .get(b"IRShaderReflectionReleaseFunctionConstants\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyComputeInfo = __library
            .get(b"IRShaderReflectionCopyComputeInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyVertexInfo = __library
            .get(b"IRShaderReflectionCopyVertexInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyFragmentInfo = __library
            .get(b"IRShaderReflectionCopyFragmentInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyGeometryInfo = __library
            .get(b"IRShaderReflectionCopyGeometryInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyHullInfo = __library
            .get(b"IRShaderReflectionCopyHullInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyDomainInfo = __library
            .get(b"IRShaderReflectionCopyDomainInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyMeshInfo = __library
            .get(b"IRShaderReflectionCopyMeshInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyAmplificationInfo = __library
            .get(b"IRShaderReflectionCopyAmplificationInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyRaytracingInfo = __library
            .get(b"IRShaderReflectionCopyRaytracingInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseComputeInfo = __library
            .get(b"IRShaderReflectionReleaseComputeInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseVertexInfo = __library
            .get(b"IRShaderReflectionReleaseVertexInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseFragmentInfo = __library
            .get(b"IRShaderReflectionReleaseFragmentInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseGeometryInfo = __library
            .get(b"IRShaderReflectionReleaseGeometryInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseHullInfo = __library
            .get(b"IRShaderReflectionReleaseHullInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseDomainInfo = __library
            .get(b"IRShaderReflectionReleaseDomainInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseMeshInfo = __library
            .get(b"IRShaderReflectionReleaseMeshInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseAmplificationInfo = __library
            .get(b"IRShaderReflectionReleaseAmplificationInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseRaytracingInfo = __library
            .get(b"IRShaderReflectionReleaseRaytracingInfo\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionGetResourceCount = __library
            .get(b"IRShaderReflectionGetResourceCount\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionGetResourceLocations = __library
            .get(b"IRShaderReflectionGetResourceLocations\0")
            .map(|sym| *sym)?;
        let IRRootSignatureGetResourceCount = __library
            .get(b"IRRootSignatureGetResourceCount\0")
            .map(|sym| *sym)?;
        let IRRootSignatureGetResourceLocations = __library
            .get(b"IRRootSignatureGetResourceLocations\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionAllocStringAndSerialize = __library
            .get(b"IRShaderReflectionAllocStringAndSerialize\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCopyJSONString = __library
            .get(b"IRShaderReflectionCopyJSONString\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionFreeString = __library
            .get(b"IRShaderReflectionFreeString\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionReleaseString = __library
            .get(b"IRShaderReflectionReleaseString\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionDeserialize = __library
            .get(b"IRShaderReflectionDeserialize\0")
            .map(|sym| *sym)?;
        let IRShaderReflectionCreateFromJSON = __library
            .get(b"IRShaderReflectionCreateFromJSON\0")
            .map(|sym| *sym)?;
        let IRVersionedRootSignatureDescriptorAllocStringAndSerialize = __library
            .get(b"IRVersionedRootSignatureDescriptorAllocStringAndSerialize\0")
            .map(|sym| *sym)?;
        let IRVersionedRootSignatureDescriptorCopyJSONString = __library
            .get(b"IRVersionedRootSignatureDescriptorCopyJSONString\0")
            .map(|sym| *sym)?;
        let IRVersionedRootSignatureDescriptorFreeString = __library
            .get(b"IRVersionedRootSignatureDescriptorFreeString\0")
            .map(|sym| *sym)?;
        let IRVersionedRootSignatureDescriptorReleaseString = __library
            .get(b"IRVersionedRootSignatureDescriptorReleaseString\0")
            .map(|sym| *sym)?;
        let IRVersionedRootSignatureDescriptorDeserialize = __library
            .get(b"IRVersionedRootSignatureDescriptorDeserialize\0")
            .map(|sym| *sym)?;
        let IRVersionedRootSignatureDescriptorCreateFromJSON = __library
            .get(b"IRVersionedRootSignatureDescriptorCreateFromJSON\0")
            .map(|sym| *sym)?;
        let IRVersionedRootSignatureDescriptorRelease = __library
            .get(b"IRVersionedRootSignatureDescriptorRelease\0")
            .map(|sym| *sym)?;
        let IRInputLayoutDescriptor1CopyJSONString = __library
            .get(b"IRInputLayoutDescriptor1CopyJSONString\0")
            .map(|sym| *sym)?;
        let IRInputLayoutDescriptor1ReleaseString = __library
            .get(b"IRInputLayoutDescriptor1ReleaseString\0")
            .map(|sym| *sym)?;
        let IRInputLayoutDescriptor1CreateFromJSON = __library
            .get(b"IRInputLayoutDescriptor1CreateFromJSON\0")
            .map(|sym| *sym)?;
        let IRInputLayoutDescriptor1Release = __library
            .get(b"IRInputLayoutDescriptor1Release\0")
            .map(|sym| *sym)?;
        Ok(metal_irconverter {
            __library,
            IRErrorGetCode,
            IRErrorGetPayload,
            IRErrorDestroy,
            IRRootSignatureCreateFromDescriptor,
            IRRootSignatureDestroy,
            IRObjectCreateFromDXIL,
            IRObjectDestroy,
            IRObjectGetType,
            IRObjectGetMetalIRShaderStage,
            IRCompilerSetValidationFlags,
            IRCompilerCreate,
            IRCompilerDestroy,
            IRCompilerAllocCompileAndLink,
            IRCompilerAllocCombineCompileAndLink,
            IRObjectGetMetalLibBinary,
            IRCompilerSetStageInGenerationMode,
            IRMetalLibSynthesizeStageInFunction,
            IRObjectGetReflection,
            IRCompilerSetGlobalRootSignature,
            IRCompilerSetLocalRootSignature,
            IRCompilerSetHitgroupType,
            IRObjectGatherRaytracingIntrinsics,
            IRCompilerSetRayTracingPipelineArguments,
            IRCompilerSetCompatibilityFlags,
            IRCompilerSetInputTopology,
            IRCompilerEnableGeometryAndTessellationEmulation,
            IRCompilerSetDualSourceBlendingConfiguration,
            IRCompilerSetDepthFeedbackConfiguration,
            IRCompilerSetIntRTMask,
            IRMetalLibSynthesizeIndirectRayDispatchFunction,
            IRMetalLibSynthesizeIndirectIntersectionFunction,
            IRCompilerSetEntryPointName,
            IRCompilerSetMinimumGPUFamily,
            IRCompilerIgnoreRootSignature,
            IRCompilerIgnoreDebugInformation,
            IRCompilerSetMinimumDeploymentTarget,
            IRMetalLibBinaryCreate,
            IRMetalLibBinaryDestroy,
            IRMetalLibGetBytecode,
            IRMetalLibGetBytecodeSize,
            IRObjectSerialize,
            IRShaderReflectionCreate,
            IRShaderReflectionDestroy,
            IRShaderReflectionGetEntryPointFunctionName,
            IRShaderReflectionNeedsFunctionConstants,
            IRShaderReflectionGetFunctionConstantCount,
            IRShaderReflectionCopyFunctionConstants,
            IRShaderReflectionReleaseFunctionConstants,
            IRShaderReflectionCopyComputeInfo,
            IRShaderReflectionCopyVertexInfo,
            IRShaderReflectionCopyFragmentInfo,
            IRShaderReflectionCopyGeometryInfo,
            IRShaderReflectionCopyHullInfo,
            IRShaderReflectionCopyDomainInfo,
            IRShaderReflectionCopyMeshInfo,
            IRShaderReflectionCopyAmplificationInfo,
            IRShaderReflectionCopyRaytracingInfo,
            IRShaderReflectionReleaseComputeInfo,
            IRShaderReflectionReleaseVertexInfo,
            IRShaderReflectionReleaseFragmentInfo,
            IRShaderReflectionReleaseGeometryInfo,
            IRShaderReflectionReleaseHullInfo,
            IRShaderReflectionReleaseDomainInfo,
            IRShaderReflectionReleaseMeshInfo,
            IRShaderReflectionReleaseAmplificationInfo,
            IRShaderReflectionReleaseRaytracingInfo,
            IRShaderReflectionGetResourceCount,
            IRShaderReflectionGetResourceLocations,
            IRRootSignatureGetResourceCount,
            IRRootSignatureGetResourceLocations,
            IRShaderReflectionAllocStringAndSerialize,
            IRShaderReflectionCopyJSONString,
            IRShaderReflectionFreeString,
            IRShaderReflectionReleaseString,
            IRShaderReflectionDeserialize,
            IRShaderReflectionCreateFromJSON,
            IRVersionedRootSignatureDescriptorAllocStringAndSerialize,
            IRVersionedRootSignatureDescriptorCopyJSONString,
            IRVersionedRootSignatureDescriptorFreeString,
            IRVersionedRootSignatureDescriptorReleaseString,
            IRVersionedRootSignatureDescriptorDeserialize,
            IRVersionedRootSignatureDescriptorCreateFromJSON,
            IRVersionedRootSignatureDescriptorRelease,
            IRInputLayoutDescriptor1CopyJSONString,
            IRInputLayoutDescriptor1ReleaseString,
            IRInputLayoutDescriptor1CreateFromJSON,
            IRInputLayoutDescriptor1Release,
        })
    }
    #[doc = " Obtain the error code of an error.\n @param error error object to query.\n @return error code."]
    pub unsafe fn IRErrorGetCode(&self, error: *const IRError) -> u32 {
        (self.IRErrorGetCode)(error)
    }
    #[doc = " Obtain any payload associated with an error.\n @param error error object to query.\n @return error payload. You must cast this pointer to the appropriate error payload struct for the error code."]
    pub unsafe fn IRErrorGetPayload(&self, error: *const IRError) -> *const ::std::os::raw::c_void {
        (self.IRErrorGetPayload)(error)
    }
    #[doc = " Release resources associated with an error object.\n @param error error objects for which to release its associated resources."]
    pub unsafe fn IRErrorDestroy(&self, error: *mut IRError) {
        (self.IRErrorDestroy)(error)
    }
    #[doc = " Create a new root signature from its descriptor.\n @param descriptor description of the root signature to create.\n @param error on return, if the compiler generates any errors, this optional out parameter contains error information. If an error occurs and this parameter is non-NULL, you must free it by calling IRErrorDestroy.\n @return a new root signature suitable for configuring the top-level argument buffer layout of the produced MetalIR, or NULL upon encountering an error. You must destroy this object by calling IRRootSignatureDestroy."]
    pub unsafe fn IRRootSignatureCreateFromDescriptor(
        &self,
        descriptor: *const IRVersionedRootSignatureDescriptor,
        error: *mut *mut IRError,
    ) -> *mut IRRootSignature {
        (self.IRRootSignatureCreateFromDescriptor)(descriptor, error)
    }
    #[doc = " Destroy a root signature object.\n @param sig root signature object to destroy."]
    pub unsafe fn IRRootSignatureDestroy(&self, sig: *mut IRRootSignature) {
        (self.IRRootSignatureDestroy)(sig)
    }
    #[doc = " Create a DXIL object from DXIL bytecode.\n @param bytecode bytecode representing legal DXIL. When using IRBytecodeOwnershipNone, you must ensure this buffer is not freed while the returned object is in use.\n @param size size of the bytecode in bytes.\n @param bytecodeOwnership determine whether the IRObject shall copy the bytecode or just hold a weak reference.\n @return a new DXIL object representing the DXIL shader. You must destroy this object by calling IRObjectDestroy."]
    pub unsafe fn IRObjectCreateFromDXIL(
        &self,
        bytecode: *const u8,
        size: usize,
        bytecodeOwnership: IRBytecodeOwnership,
    ) -> *mut IRObject {
        (self.IRObjectCreateFromDXIL)(bytecode, size, bytecodeOwnership)
    }
    #[doc = " Destroy a IRObject.\n @param object IRObject to destroy."]
    pub unsafe fn IRObjectDestroy(&self, object: *mut IRObject) {
        (self.IRObjectDestroy)(object)
    }
    #[doc = " Query a IRObject's type.\n @param object IRObject to query.\n @return IRObjectTypeDXILBytecode if the object represents DXIL bytecode, IRObjectTypeMetalIRObject if the object represents MetalIR bytecode."]
    pub unsafe fn IRObjectGetType(&self, object: *const IRObject) -> IRObjectType {
        (self.IRObjectGetType)(object)
    }
    #[doc = " Query the shader stage of this IRObject.\n @param object IRObject to query.\n @return the shader stage of this IRObject."]
    pub unsafe fn IRObjectGetMetalIRShaderStage(&self, object: *const IRObject) -> IRShaderStage {
        (self.IRObjectGetMetalIRShaderStage)(object)
    }
    #[doc = " Set a compiler's compile-time validation flags.\n @param compiler compiler for which to set the flags.\n @param validationFlags validation flags denoting the checks the compiler performs."]
    pub unsafe fn IRCompilerSetValidationFlags(
        &self,
        compiler: *mut IRCompiler,
        validationFlags: IRCompilerValidationFlags,
    ) {
        (self.IRCompilerSetValidationFlags)(compiler, validationFlags)
    }
    #[doc = " Create a new compiler instance.\n @return a new compiler instance. You must destroy this object by calling IRCompilerDestroy."]
    pub unsafe fn IRCompilerCreate(&self) -> *mut IRCompiler {
        (self.IRCompilerCreate)()
    }
    #[doc = " Destroy a compiler instance.\n @param compiler compiler to destroy."]
    pub unsafe fn IRCompilerDestroy(&self, compiler: *mut IRCompiler) {
        (self.IRCompilerDestroy)(compiler)
    }
    #[doc = " Allocate a new object and populate it with the results of compiling and linking IR bytecode.\n @note Prior calls to `IRCompilerSetHitgroupType`, `IRCompilerSetRayTracingPipelineArguments`, `IRCompilerSetGlobalRootSignature`, `IRCompilerSetLocalRootSignature` influence the bytecode this function produces.\n @note you need to call `IRCompilerSetRayTracingPipelineArguments` before compiling ray tracing shaders.\n @param compiler compiler to use for the translation process.\n @param entryPointName optional entry point name to compile when converting a library with multiple entry points.\n @param input input IR object.\n @param error on return, if the compiler generates any errors, this optional out parameter contains error information. If an error occurs and this parameter is non-NULL, you must free it by calling IRErrorDestroy.\n @return an IR Object containing MetalIR compiled and linked from the input IR, or NULL if an error occurs. You must destroy this object by calling IRObjectDestroy."]
    pub unsafe fn IRCompilerAllocCompileAndLink(
        &self,
        compiler: *mut IRCompiler,
        entryPointName: *const ::std::os::raw::c_char,
        input: *const IRObject,
        error: *mut *mut IRError,
    ) -> *mut IRObject {
        (self.IRCompilerAllocCompileAndLink)(compiler, entryPointName, input, error)
    }
    #[doc = " Allocate a new object and populate with the results of combining, compiling, and linking IR bytecode of an intersection and an any-hit function.\n This function allows representing the interactions between intersection and any-hit shaders on Metal, where these functions are fused together.\n @warning Ensure you call `IRCompilerSetHitgroupType` prior to this function to specify the intersection type.\n @note One of parameters `intersectionFunctionBytecode` and `anyHitFunctionBytecode` needs to be non-NULL.\n @note If both parameters are non-NULL, this function uses the `anyHitfunctionBytecode` the latter references.\n @note Prior calls to `IRCompilerSetHitgroupType`, `IRCompilerSetRayTracingPipelineArguments`, `IRCompilerSetGlobalRootSignature`, `IRCompilerSetLocalRootSignature` influence the bytecode this function produces.\n @note you need to call `IRCompilerSetRayTracingPipelineArguments` before compiling ray tracing shaders.\n @param compiler compiler to use for the translation process.\n @param intersectionFunctionEntryPointName optional entry point name corresponding to the intersection function.\n @param intersectionFunctionBytecode optional input bytecode that provides the intersection function bytecode.\n @param anyHitFunctionEntryPointName optional entry point name corresponding to the any-hit function.\n @param anyHitFunctionBytecode optional input bytecode that provides the any-hit function\n @param error on return, if the compiler generates any errors, this optional out parameter contains error information. If an error occurs and this parameter is non-NULL, you must free it by calling IRErrorDestroy.\n @return an IR Object containing MetalIR compiled from the input IR, or NULL if an error occurs. You must destroy this object by calling IRObjectDestroy."]
    pub unsafe fn IRCompilerAllocCombineCompileAndLink(
        &self,
        compiler: *mut IRCompiler,
        intersectionFunctionEntryPointName: *const ::std::os::raw::c_char,
        intersectionFunctionBytecode: *const IRObject,
        anyHitFunctionEntryPointName: *const ::std::os::raw::c_char,
        anyHitFunctionBytecode: *const IRObject,
        error: *mut *mut IRError,
    ) -> *mut IRObject {
        (self.IRCompilerAllocCombineCompileAndLink)(
            compiler,
            intersectionFunctionEntryPointName,
            intersectionFunctionBytecode,
            anyHitFunctionEntryPointName,
            anyHitFunctionBytecode,
            error,
        )
    }
    #[doc = " Copy the metallib binary, containing MetalIR bytecode.\n @param obj MetalIR object containing the bytecode from where to copy.\n @param stage shader stage to copy.\n @param lib metallib binary into which to copy the metallib.\n @return true if the metallib binary contains bytecode for this shader stage, false otherwise."]
    pub unsafe fn IRObjectGetMetalLibBinary(
        &self,
        obj: *const IRObject,
        stage: IRShaderStage,
        lib: *mut IRMetalLibBinary,
    ) -> bool {
        (self.IRObjectGetMetalLibBinary)(obj, stage, lib)
    }
    #[doc = " Configure whether the compiler should generate a Metal vertex fetch, or allow synthesizing a separate stage-in function.\n Use Metal vertex fetch to specify a MTLVertexDescriptor to your pipelines at runtime. Request a separate stage-in function to link vertex fetch as a Metal linked function.\n Using a separate stage-in function provides your shader with more flexitibility to perform type conversions, however, it requires more work to set up.\n @param compiler compiler to configure.\n @param stageInCodeGenerationMode code generation mode for the stage-in function."]
    pub unsafe fn IRCompilerSetStageInGenerationMode(
        &self,
        compiler: *mut IRCompiler,
        stageInCodeGenerationMode: IRStageInCodeGenerationMode,
    ) {
        (self.IRCompilerSetStageInGenerationMode)(compiler, stageInCodeGenerationMode)
    }
    #[doc = " Synthesize a stage in function.\n @param compiler compiler configuration to use.\n @param vertexShaderReflection reflection object of a vertex stage containing the inputs used as a base for synthesis.\n @param layout vertex input layout descriptor.\n @param binary pointer to a binary into which to write the synthesized MetalIR.\n @return true if the stageIn function could be successfully created, false otherwise."]
    pub unsafe fn IRMetalLibSynthesizeStageInFunction(
        &self,
        compiler: *const IRCompiler,
        vertexShaderReflection: *const IRShaderReflection,
        layout: *const IRVersionedInputLayoutDescriptor,
        binary: *mut IRMetalLibBinary,
    ) -> bool {
        (self.IRMetalLibSynthesizeStageInFunction)(compiler, vertexShaderReflection, layout, binary)
    }
    #[doc = " Copy reflection data stemming from the process of compiling DXIL to MetalIR.\n @param obj MetalIR object containing the metadata to copy.\n @param stage shader stage from where to obtain the reflection.\n @param reflection reflection object into which to copy the reflection data.\n @return true if the metallib binary contains bytecode for this shader stage, false otherwise."]
    pub unsafe fn IRObjectGetReflection(
        &self,
        obj: *const IRObject,
        stage: IRShaderStage,
        reflection: *mut IRShaderReflection,
    ) -> bool {
        (self.IRObjectGetReflection)(obj, stage, reflection)
    }
    #[doc = " Configure a compiler to emit a shader that consumes a top-level Argument Buffer layout matching a specific root signature.\n @param compiler compiler to configure.\n @param rootSignature root signature that defines the layout of the top-level Argument Buffer for any shaders you compile with this compiler.\n Pass in NULL (the default) to have the compiler generate a linear resource layout instead. If you provide a non-NULL rootSignature, you must ensure it is not destroyed before the compiler."]
    pub unsafe fn IRCompilerSetGlobalRootSignature(
        &self,
        compiler: *mut IRCompiler,
        rootSignature: *const IRRootSignature,
    ) {
        (self.IRCompilerSetGlobalRootSignature)(compiler, rootSignature)
    }
    #[doc = " Configure a compiler to produce a shader that consumes a local root signature matching a specific layout.\n @param compiler compiler to configure.\n @param rootSignature If you provide a non-NULL rootSignature, you must ensure it is not destroyed before the compiler."]
    pub unsafe fn IRCompilerSetLocalRootSignature(
        &self,
        compiler: *mut IRCompiler,
        rootSignature: *const IRRootSignature,
    ) {
        (self.IRCompilerSetLocalRootSignature)(compiler, rootSignature)
    }
    #[doc = " Configure the hit group type for all subsequent shaders a compiler compiles.\n @param compiler compiler to configure\n @param hitGroupType type of hitgroup the shader expects"]
    pub unsafe fn IRCompilerSetHitgroupType(
        &self,
        compiler: *mut IRCompiler,
        hitGroupType: IRHitGroupType,
    ) {
        (self.IRCompilerSetHitgroupType)(compiler, hitGroupType)
    }
    #[doc = " Analyze an input IR and produce a mask representing all ray tracing intrinsics it references.\n Use this function to gather all intrinsics for your closest hit, any hit, intersection, and callable shaders and produce optimal hit group arguments."]
    pub unsafe fn IRObjectGatherRaytracingIntrinsics(
        &self,
        input: *mut IRObject,
        entryPoint: *const ::std::os::raw::c_char,
    ) -> u64 {
        (self.IRObjectGatherRaytracingIntrinsics)(input, entryPoint)
    }
    #[doc = " Configure a compiler with upfront information to generate an optimal interface between ray tracing functions.\n Calling this function is optional, but when omitted, the compiler needs to assume a worst-case scenario, significantly affecting runtime performance.\n Use function `IRObjectGatherRaytracingIntrinsics` to collect the intrinsic usage mask for all closest hit, any hit, intersection, and callable shaders in the pipeline to build.\n After calling this function, all subsequent shaders compiled need to conform to the masks provided, otherwise undefined behavior occurs.\n Specifying a mask and then adding additional shaders to a pipeline that don't conform to it causes undefined behavior.\n @param compiler compiler to configure\n @param maxAttributeSizeInBytes the maximum number of ray tracing attributes (in bytes) that a pipeline consisting of these shaders uses.\n @param raytracingPipelineFlags flags for the ray tracing pipeline your application builds from these shaders.\n @param chs bitwise OR mask of all closest hit shaders for a ray tracing pipeline your application builds using subsequent converted shaders (defaults to `IRIntrinsicMaskClosestHitAll`). The value must match across all functions of all types used in this RT pipeline.\n @param miss bitwise OR mask of all miss shaders for a ray tracing pipeline your application builds using subsequent converted shaders (defaults to `IRIntrinsicMaskMissShaderAll`). The value must match across all functions of all types used in this RT pipeline.\n @param anyHit bitwise OR mask of all any hit shaders for a ray tracing pipeline your application builds using subsequent converted shaders (defaults to `IRIntrinsicMaskAnyHitShaderAll`). The value must match across all functions of all types used in this RT pipeline.\n @param callableArgs bitwise OR mask of all callable shaders for a ray tracing pipeline your application builds using subsequent converted shaders (defaults to `IRIntrinsicMaskCallableShaderAll`). The value must match across all functions of all types used in this RT pipeline.\n @param maxRecursiveDepth stop point for recursion. Pass `IRRayTracingUnlimitedRecursionDepth` for no limit.\n @param rayGenerationCompilationMode set the ray-generation shader compilation mode to compile either as a compute kernel, or as a visible function for a shader binding table.\n @param intersectionFunctionCompilationMode set the any-hit/intersection function compilation mode to compile either as a visible function or Metal Intersection Function. The value must match across all functions of all types used in this RT pipeline.\n @warning providing mask values other than the defaults or those returned by `IRObjectGatherRaytracingIntrinsics` may cause subsequent shader compilations to fail."]
    pub unsafe fn IRCompilerSetRayTracingPipelineArguments(
        &self,
        compiler: *mut IRCompiler,
        maxAttributeSizeInBytes: u32,
        raytracingPipelineFlags: IRRaytracingPipelineFlags,
        chs: u64,
        miss: u64,
        anyHit: u64,
        callableArgs: u64,
        maxRecursiveDepth: ::std::os::raw::c_int,
        rayGenerationCompilationMode: IRRayGenerationCompilationMode,
        intersectionFunctionCompilationMode: IRIntersectionFunctionCompilationMode,
    ) {
        (self.IRCompilerSetRayTracingPipelineArguments)(
            compiler,
            maxAttributeSizeInBytes,
            raytracingPipelineFlags,
            chs,
            miss,
            anyHit,
            callableArgs,
            maxRecursiveDepth,
            rayGenerationCompilationMode,
            intersectionFunctionCompilationMode,
        )
    }
    #[doc = " Configure compiler compatibility flags.\n Compatibility flags allow you to tailor code generation to the specific requirements of your shaders.\n You typically enable compatibility flags to support a broader set of features and behaviors (such as out-of-bounds reads) when your shader needs them to operate correctly.\n These flags, however, carry a performance cost.\n Always use the minimum set of compatibility flags your shader needs to attain the highest runtime performance for IR code you compile.\n @param compiler the compiler to configure\n @param flags bitmask of compatibility flags to enable."]
    pub unsafe fn IRCompilerSetCompatibilityFlags(
        &self,
        compiler: *mut IRCompiler,
        flags: IRCompatibilityFlags,
    ) {
        (self.IRCompilerSetCompatibilityFlags)(compiler, flags)
    }
    #[doc = " Set primitive input topology\n Provides the compiler with information about input topology this shader will be used with.\n This information is required to correctly compile shaders that will render point primitive and may be used for other optimizations.\n @param compiler the compiler to configure\n @param inputTopology input topology"]
    pub unsafe fn IRCompilerSetInputTopology(
        &self,
        compiler: *mut IRCompiler,
        inputTopology: IRInputTopology,
    ) {
        (self.IRCompilerSetInputTopology)(compiler, inputTopology)
    }
    #[doc = " Enable geometry and tessellation emulation.\n @param compiler compiler to configure with geometry and tessellation emulation.\n @param enable pass in true to enable geometry and tessellation emulation, false to disable it."]
    pub unsafe fn IRCompilerEnableGeometryAndTessellationEmulation(
        &self,
        compiler: *mut IRCompiler,
        enable: bool,
    ) {
        (self.IRCompilerEnableGeometryAndTessellationEmulation)(compiler, enable)
    }
    #[doc = " Enable dual-source blending support.\n When the configuration parameter is set to `IRDualSourceBlendingConfigurationDecideAtRuntime`, you must provide a function constant named \"`dualSourceBlendingEnabled`\" of type `uint8_t` at\n pipeline creation time, specifying whether to enable dual source blending.\n @param compiler compiler to configure.\n @param configuration set to enabled or disable to enable and disable support. Set to decide-at-runtime to control support at PSO-creation time via function constants.\n This parameter is reset after each compilation."]
    pub unsafe fn IRCompilerSetDualSourceBlendingConfiguration(
        &self,
        compiler: *mut IRCompiler,
        configuration: IRDualSourceBlendingConfiguration,
    ) {
        (self.IRCompilerSetDualSourceBlendingConfiguration)(compiler, configuration)
    }
    #[doc = " Enable depth feedback support.\n When the configuration parameter is set to `IRDepthWriteConfigurationDecideAtRuntime`, you must provide a function constant named \"`depthFeedbackEnabled`\" of type `uint8_t` at\n pipeline creation time, specifying whether to enable depth feedback.\n @param compiler compiler to configure.\n @param configuration set to enabled or disable to enable and disable support. Set to decide-at-runtime to control support at PSO-creation time via function constants.\n This parameter is reset after each compilation."]
    pub unsafe fn IRCompilerSetDepthFeedbackConfiguration(
        &self,
        compiler: *mut IRCompiler,
        configuration: IRDepthFeedbackConfiguration,
    ) {
        (self.IRCompilerSetDepthFeedbackConfiguration)(compiler, configuration)
    }
    #[doc = " Set Int compatible render target mask.\n Inform the compiler if the underlying render target is int compatible or not. The compiler will inject appropriate bitcast.\n @param compiler compiler to configure.\n @param intRTMask bitmask for each render target - 0 means that the RT is float compatible - 1 means that the RT is int compatible\n This parameter is reset after each compilation."]
    pub unsafe fn IRCompilerSetIntRTMask(&self, compiler: *mut IRCompiler, intRTMask: u8) {
        (self.IRCompilerSetIntRTMask)(compiler, intRTMask)
    }
    #[doc = " Synthesize an ray dispatch function that indirectly dispatches ray generation shaders.\n @param compiler compiler configuration to use.\n @param binary pointer to a binary into which to write the synthesized MetalIR.\n @return true if the intersection function could be successfully synthesized, false otherwise."]
    pub unsafe fn IRMetalLibSynthesizeIndirectRayDispatchFunction(
        &self,
        compiler: *const IRCompiler,
        binary: *mut IRMetalLibBinary,
    ) -> bool {
        (self.IRMetalLibSynthesizeIndirectRayDispatchFunction)(compiler, binary)
    }
    #[doc = " Synthesize a Metal ray tracing intersection function that calls into a visible function representing\n a custom intersection function.\n @param compiler compiler configuration to use. Current hit group and ray tracing configuration influences code generation.\n @param binary pointer to a binary into which to write the synthesized MetalIR.\n @return true if the intersection function could be successfully synthesized, false otherwise."]
    pub unsafe fn IRMetalLibSynthesizeIndirectIntersectionFunction(
        &self,
        compiler: *const IRCompiler,
        binary: *mut IRMetalLibBinary,
    ) -> bool {
        (self.IRMetalLibSynthesizeIndirectIntersectionFunction)(compiler, binary)
    }
    #[doc = " Customize the name of the entry point functions generated by a compiler.\n @param compiler compiler to configure.\n @param newName name IRConverter assigns to the emited entry point."]
    pub unsafe fn IRCompilerSetEntryPointName(
        &self,
        compiler: *mut IRCompiler,
        newName: *const ::std::os::raw::c_char,
    ) {
        (self.IRCompilerSetEntryPointName)(compiler, newName)
    }
    #[doc = " Set the minimum GPU deployment target for MetalIR code generation.\n Targetting a newer family may enable the compiler to emit MetalIR further optimized for newer GPUs, but may render it incompatible with older models.\n @param compiler compiler to configure.\n @param family minimum GPU family supported by code generation."]
    pub unsafe fn IRCompilerSetMinimumGPUFamily(
        &self,
        compiler: *mut IRCompiler,
        family: IRGPUFamily,
    ) {
        (self.IRCompilerSetMinimumGPUFamily)(compiler, family)
    }
    #[doc = " Set compiler settings to ignore root signature when needed\n @param compiler compiler for which to set the flags.\n @param ignoreEmbeddedRootSignature whether embeddedRootSignature should be ignored"]
    pub unsafe fn IRCompilerIgnoreRootSignature(
        &self,
        compiler: *mut IRCompiler,
        ignoreEmbeddedRootSignature: bool,
    ) {
        (self.IRCompilerIgnoreRootSignature)(compiler, ignoreEmbeddedRootSignature)
    }
    #[doc = " Set compiler settings to ignore debug information.\n @param compiler compiler for which to set the flags.\n @param ignoreDebugInformation whether dxil debug information should be ignored. Defaults to false."]
    pub unsafe fn IRCompilerIgnoreDebugInformation(
        &self,
        compiler: *mut IRCompiler,
        ignoreDebugInformation: bool,
    ) {
        (self.IRCompilerIgnoreDebugInformation)(compiler, ignoreDebugInformation)
    }
    #[doc = " Set the minimum operating system software version target for Metal IR code generation.\n Targetting a newer software version may enable the compiler to emi MetalIR further optimized for newer macOS and iOS releases, but it may render it incompatible with older operating system versions.\n Setting a minimum deployment target newer than your SDK may produce an `IRErrorCodeUnableToLinkModule` error.\n @param compiler compiler to configure.\n @param operatingSystem operating system name.\n @param version operating system version, such as \"13.0.0\" or \"16.0.0\"."]
    pub unsafe fn IRCompilerSetMinimumDeploymentTarget(
        &self,
        compiler: *mut IRCompiler,
        operatingSystem: IROperatingSystem,
        version: *const ::std::os::raw::c_char,
    ) {
        (self.IRCompilerSetMinimumDeploymentTarget)(compiler, operatingSystem, version)
    }
    #[doc = " Create an empty metallib binary.\n @return a new, empty metallib binary."]
    pub unsafe fn IRMetalLibBinaryCreate(&self) -> *mut IRMetalLibBinary {
        (self.IRMetalLibBinaryCreate)()
    }
    #[doc = " Destroy a metallib binary.\n @param lib library to destroy."]
    pub unsafe fn IRMetalLibBinaryDestroy(&self, lib: *mut IRMetalLibBinary) {
        (self.IRMetalLibBinaryDestroy)(lib)
    }
    #[doc = " Copy the bytecode from a metallib library into a byte array.\n @param lib metallib library from where to copy the bytecode.\n @param outBytecode into which to write the bytecode. This parameter must be an array of at least IRMetalLibGetBytecodeSize bytes.\n @return number of bytes written."]
    pub unsafe fn IRMetalLibGetBytecode(
        &self,
        lib: *const IRMetalLibBinary,
        outBytecode: *mut u8,
    ) -> usize {
        (self.IRMetalLibGetBytecode)(lib, outBytecode)
    }
    #[doc = " Obtain the number of bytes needed to store the bytecode in a metallib.\n @param lib metallib to query.\n @return size in bytes needed to store the metallib's bytecode."]
    pub unsafe fn IRMetalLibGetBytecodeSize(&self, lib: *const IRMetalLibBinary) -> usize {
        (self.IRMetalLibGetBytecodeSize)(lib)
    }
    #[doc = " Serialize a MetalIR object's shader bytecode to disk.\n @param outputPath path into which to write the serialized MetalIR.\n @param obj IRObject containing the bytecode to serialize.\n @param stage shader stage to serialize."]
    pub unsafe fn IRObjectSerialize(
        &self,
        outputPath: *const ::std::os::raw::c_char,
        obj: *const IRObject,
        stage: IRShaderStage,
    ) -> bool {
        (self.IRObjectSerialize)(outputPath, obj, stage)
    }
    #[doc = " Create an empty reflection object.\n @return a new empty reflection object."]
    pub unsafe fn IRShaderReflectionCreate(&self) -> *mut IRShaderReflection {
        (self.IRShaderReflectionCreate)()
    }
    #[doc = " Release a reflection object.\n @param reflection reflection object to release."]
    pub unsafe fn IRShaderReflectionDestroy(&self, reflection: *mut IRShaderReflection) {
        (self.IRShaderReflectionDestroy)(reflection)
    }
    #[doc = " Obtain the name of the entry point from a reflection object.\n @return pointer to the name of the entry point. Do not free this pointer, its lifecycle is managed by, and coincides with, the reflection object's."]
    pub unsafe fn IRShaderReflectionGetEntryPointFunctionName(
        &self,
        reflection: *const IRShaderReflection,
    ) -> *const ::std::os::raw::c_char {
        (self.IRShaderReflectionGetEntryPointFunctionName)(reflection)
    }
    #[doc = " Determine whether the shader requires supplemental information to operate correctly.\n @param reflection reflection object to evaluate.\n @return true if the compiled shader requires supplemental information in the form of function constants, false otherwise."]
    pub unsafe fn IRShaderReflectionNeedsFunctionConstants(
        &self,
        reflection: *const IRShaderReflection,
    ) -> bool {
        (self.IRShaderReflectionNeedsFunctionConstants)(reflection)
    }
    #[doc = " Obtain the number of function constants in the reflection object.\n @param reflection reflection object to query.\n @return function constant count. May be zero if the shader stage to which this reflection corresponds has no function constants."]
    pub unsafe fn IRShaderReflectionGetFunctionConstantCount(
        &self,
        reflection: *const IRShaderReflection,
    ) -> usize {
        (self.IRShaderReflectionGetFunctionConstantCount)(reflection)
    }
    #[doc = " Copy function constant reflection data from a reflection object to an array.\n You are responsible for calling IRShaderReflectionReleaseFunctionConstants on the array to ensure copied function constant reflection data are released.\n @param reflection reflection object to query.\n @param functionConstants function constants array into which to write the reflection data. This object needs to be able to store at least\n IRShaderReflectionFunctionConstantCount function constants."]
    pub unsafe fn IRShaderReflectionCopyFunctionConstants(
        &self,
        reflection: *const IRShaderReflection,
        functionConstants: *mut IRFunctionConstant,
    ) {
        (self.IRShaderReflectionCopyFunctionConstants)(reflection, functionConstants)
    }
    #[doc = " Release function constant data.\n @param functionConstants array of function constants.\n @param functionConstantCount number of function constants in the array."]
    pub unsafe fn IRShaderReflectionReleaseFunctionConstants(
        &self,
        functionConstants: *mut IRFunctionConstant,
        functionConstantCount: usize,
    ) {
        (self.IRShaderReflectionReleaseFunctionConstants)(functionConstants, functionConstantCount)
    }
    #[doc = " Copy shader reflection for a compute stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param csinfo pointer to a versioned CS Info struct into which to copy the reflection data for the stage. You must release the contents of this stuct by calling IRShaderReflectionReleaseComputeInfo.\n @return true if the reflection object contains compute reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyComputeInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        csinfo: *mut IRVersionedCSInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyComputeInfo)(reflection, version, csinfo)
    }
    #[doc = " Copy shader reflection for a vertex stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param vsinfo pointer to a versioned VS Info struct into which to copy the reflection data for the stage.  You must release the contents of this stuct by calling IRShaderReflectionReleaseVertexInfo.\n @return true if the reflection object contains vertex stage reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyVertexInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        vsinfo: *mut IRVersionedVSInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyVertexInfo)(reflection, version, vsinfo)
    }
    #[doc = " Copy shader reflection for a fragment stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param fsinfo pointer to a versioned FS Info struct into which to copy the reflection data for the stage.  You must release the contents of this stuct by calling IRShaderReflectionReleaseFragmentInfo.\n @return true if the reflection object contains fragment stage reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyFragmentInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        fsinfo: *mut IRVersionedFSInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyFragmentInfo)(reflection, version, fsinfo)
    }
    #[doc = " Copy shader reflection for a geometry stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param gsinfo pointer to a versioned GS Info struct into which to copy the reflection data for the stage. You must release the contents of this stuct by calling IRShaderReflectionReleaseGeometryInfo.\n @return true if the reflection object contains geometry stage reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyGeometryInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        gsinfo: *mut IRVersionedGSInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyGeometryInfo)(reflection, version, gsinfo)
    }
    #[doc = " Copy shader reflection for a hull shader stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param hsinfo pointer to a versioned HS Info struct into which to copy the reflection data for the stage. You must release the contents of this stuct by calling IRShaderReflectionReleaseHullInfo.\n @return true if the reflection object contains hull shader stage reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyHullInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        hsinfo: *mut IRVersionedHSInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyHullInfo)(reflection, version, hsinfo)
    }
    #[doc = " Copy shader reflection for a domain shader stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param dsinfo pointer to a versioned DS Info struct into which to copy the reflection data for the stage.  You must release the contents of this stuct by calling IRShaderReflectionReleaseDomainInfo.\n @return true if the reflection object contains domain shader stage reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyDomainInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        dsinfo: *mut IRVersionedDSInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyDomainInfo)(reflection, version, dsinfo)
    }
    #[doc = " Copy shader reflection for a mesh shader stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param msinfo pointer to a versioned MS Info struct into which to copy the reflection data for the stage.  You must release the contents of this stuct by calling IRShaderReflectionReleaseMeshInfo.\n @return true if the reflection object contains domain shader stage reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyMeshInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        msinfo: *mut IRVersionedMSInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyMeshInfo)(reflection, version, msinfo)
    }
    #[doc = " Copy shader reflection for an amplification shader stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param asinfo pointer to a versioned AS Info struct into which to copy the reflection data for the stage.  You must release the contents of this stuct by calling IRShaderReflectionReleaseAmplificationInfo.\n @return true if the reflection object contains domain shader stage reflection information for the specified version."]
    pub unsafe fn IRShaderReflectionCopyAmplificationInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        asinfo: *mut IRVersionedASInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyAmplificationInfo)(reflection, version, asinfo)
    }
    #[doc = " Copy shader reflection for a ray tracing shader stage.\n @param reflection reflection object to query.\n @param version version of the reflection data to obtain.\n @param rtinfo pointer to a versioned RT Info struct into which to copy the reflection data for the stage.  You must release the contents of this struct by calling IRShaderReflectionReleaseRaytracingInfo.\n @return true if the reflection object contains reflection for a ray tracing stage for the specified version."]
    pub unsafe fn IRShaderReflectionCopyRaytracingInfo(
        &self,
        reflection: *const IRShaderReflection,
        version: IRReflectionVersion,
        rtinfo: *mut IRVersionedRTInfo,
    ) -> bool {
        (self.IRShaderReflectionCopyRaytracingInfo)(reflection, version, rtinfo)
    }
    #[doc = " Release versioned compute information.\n @param csinfo pointer to the compute shader reflection information to release.\n @return false if the csinfo version is an unrecognized version or the csinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseComputeInfo(
        &self,
        csinfo: *mut IRVersionedCSInfo,
    ) -> bool {
        (self.IRShaderReflectionReleaseComputeInfo)(csinfo)
    }
    #[doc = " Release versioned vertex stage information.\n @param vsinfo pointer to the vertex shader reflection information to release.\n @return false if the vsinfo version is an unrecognized version or the vsinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseVertexInfo(
        &self,
        vsinfo: *mut IRVersionedVSInfo,
    ) -> bool {
        (self.IRShaderReflectionReleaseVertexInfo)(vsinfo)
    }
    #[doc = " Release versioned fragment stage information.\n @param fsinfo pointer to the fragment shader reflection information to release.\n @return false if the fsinfo version is an unrecognized version or the fsinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseFragmentInfo(
        &self,
        fsinfo: *mut IRVersionedFSInfo,
    ) -> bool {
        (self.IRShaderReflectionReleaseFragmentInfo)(fsinfo)
    }
    #[doc = " Release versioned geometry stage information.\n @param gsinfo pointer to the geometry shader reflection information to release.\n @return false if the gsinfo version is an unrecognized version or the gsinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseGeometryInfo(
        &self,
        gsinfo: *mut IRVersionedGSInfo,
    ) -> bool {
        (self.IRShaderReflectionReleaseGeometryInfo)(gsinfo)
    }
    #[doc = " Release versioned hull stage information.\n @param hsinfo pointer to the hull shader reflection information to release.\n @return false if the hsinfo version is an unrecognized version or the hsinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseHullInfo(&self, hsinfo: *mut IRVersionedHSInfo) -> bool {
        (self.IRShaderReflectionReleaseHullInfo)(hsinfo)
    }
    #[doc = " Release versioned domain stage information.\n @param dsinfo pointer to the domain shader reflection information to release.\n @return false if the dsinfo version is an unrecognized version or the dsinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseDomainInfo(
        &self,
        dsinfo: *mut IRVersionedDSInfo,
    ) -> bool {
        (self.IRShaderReflectionReleaseDomainInfo)(dsinfo)
    }
    #[doc = " Release versioned mesh stage information.\n @param msinfo pointer to the mesh shader reflection information to release.\n @return false if the msinfo version is an unrecognized version or the msinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseMeshInfo(&self, msinfo: *mut IRVersionedMSInfo) -> bool {
        (self.IRShaderReflectionReleaseMeshInfo)(msinfo)
    }
    #[doc = " Release versioned amplification stage information.\n @param asinfo pointer to the amplification shader reflection information to release.\n @return false if the asinfo version is an unrecognized version or the asinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseAmplificationInfo(
        &self,
        asinfo: *mut IRVersionedASInfo,
    ) -> bool {
        (self.IRShaderReflectionReleaseAmplificationInfo)(asinfo)
    }
    #[doc = " Release versioned ray tracing stage information.\n @param rtinfo pointer to the ray tracing shader reflection information to release.\n @return false if the rtinfo version is an unrecognized version or the rtinfo pointer is null."]
    pub unsafe fn IRShaderReflectionReleaseRaytracingInfo(
        &self,
        rtinfo: *mut IRVersionedRTInfo,
    ) -> bool {
        (self.IRShaderReflectionReleaseRaytracingInfo)(rtinfo)
    }
    #[doc = " Obtain the number of resources referenced by the top-level argument buffer\n @param reflection the reflection object for which to obtain the resource count.\n @return number of resources the top-level argument buffer references."]
    pub unsafe fn IRShaderReflectionGetResourceCount(
        &self,
        reflection: *const IRShaderReflection,
    ) -> usize {
        (self.IRShaderReflectionGetResourceCount)(reflection)
    }
    #[doc = " Get the locations within the top-level Argument Buffer for all top-level resources.\n @param reflection the reflection object resulting from the compilation process.\n @param resourceLocations parameter into which to write resource locations. This array must contain enough storage to write IRShaderReflectionGetResourceCount() elements.\n @note string references within the resource locations are pointers into the reflection object. The reflection object's lifecycle must be preserved while accessing these strings. Names may be NULL."]
    pub unsafe fn IRShaderReflectionGetResourceLocations(
        &self,
        reflection: *const IRShaderReflection,
        resourceLocations: *mut IRResourceLocation,
    ) {
        (self.IRShaderReflectionGetResourceLocations)(reflection, resourceLocations)
    }
    #[doc = " Obtain the number of resources referenced in a top-level Argument Buffer using a hierarchical layout.\n @param rootSignature root signature corresponding to the hierarchical layout definition.\n @return number of resources the top-level argument buffer references."]
    pub unsafe fn IRRootSignatureGetResourceCount(
        &self,
        rootSignature: *const IRRootSignature,
    ) -> usize {
        (self.IRRootSignatureGetResourceCount)(rootSignature)
    }
    #[doc = " Get the locations of resources in the top-level Argument Buffer.\n @param rootSignature root signature corresponding to the hierarchical layout definition.\n @param resourceLocations parameter into which to write resource locations. This array must contain enough storage to write IRRootSignatureGetResourceCount() elements."]
    pub unsafe fn IRRootSignatureGetResourceLocations(
        &self,
        rootSignature: *const IRRootSignature,
        resourceLocations: *mut IRResourceLocation,
    ) {
        (self.IRRootSignatureGetResourceLocations)(rootSignature, resourceLocations)
    }
    #[doc = " Serialize reflection information into JSON.\n @param reflection reflection object.\n @return null-terminated string containing JSON. You need to release this string by calling IRShaderReflectionFreeString.\n @deprecated use IRShaderReflectionCopyJSONString instead."]
    pub unsafe fn IRShaderReflectionAllocStringAndSerialize(
        &self,
        reflection: *mut IRShaderReflection,
    ) -> *const ::std::os::raw::c_char {
        (self.IRShaderReflectionAllocStringAndSerialize)(reflection)
    }
    #[doc = " Serialize reflection information into JSON.\n @param reflection reflection object.\n @return null-terminated string containing JSON. You need to release this string by calling IRShaderReflectionFreeString."]
    pub unsafe fn IRShaderReflectionCopyJSONString(
        &self,
        reflection: *const IRShaderReflection,
    ) -> *const ::std::os::raw::c_char {
        (self.IRShaderReflectionCopyJSONString)(reflection)
    }
    #[doc = " Release a string allocated by IRShaderReflectionAllocStringAndSerialize.\n @param serialized string to release.\n @deprecated use IRShaderReflectionReleaseString instead."]
    pub unsafe fn IRShaderReflectionFreeString(&self, serialized: *const ::std::os::raw::c_char) {
        (self.IRShaderReflectionFreeString)(serialized)
    }
    #[doc = " Release a string allocated by IRShaderReflectionAllocStringAndSerialize.\n @param serialized string to release."]
    pub unsafe fn IRShaderReflectionReleaseString(
        &self,
        serialized: *const ::std::os::raw::c_char,
    ) {
        (self.IRShaderReflectionReleaseString)(serialized)
    }
    #[doc = " Deserialize a JSON string into a reflection object.\n @param blob null-terminated JSON string containing reflection information.\n @param reflection reflection object into which to deserialize.\n @deprecated use IRShaderReflectionCreateFromJSON instead."]
    pub unsafe fn IRShaderReflectionDeserialize(
        &self,
        blob: *const ::std::os::raw::c_char,
        reflection: *mut IRShaderReflection,
    ) {
        (self.IRShaderReflectionDeserialize)(blob, reflection)
    }
    #[doc = " Deserialize a JSON string into a reflection object.\n @param json null-terminated JSON string containing reflection information.\n @return a newly-allocated shader reflection object that you need to release by calling IRShaderReflectionDestroy,\n or NULL on error."]
    pub unsafe fn IRShaderReflectionCreateFromJSON(
        &self,
        json: *const ::std::os::raw::c_char,
    ) -> *mut IRShaderReflection {
        (self.IRShaderReflectionCreateFromJSON)(json)
    }
    #[doc = " Serialize a root signature descriptor into a string representation.\n @param rootSignatureDescriptor root signature descriptor to serialize.\n @return a string representation of the root signature descriptor. You need to release this string by calling IRVersionedRootSignatureDescriptorFreeString.\n @deprecated use IRVersionedRootSignatureDescriptorCopyJSONString instead."]
    pub unsafe fn IRVersionedRootSignatureDescriptorAllocStringAndSerialize(
        &self,
        rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor,
    ) -> *const ::std::os::raw::c_char {
        (self.IRVersionedRootSignatureDescriptorAllocStringAndSerialize)(rootSignatureDescriptor)
    }
    #[doc = " Serialize a root signature descriptor into a string representation.\n @param rootSignatureDescriptor root signature descriptor to serialize.\n @return a string representation of the root signature descriptor. You need to release this string by calling IRVersionedRootSignatureDescriptorFreeString."]
    pub unsafe fn IRVersionedRootSignatureDescriptorCopyJSONString(
        &self,
        rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor,
    ) -> *const ::std::os::raw::c_char {
        (self.IRVersionedRootSignatureDescriptorCopyJSONString)(rootSignatureDescriptor)
    }
    #[doc = " Release a string allocated by IRVersionedRootSignatureDescriptorAllocStringAndSerialize.\n @param serialized string to release.\n @deprecated use IRVersionedRootSignatureDescriptorReleaseString instead."]
    pub unsafe fn IRVersionedRootSignatureDescriptorFreeString(
        &self,
        serialized: *const ::std::os::raw::c_char,
    ) {
        (self.IRVersionedRootSignatureDescriptorFreeString)(serialized)
    }
    #[doc = " Release a string allocated by IRVersionedRootSignatureDescriptorAllocStringAndSerialize.\n @param serialized string to release."]
    pub unsafe fn IRVersionedRootSignatureDescriptorReleaseString(
        &self,
        serialized: *const ::std::os::raw::c_char,
    ) {
        (self.IRVersionedRootSignatureDescriptorReleaseString)(serialized)
    }
    #[doc = " Deserialize a string representation of a root signature into a root signature object.\n @param serialized a string representation of a root signature.\n @param rootSignatureDescriptor root signature object into which to deserialize the root signature.\n @return true if deserialization is successful, false otherwise.\n @warning this function may allocate memory, call IRVersionedRootSignatureDescriptorReleaseArrays to deallocate any allocated memory.\n @deprecated use IRVersionedRootSignatureDescriptorCreateFromJSON instead."]
    pub unsafe fn IRVersionedRootSignatureDescriptorDeserialize(
        &self,
        serialized: *const ::std::os::raw::c_char,
        rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor,
    ) -> bool {
        (self.IRVersionedRootSignatureDescriptorDeserialize)(serialized, rootSignatureDescriptor)
    }
    #[doc = " Deserialize a string representation of a root signature into a root signature object.\n @param serialized a string representation of a root signature.\n @return a newly-allocated root signature object that you need to release, or NULL on error."]
    pub unsafe fn IRVersionedRootSignatureDescriptorCreateFromJSON(
        &self,
        serialized: *const ::std::os::raw::c_char,
    ) -> *mut IRVersionedRootSignatureDescriptor {
        (self.IRVersionedRootSignatureDescriptorCreateFromJSON)(serialized)
    }
    #[doc = " Release any arrays allocated by IRVersionedRootSignatureDescriptorDeserialize.\n @param rootSignatureDescriptor root signature descriptor to release."]
    pub unsafe fn IRVersionedRootSignatureDescriptorRelease(
        &self,
        rootSignatureDescriptor: *mut IRVersionedRootSignatureDescriptor,
    ) {
        (self.IRVersionedRootSignatureDescriptorRelease)(rootSignatureDescriptor)
    }
    #[doc = " Serialize an input layout descriptor version 1 into a string.\n @param inputLayoutDescriptor descriptor to serialize.\n @return a string representation of the input layout descriptor. You need to release this string by calling IRInputLayoutDescriptor1FreeString."]
    pub unsafe fn IRInputLayoutDescriptor1CopyJSONString(
        &self,
        inputLayoutDescriptor: *mut IRInputLayoutDescriptor1,
    ) -> *const ::std::os::raw::c_char {
        (self.IRInputLayoutDescriptor1CopyJSONString)(inputLayoutDescriptor)
    }
    #[doc = " Release a string allocated by IRInputLayoutDescriptor1CopyJSONString.\n @param serialized string to release."]
    pub unsafe fn IRInputLayoutDescriptor1ReleaseString(
        &self,
        serialized: *const ::std::os::raw::c_char,
    ) {
        (self.IRInputLayoutDescriptor1ReleaseString)(serialized)
    }
    #[doc = " Deserialize a string representation of an input layout descriptor version 1 into an IRInputLayoutDescriptor1 structure.\n @param serialized a string representation of an input layout descriptor version 1.\n @return a newly-allocated input layout descriptor version 1 object that you need to release by calling IRInputLayoutDescriptor1Release,\n NULL if an error occurs."]
    pub unsafe fn IRInputLayoutDescriptor1CreateFromJSON(
        &self,
        serialized: *const ::std::os::raw::c_char,
    ) -> *mut IRInputLayoutDescriptor1 {
        (self.IRInputLayoutDescriptor1CreateFromJSON)(serialized)
    }
    #[doc = " Release an IRInputDescriptor1 instance allocated by IRInputLayoutDescriptor1CreateFromJSON.\n @param inputLayoutDescriptor input layout descriptor to release."]
    pub unsafe fn IRInputLayoutDescriptor1Release(
        &self,
        inputLayoutDescriptor: *mut IRInputLayoutDescriptor1,
    ) {
        (self.IRInputLayoutDescriptor1Release)(inputLayoutDescriptor)
    }
}