1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555
#![doc = r" Automatically generated code; do not edit!"] #![allow( non_upper_case_globals, clippy::unreadable_literal, clippy::identity_op )] use crate::platform::*; use crate::support::*; use crate::*; use libc::{timespec, wchar_t}; use std::fmt; use std::mem::MaybeUninit; use std::os::raw::{c_char, c_void}; pub const CURRENT_API_VERSION: Version = Version::new(1u16, 0u16, 17u32); pub const MAX_EXTENSION_NAME_SIZE: usize = 128usize; pub const MAX_API_LAYER_NAME_SIZE: usize = 256usize; pub const MAX_API_LAYER_DESCRIPTION_SIZE: usize = 256usize; pub const MAX_SYSTEM_NAME_SIZE: usize = 256usize; pub const MAX_APPLICATION_NAME_SIZE: usize = 128usize; pub const MAX_ENGINE_NAME_SIZE: usize = 128usize; pub const MAX_RUNTIME_NAME_SIZE: usize = 128usize; pub const MAX_PATH_LENGTH: usize = 256usize; pub const MAX_STRUCTURE_NAME_SIZE: usize = 64usize; pub const MAX_RESULT_STRING_SIZE: usize = 64usize; pub const MAX_GRAPHICS_APIS_SUPPORTED: usize = 32usize; pub const MAX_ACTION_SET_NAME_SIZE: usize = 64usize; pub const MAX_ACTION_NAME_SIZE: usize = 64usize; pub const MAX_LOCALIZED_ACTION_SET_NAME_SIZE: usize = 128usize; pub const MAX_LOCALIZED_ACTION_NAME_SIZE: usize = 128usize; pub const MIN_COMPOSITION_LAYERS_SUPPORTED: usize = 16usize; pub const MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT: usize = 64usize; pub const MAX_AUDIO_DEVICE_STR_SIZE_OCULUS: usize = 128usize; #[doc = "Structure type enumerant - see [XrStructureType](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrStructureType)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct StructureType(i32); impl StructureType { pub const UNKNOWN: StructureType = Self(0i32); pub const API_LAYER_PROPERTIES: StructureType = Self(1i32); pub const EXTENSION_PROPERTIES: StructureType = Self(2i32); pub const INSTANCE_CREATE_INFO: StructureType = Self(3i32); pub const SYSTEM_GET_INFO: StructureType = Self(4i32); pub const SYSTEM_PROPERTIES: StructureType = Self(5i32); pub const VIEW_LOCATE_INFO: StructureType = Self(6i32); pub const VIEW: StructureType = Self(7i32); pub const SESSION_CREATE_INFO: StructureType = Self(8i32); pub const SWAPCHAIN_CREATE_INFO: StructureType = Self(9i32); pub const SESSION_BEGIN_INFO: StructureType = Self(10i32); pub const VIEW_STATE: StructureType = Self(11i32); pub const FRAME_END_INFO: StructureType = Self(12i32); pub const HAPTIC_VIBRATION: StructureType = Self(13i32); pub const EVENT_DATA_BUFFER: StructureType = Self(16i32); pub const EVENT_DATA_INSTANCE_LOSS_PENDING: StructureType = Self(17i32); pub const EVENT_DATA_SESSION_STATE_CHANGED: StructureType = Self(18i32); pub const ACTION_STATE_BOOLEAN: StructureType = Self(23i32); pub const ACTION_STATE_FLOAT: StructureType = Self(24i32); pub const ACTION_STATE_VECTOR2F: StructureType = Self(25i32); pub const ACTION_STATE_POSE: StructureType = Self(27i32); pub const ACTION_SET_CREATE_INFO: StructureType = Self(28i32); pub const ACTION_CREATE_INFO: StructureType = Self(29i32); pub const INSTANCE_PROPERTIES: StructureType = Self(32i32); pub const FRAME_WAIT_INFO: StructureType = Self(33i32); pub const COMPOSITION_LAYER_PROJECTION: StructureType = Self(35i32); pub const COMPOSITION_LAYER_QUAD: StructureType = Self(36i32); pub const REFERENCE_SPACE_CREATE_INFO: StructureType = Self(37i32); pub const ACTION_SPACE_CREATE_INFO: StructureType = Self(38i32); pub const EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING: StructureType = Self(40i32); pub const VIEW_CONFIGURATION_VIEW: StructureType = Self(41i32); pub const SPACE_LOCATION: StructureType = Self(42i32); pub const SPACE_VELOCITY: StructureType = Self(43i32); pub const FRAME_STATE: StructureType = Self(44i32); pub const VIEW_CONFIGURATION_PROPERTIES: StructureType = Self(45i32); pub const FRAME_BEGIN_INFO: StructureType = Self(46i32); pub const COMPOSITION_LAYER_PROJECTION_VIEW: StructureType = Self(48i32); pub const EVENT_DATA_EVENTS_LOST: StructureType = Self(49i32); pub const INTERACTION_PROFILE_SUGGESTED_BINDING: StructureType = Self(51i32); pub const EVENT_DATA_INTERACTION_PROFILE_CHANGED: StructureType = Self(52i32); pub const INTERACTION_PROFILE_STATE: StructureType = Self(53i32); pub const SWAPCHAIN_IMAGE_ACQUIRE_INFO: StructureType = Self(55i32); pub const SWAPCHAIN_IMAGE_WAIT_INFO: StructureType = Self(56i32); pub const SWAPCHAIN_IMAGE_RELEASE_INFO: StructureType = Self(57i32); pub const ACTION_STATE_GET_INFO: StructureType = Self(58i32); pub const HAPTIC_ACTION_INFO: StructureType = Self(59i32); pub const SESSION_ACTION_SETS_ATTACH_INFO: StructureType = Self(60i32); pub const ACTIONS_SYNC_INFO: StructureType = Self(61i32); pub const BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO: StructureType = Self(62i32); pub const INPUT_SOURCE_LOCALIZED_NAME_GET_INFO: StructureType = Self(63i32); pub const COMPOSITION_LAYER_CUBE_KHR: StructureType = Self(1000006000i32); pub const INSTANCE_CREATE_INFO_ANDROID_KHR: StructureType = Self(1000008000i32); pub const COMPOSITION_LAYER_DEPTH_INFO_KHR: StructureType = Self(1000010000i32); pub const VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR: StructureType = Self(1000014000i32); pub const EVENT_DATA_PERF_SETTINGS_EXT: StructureType = Self(1000015000i32); pub const COMPOSITION_LAYER_CYLINDER_KHR: StructureType = Self(1000017000i32); pub const COMPOSITION_LAYER_EQUIRECT_KHR: StructureType = Self(1000018000i32); pub const DEBUG_UTILS_OBJECT_NAME_INFO_EXT: StructureType = Self(1000019000i32); pub const DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT: StructureType = Self(1000019001i32); pub const DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT: StructureType = Self(1000019002i32); pub const DEBUG_UTILS_LABEL_EXT: StructureType = Self(1000019003i32); pub const GRAPHICS_BINDING_OPENGL_WIN32_KHR: StructureType = Self(1000023000i32); pub const GRAPHICS_BINDING_OPENGL_XLIB_KHR: StructureType = Self(1000023001i32); pub const GRAPHICS_BINDING_OPENGL_XCB_KHR: StructureType = Self(1000023002i32); pub const GRAPHICS_BINDING_OPENGL_WAYLAND_KHR: StructureType = Self(1000023003i32); pub const SWAPCHAIN_IMAGE_OPENGL_KHR: StructureType = Self(1000023004i32); pub const GRAPHICS_REQUIREMENTS_OPENGL_KHR: StructureType = Self(1000023005i32); pub const GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR: StructureType = Self(1000024001i32); pub const SWAPCHAIN_IMAGE_OPENGL_ES_KHR: StructureType = Self(1000024002i32); pub const GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR: StructureType = Self(1000024003i32); pub const GRAPHICS_BINDING_VULKAN_KHR: StructureType = Self(1000025000i32); pub const SWAPCHAIN_IMAGE_VULKAN_KHR: StructureType = Self(1000025001i32); pub const GRAPHICS_REQUIREMENTS_VULKAN_KHR: StructureType = Self(1000025002i32); pub const GRAPHICS_BINDING_D3D11_KHR: StructureType = Self(1000027000i32); pub const SWAPCHAIN_IMAGE_D3D11_KHR: StructureType = Self(1000027001i32); pub const GRAPHICS_REQUIREMENTS_D3D11_KHR: StructureType = Self(1000027002i32); pub const GRAPHICS_BINDING_D3D12_KHR: StructureType = Self(1000028000i32); pub const SWAPCHAIN_IMAGE_D3D12_KHR: StructureType = Self(1000028001i32); pub const GRAPHICS_REQUIREMENTS_D3D12_KHR: StructureType = Self(1000028002i32); pub const SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT: StructureType = Self(1000030000i32); pub const EYE_GAZE_SAMPLE_TIME_EXT: StructureType = Self(1000030001i32); pub const VISIBILITY_MASK_KHR: StructureType = Self(1000031000i32); pub const EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR: StructureType = Self(1000031001i32); pub const SESSION_CREATE_INFO_OVERLAY_EXTX: StructureType = Self(1000033000i32); pub const EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX: StructureType = Self(1000033003i32); pub const COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR: StructureType = Self(1000034000i32); pub const SPATIAL_ANCHOR_CREATE_INFO_MSFT: StructureType = Self(1000039000i32); pub const SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT: StructureType = Self(1000039001i32); pub const VIEW_CONFIGURATION_DEPTH_RANGE_EXT: StructureType = Self(1000046000i32); pub const GRAPHICS_BINDING_EGL_MNDX: StructureType = Self(1000048004i32); pub const SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT: StructureType = Self(1000049000i32); pub const SYSTEM_HAND_TRACKING_PROPERTIES_EXT: StructureType = Self(1000051000i32); pub const HAND_TRACKER_CREATE_INFO_EXT: StructureType = Self(1000051001i32); pub const HAND_JOINTS_LOCATE_INFO_EXT: StructureType = Self(1000051002i32); pub const HAND_JOINT_LOCATIONS_EXT: StructureType = Self(1000051003i32); pub const HAND_JOINT_VELOCITIES_EXT: StructureType = Self(1000051004i32); pub const SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT: StructureType = Self(1000052000i32); pub const HAND_MESH_SPACE_CREATE_INFO_MSFT: StructureType = Self(1000052001i32); pub const HAND_MESH_UPDATE_INFO_MSFT: StructureType = Self(1000052002i32); pub const HAND_MESH_MSFT: StructureType = Self(1000052003i32); pub const HAND_POSE_TYPE_INFO_MSFT: StructureType = Self(1000052004i32); pub const SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT: StructureType = Self(1000053000i32); pub const SECONDARY_VIEW_CONFIGURATION_STATE_MSFT: StructureType = Self(1000053001i32); pub const SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT: StructureType = Self(1000053002i32); pub const SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT: StructureType = Self(1000053003i32); pub const SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT: StructureType = Self(1000053004i32); pub const SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT: StructureType = Self(1000053005i32); pub const CONTROLLER_MODEL_KEY_STATE_MSFT: StructureType = Self(1000055000i32); pub const CONTROLLER_MODEL_NODE_PROPERTIES_MSFT: StructureType = Self(1000055001i32); pub const CONTROLLER_MODEL_PROPERTIES_MSFT: StructureType = Self(1000055002i32); pub const CONTROLLER_MODEL_NODE_STATE_MSFT: StructureType = Self(1000055003i32); pub const CONTROLLER_MODEL_STATE_MSFT: StructureType = Self(1000055004i32); pub const VIEW_CONFIGURATION_VIEW_FOV_EPIC: StructureType = Self(1000059000i32); pub const HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT: StructureType = Self(1000063000i32); pub const COMPOSITION_LAYER_REPROJECTION_INFO_MSFT: StructureType = Self(1000066000i32); pub const COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT: StructureType = Self(1000066001i32); pub const ANDROID_SURFACE_SWAPCHAIN_CREATE_INFO_FB: StructureType = Self(1000070000i32); pub const INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE: StructureType = Self(1000079000i32); pub const HAND_JOINTS_MOTION_RANGE_INFO_EXT: StructureType = Self(1000080000i32); pub const LOADER_INIT_INFO_ANDROID_KHR: StructureType = Self(1000089000i32); pub const VULKAN_INSTANCE_CREATE_INFO_KHR: StructureType = Self(1000090000i32); pub const VULKAN_DEVICE_CREATE_INFO_KHR: StructureType = Self(1000090001i32); pub const VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR: StructureType = Self(1000090003i32); pub const GRAPHICS_BINDING_VULKAN2_KHR: StructureType = Self::GRAPHICS_BINDING_VULKAN_KHR; pub const SWAPCHAIN_IMAGE_VULKAN2_KHR: StructureType = Self::SWAPCHAIN_IMAGE_VULKAN_KHR; pub const GRAPHICS_REQUIREMENTS_VULKAN2_KHR: StructureType = Self::GRAPHICS_REQUIREMENTS_VULKAN_KHR; pub const COMPOSITION_LAYER_EQUIRECT2_KHR: StructureType = Self(1000091000i32); pub const SCENE_OBSERVER_CREATE_INFO_MSFT: StructureType = Self(1000097000i32); pub const SCENE_CREATE_INFO_MSFT: StructureType = Self(1000097001i32); pub const NEW_SCENE_COMPUTE_INFO_MSFT: StructureType = Self(1000097002i32); pub const VISUAL_MESH_COMPUTE_LOD_INFO_MSFT: StructureType = Self(1000097003i32); pub const SCENE_COMPONENTS_MSFT: StructureType = Self(1000097004i32); pub const SCENE_COMPONENTS_GET_INFO_MSFT: StructureType = Self(1000097005i32); pub const SCENE_COMPONENT_LOCATIONS_MSFT: StructureType = Self(1000097006i32); pub const SCENE_COMPONENTS_LOCATE_INFO_MSFT: StructureType = Self(1000097007i32); pub const SCENE_OBJECTS_MSFT: StructureType = Self(1000097008i32); pub const SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT: StructureType = Self(1000097009i32); pub const SCENE_OBJECT_TYPES_FILTER_INFO_MSFT: StructureType = Self(1000097010i32); pub const SCENE_PLANES_MSFT: StructureType = Self(1000097011i32); pub const SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT: StructureType = Self(1000097012i32); pub const SCENE_MESHES_MSFT: StructureType = Self(1000097013i32); pub const SCENE_MESH_BUFFERS_GET_INFO_MSFT: StructureType = Self(1000097014i32); pub const SCENE_MESH_BUFFERS_MSFT: StructureType = Self(1000097015i32); pub const SCENE_MESH_VERTEX_BUFFER_MSFT: StructureType = Self(1000097016i32); pub const SCENE_MESH_INDICES_UINT32_MSFT: StructureType = Self(1000097017i32); pub const SCENE_MESH_INDICES_UINT16_MSFT: StructureType = Self(1000097018i32); pub const SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT: StructureType = Self(1000098000i32); pub const SCENE_DESERIALIZE_INFO_MSFT: StructureType = Self(1000098001i32); pub const EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB: StructureType = Self(1000101000i32); pub const SYSTEM_COLOR_SPACE_PROPERTIES_FB: StructureType = Self(1000108000i32); pub const BINDING_MODIFICATIONS_KHR: StructureType = Self(1000120000i32); pub const VIEW_LOCATE_FOVEATED_RENDERING_VARJO: StructureType = Self(1000121000i32); pub const FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO: StructureType = Self(1000121001i32); pub const SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO: StructureType = Self(1000121002i32); pub const COMPOSITION_LAYER_DEPTH_TEST_VARJO: StructureType = Self(1000122000i32); pub const SWAPCHAIN_STATE_ANDROID_SURFACE_DIMENSIONS_FB: StructureType = Self(1000161000i32); pub const SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB: StructureType = Self(1000162000i32); pub const SWAPCHAIN_STATE_SAMPLER_VULKAN_FB: StructureType = Self(1000163000i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for StructureType { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::UNKNOWN => Some("UNKNOWN"), Self::API_LAYER_PROPERTIES => Some("API_LAYER_PROPERTIES"), Self::EXTENSION_PROPERTIES => Some("EXTENSION_PROPERTIES"), Self::INSTANCE_CREATE_INFO => Some("INSTANCE_CREATE_INFO"), Self::SYSTEM_GET_INFO => Some("SYSTEM_GET_INFO"), Self::SYSTEM_PROPERTIES => Some("SYSTEM_PROPERTIES"), Self::VIEW_LOCATE_INFO => Some("VIEW_LOCATE_INFO"), Self::VIEW => Some("VIEW"), Self::SESSION_CREATE_INFO => Some("SESSION_CREATE_INFO"), Self::SWAPCHAIN_CREATE_INFO => Some("SWAPCHAIN_CREATE_INFO"), Self::SESSION_BEGIN_INFO => Some("SESSION_BEGIN_INFO"), Self::VIEW_STATE => Some("VIEW_STATE"), Self::FRAME_END_INFO => Some("FRAME_END_INFO"), Self::HAPTIC_VIBRATION => Some("HAPTIC_VIBRATION"), Self::EVENT_DATA_BUFFER => Some("EVENT_DATA_BUFFER"), Self::EVENT_DATA_INSTANCE_LOSS_PENDING => Some("EVENT_DATA_INSTANCE_LOSS_PENDING"), Self::EVENT_DATA_SESSION_STATE_CHANGED => Some("EVENT_DATA_SESSION_STATE_CHANGED"), Self::ACTION_STATE_BOOLEAN => Some("ACTION_STATE_BOOLEAN"), Self::ACTION_STATE_FLOAT => Some("ACTION_STATE_FLOAT"), Self::ACTION_STATE_VECTOR2F => Some("ACTION_STATE_VECTOR2F"), Self::ACTION_STATE_POSE => Some("ACTION_STATE_POSE"), Self::ACTION_SET_CREATE_INFO => Some("ACTION_SET_CREATE_INFO"), Self::ACTION_CREATE_INFO => Some("ACTION_CREATE_INFO"), Self::INSTANCE_PROPERTIES => Some("INSTANCE_PROPERTIES"), Self::FRAME_WAIT_INFO => Some("FRAME_WAIT_INFO"), Self::COMPOSITION_LAYER_PROJECTION => Some("COMPOSITION_LAYER_PROJECTION"), Self::COMPOSITION_LAYER_QUAD => Some("COMPOSITION_LAYER_QUAD"), Self::REFERENCE_SPACE_CREATE_INFO => Some("REFERENCE_SPACE_CREATE_INFO"), Self::ACTION_SPACE_CREATE_INFO => Some("ACTION_SPACE_CREATE_INFO"), Self::EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING => { Some("EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING") } Self::VIEW_CONFIGURATION_VIEW => Some("VIEW_CONFIGURATION_VIEW"), Self::SPACE_LOCATION => Some("SPACE_LOCATION"), Self::SPACE_VELOCITY => Some("SPACE_VELOCITY"), Self::FRAME_STATE => Some("FRAME_STATE"), Self::VIEW_CONFIGURATION_PROPERTIES => Some("VIEW_CONFIGURATION_PROPERTIES"), Self::FRAME_BEGIN_INFO => Some("FRAME_BEGIN_INFO"), Self::COMPOSITION_LAYER_PROJECTION_VIEW => Some("COMPOSITION_LAYER_PROJECTION_VIEW"), Self::EVENT_DATA_EVENTS_LOST => Some("EVENT_DATA_EVENTS_LOST"), Self::INTERACTION_PROFILE_SUGGESTED_BINDING => { Some("INTERACTION_PROFILE_SUGGESTED_BINDING") } Self::EVENT_DATA_INTERACTION_PROFILE_CHANGED => { Some("EVENT_DATA_INTERACTION_PROFILE_CHANGED") } Self::INTERACTION_PROFILE_STATE => Some("INTERACTION_PROFILE_STATE"), Self::SWAPCHAIN_IMAGE_ACQUIRE_INFO => Some("SWAPCHAIN_IMAGE_ACQUIRE_INFO"), Self::SWAPCHAIN_IMAGE_WAIT_INFO => Some("SWAPCHAIN_IMAGE_WAIT_INFO"), Self::SWAPCHAIN_IMAGE_RELEASE_INFO => Some("SWAPCHAIN_IMAGE_RELEASE_INFO"), Self::ACTION_STATE_GET_INFO => Some("ACTION_STATE_GET_INFO"), Self::HAPTIC_ACTION_INFO => Some("HAPTIC_ACTION_INFO"), Self::SESSION_ACTION_SETS_ATTACH_INFO => Some("SESSION_ACTION_SETS_ATTACH_INFO"), Self::ACTIONS_SYNC_INFO => Some("ACTIONS_SYNC_INFO"), Self::BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO => { Some("BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO") } Self::INPUT_SOURCE_LOCALIZED_NAME_GET_INFO => { Some("INPUT_SOURCE_LOCALIZED_NAME_GET_INFO") } Self::COMPOSITION_LAYER_CUBE_KHR => Some("COMPOSITION_LAYER_CUBE_KHR"), Self::INSTANCE_CREATE_INFO_ANDROID_KHR => Some("INSTANCE_CREATE_INFO_ANDROID_KHR"), Self::COMPOSITION_LAYER_DEPTH_INFO_KHR => Some("COMPOSITION_LAYER_DEPTH_INFO_KHR"), Self::VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR => { Some("VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR") } Self::EVENT_DATA_PERF_SETTINGS_EXT => Some("EVENT_DATA_PERF_SETTINGS_EXT"), Self::COMPOSITION_LAYER_CYLINDER_KHR => Some("COMPOSITION_LAYER_CYLINDER_KHR"), Self::COMPOSITION_LAYER_EQUIRECT_KHR => Some("COMPOSITION_LAYER_EQUIRECT_KHR"), Self::DEBUG_UTILS_OBJECT_NAME_INFO_EXT => Some("DEBUG_UTILS_OBJECT_NAME_INFO_EXT"), Self::DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT => { Some("DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT") } Self::DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT => { Some("DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT") } Self::DEBUG_UTILS_LABEL_EXT => Some("DEBUG_UTILS_LABEL_EXT"), Self::GRAPHICS_BINDING_OPENGL_WIN32_KHR => Some("GRAPHICS_BINDING_OPENGL_WIN32_KHR"), Self::GRAPHICS_BINDING_OPENGL_XLIB_KHR => Some("GRAPHICS_BINDING_OPENGL_XLIB_KHR"), Self::GRAPHICS_BINDING_OPENGL_XCB_KHR => Some("GRAPHICS_BINDING_OPENGL_XCB_KHR"), Self::GRAPHICS_BINDING_OPENGL_WAYLAND_KHR => { Some("GRAPHICS_BINDING_OPENGL_WAYLAND_KHR") } Self::SWAPCHAIN_IMAGE_OPENGL_KHR => Some("SWAPCHAIN_IMAGE_OPENGL_KHR"), Self::GRAPHICS_REQUIREMENTS_OPENGL_KHR => Some("GRAPHICS_REQUIREMENTS_OPENGL_KHR"), Self::GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR => { Some("GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR") } Self::SWAPCHAIN_IMAGE_OPENGL_ES_KHR => Some("SWAPCHAIN_IMAGE_OPENGL_ES_KHR"), Self::GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR => { Some("GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR") } Self::GRAPHICS_BINDING_VULKAN_KHR => Some("GRAPHICS_BINDING_VULKAN_KHR"), Self::SWAPCHAIN_IMAGE_VULKAN_KHR => Some("SWAPCHAIN_IMAGE_VULKAN_KHR"), Self::GRAPHICS_REQUIREMENTS_VULKAN_KHR => Some("GRAPHICS_REQUIREMENTS_VULKAN_KHR"), Self::GRAPHICS_BINDING_D3D11_KHR => Some("GRAPHICS_BINDING_D3D11_KHR"), Self::SWAPCHAIN_IMAGE_D3D11_KHR => Some("SWAPCHAIN_IMAGE_D3D11_KHR"), Self::GRAPHICS_REQUIREMENTS_D3D11_KHR => Some("GRAPHICS_REQUIREMENTS_D3D11_KHR"), Self::GRAPHICS_BINDING_D3D12_KHR => Some("GRAPHICS_BINDING_D3D12_KHR"), Self::SWAPCHAIN_IMAGE_D3D12_KHR => Some("SWAPCHAIN_IMAGE_D3D12_KHR"), Self::GRAPHICS_REQUIREMENTS_D3D12_KHR => Some("GRAPHICS_REQUIREMENTS_D3D12_KHR"), Self::SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT => { Some("SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT") } Self::EYE_GAZE_SAMPLE_TIME_EXT => Some("EYE_GAZE_SAMPLE_TIME_EXT"), Self::VISIBILITY_MASK_KHR => Some("VISIBILITY_MASK_KHR"), Self::EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR => { Some("EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR") } Self::SESSION_CREATE_INFO_OVERLAY_EXTX => Some("SESSION_CREATE_INFO_OVERLAY_EXTX"), Self::EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX => { Some("EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX") } Self::COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR => { Some("COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR") } Self::SPATIAL_ANCHOR_CREATE_INFO_MSFT => Some("SPATIAL_ANCHOR_CREATE_INFO_MSFT"), Self::SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT => { Some("SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT") } Self::VIEW_CONFIGURATION_DEPTH_RANGE_EXT => Some("VIEW_CONFIGURATION_DEPTH_RANGE_EXT"), Self::GRAPHICS_BINDING_EGL_MNDX => Some("GRAPHICS_BINDING_EGL_MNDX"), Self::SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT => { Some("SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT") } Self::SYSTEM_HAND_TRACKING_PROPERTIES_EXT => { Some("SYSTEM_HAND_TRACKING_PROPERTIES_EXT") } Self::HAND_TRACKER_CREATE_INFO_EXT => Some("HAND_TRACKER_CREATE_INFO_EXT"), Self::HAND_JOINTS_LOCATE_INFO_EXT => Some("HAND_JOINTS_LOCATE_INFO_EXT"), Self::HAND_JOINT_LOCATIONS_EXT => Some("HAND_JOINT_LOCATIONS_EXT"), Self::HAND_JOINT_VELOCITIES_EXT => Some("HAND_JOINT_VELOCITIES_EXT"), Self::SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT => { Some("SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT") } Self::HAND_MESH_SPACE_CREATE_INFO_MSFT => Some("HAND_MESH_SPACE_CREATE_INFO_MSFT"), Self::HAND_MESH_UPDATE_INFO_MSFT => Some("HAND_MESH_UPDATE_INFO_MSFT"), Self::HAND_MESH_MSFT => Some("HAND_MESH_MSFT"), Self::HAND_POSE_TYPE_INFO_MSFT => Some("HAND_POSE_TYPE_INFO_MSFT"), Self::SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT => { Some("SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT") } Self::SECONDARY_VIEW_CONFIGURATION_STATE_MSFT => { Some("SECONDARY_VIEW_CONFIGURATION_STATE_MSFT") } Self::SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT => { Some("SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT") } Self::SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT => { Some("SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT") } Self::SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT => { Some("SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT") } Self::SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT => { Some("SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT") } Self::CONTROLLER_MODEL_KEY_STATE_MSFT => Some("CONTROLLER_MODEL_KEY_STATE_MSFT"), Self::CONTROLLER_MODEL_NODE_PROPERTIES_MSFT => { Some("CONTROLLER_MODEL_NODE_PROPERTIES_MSFT") } Self::CONTROLLER_MODEL_PROPERTIES_MSFT => Some("CONTROLLER_MODEL_PROPERTIES_MSFT"), Self::CONTROLLER_MODEL_NODE_STATE_MSFT => Some("CONTROLLER_MODEL_NODE_STATE_MSFT"), Self::CONTROLLER_MODEL_STATE_MSFT => Some("CONTROLLER_MODEL_STATE_MSFT"), Self::VIEW_CONFIGURATION_VIEW_FOV_EPIC => Some("VIEW_CONFIGURATION_VIEW_FOV_EPIC"), Self::HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT => Some("HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT"), Self::COMPOSITION_LAYER_REPROJECTION_INFO_MSFT => { Some("COMPOSITION_LAYER_REPROJECTION_INFO_MSFT") } Self::COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT => { Some("COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT") } Self::ANDROID_SURFACE_SWAPCHAIN_CREATE_INFO_FB => { Some("ANDROID_SURFACE_SWAPCHAIN_CREATE_INFO_FB") } Self::INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE => { Some("INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE") } Self::HAND_JOINTS_MOTION_RANGE_INFO_EXT => Some("HAND_JOINTS_MOTION_RANGE_INFO_EXT"), Self::LOADER_INIT_INFO_ANDROID_KHR => Some("LOADER_INIT_INFO_ANDROID_KHR"), Self::VULKAN_INSTANCE_CREATE_INFO_KHR => Some("VULKAN_INSTANCE_CREATE_INFO_KHR"), Self::VULKAN_DEVICE_CREATE_INFO_KHR => Some("VULKAN_DEVICE_CREATE_INFO_KHR"), Self::VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR => { Some("VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR") } Self::COMPOSITION_LAYER_EQUIRECT2_KHR => Some("COMPOSITION_LAYER_EQUIRECT2_KHR"), Self::SCENE_OBSERVER_CREATE_INFO_MSFT => Some("SCENE_OBSERVER_CREATE_INFO_MSFT"), Self::SCENE_CREATE_INFO_MSFT => Some("SCENE_CREATE_INFO_MSFT"), Self::NEW_SCENE_COMPUTE_INFO_MSFT => Some("NEW_SCENE_COMPUTE_INFO_MSFT"), Self::VISUAL_MESH_COMPUTE_LOD_INFO_MSFT => Some("VISUAL_MESH_COMPUTE_LOD_INFO_MSFT"), Self::SCENE_COMPONENTS_MSFT => Some("SCENE_COMPONENTS_MSFT"), Self::SCENE_COMPONENTS_GET_INFO_MSFT => Some("SCENE_COMPONENTS_GET_INFO_MSFT"), Self::SCENE_COMPONENT_LOCATIONS_MSFT => Some("SCENE_COMPONENT_LOCATIONS_MSFT"), Self::SCENE_COMPONENTS_LOCATE_INFO_MSFT => Some("SCENE_COMPONENTS_LOCATE_INFO_MSFT"), Self::SCENE_OBJECTS_MSFT => Some("SCENE_OBJECTS_MSFT"), Self::SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT => { Some("SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT") } Self::SCENE_OBJECT_TYPES_FILTER_INFO_MSFT => { Some("SCENE_OBJECT_TYPES_FILTER_INFO_MSFT") } Self::SCENE_PLANES_MSFT => Some("SCENE_PLANES_MSFT"), Self::SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT => { Some("SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT") } Self::SCENE_MESHES_MSFT => Some("SCENE_MESHES_MSFT"), Self::SCENE_MESH_BUFFERS_GET_INFO_MSFT => Some("SCENE_MESH_BUFFERS_GET_INFO_MSFT"), Self::SCENE_MESH_BUFFERS_MSFT => Some("SCENE_MESH_BUFFERS_MSFT"), Self::SCENE_MESH_VERTEX_BUFFER_MSFT => Some("SCENE_MESH_VERTEX_BUFFER_MSFT"), Self::SCENE_MESH_INDICES_UINT32_MSFT => Some("SCENE_MESH_INDICES_UINT32_MSFT"), Self::SCENE_MESH_INDICES_UINT16_MSFT => Some("SCENE_MESH_INDICES_UINT16_MSFT"), Self::SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT => { Some("SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT") } Self::SCENE_DESERIALIZE_INFO_MSFT => Some("SCENE_DESERIALIZE_INFO_MSFT"), Self::EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB => { Some("EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB") } Self::SYSTEM_COLOR_SPACE_PROPERTIES_FB => Some("SYSTEM_COLOR_SPACE_PROPERTIES_FB"), Self::BINDING_MODIFICATIONS_KHR => Some("BINDING_MODIFICATIONS_KHR"), Self::VIEW_LOCATE_FOVEATED_RENDERING_VARJO => { Some("VIEW_LOCATE_FOVEATED_RENDERING_VARJO") } Self::FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO => { Some("FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO") } Self::SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO => { Some("SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO") } Self::COMPOSITION_LAYER_DEPTH_TEST_VARJO => Some("COMPOSITION_LAYER_DEPTH_TEST_VARJO"), Self::SWAPCHAIN_STATE_ANDROID_SURFACE_DIMENSIONS_FB => { Some("SWAPCHAIN_STATE_ANDROID_SURFACE_DIMENSIONS_FB") } Self::SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB => { Some("SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB") } Self::SWAPCHAIN_STATE_SAMPLER_VULKAN_FB => Some("SWAPCHAIN_STATE_SAMPLER_VULKAN_FB"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "Error and return codes - see [XrResult](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrResult)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct Result(i32); impl Result { #[doc = "Function successfully completed."] pub const SUCCESS: Result = Self(0i32); #[doc = "The specified timeout time occurred before the operation could complete."] pub const TIMEOUT_EXPIRED: Result = Self(1i32); #[doc = "The session will be lost soon."] pub const SESSION_LOSS_PENDING: Result = Self(3i32); #[doc = "No event was available."] pub const EVENT_UNAVAILABLE: Result = Self(4i32); #[doc = "The space's bounds are not known at the moment."] pub const SPACE_BOUNDS_UNAVAILABLE: Result = Self(7i32); #[doc = "The session is not in the focused state."] pub const SESSION_NOT_FOCUSED: Result = Self(8i32); #[doc = "A frame has been discarded from composition."] pub const FRAME_DISCARDED: Result = Self(9i32); #[doc = "The function usage was invalid in some way."] pub const ERROR_VALIDATION_FAILURE: Result = Self(-1i32); #[doc = "The runtime failed to handle the function in an unexpected way that is not covered by another error result."] pub const ERROR_RUNTIME_FAILURE: Result = Self(-2i32); #[doc = "A memory allocation has failed."] pub const ERROR_OUT_OF_MEMORY: Result = Self(-3i32); #[doc = "The runtime does not support the requested API version."] pub const ERROR_API_VERSION_UNSUPPORTED: Result = Self(-4i32); #[doc = "Initialization of object could not be completed."] pub const ERROR_INITIALIZATION_FAILED: Result = Self(-6i32); #[doc = "The requested function was not found or is otherwise unsupported."] pub const ERROR_FUNCTION_UNSUPPORTED: Result = Self(-7i32); #[doc = "The requested feature is not supported."] pub const ERROR_FEATURE_UNSUPPORTED: Result = Self(-8i32); #[doc = "A requested extension is not supported."] pub const ERROR_EXTENSION_NOT_PRESENT: Result = Self(-9i32); #[doc = "The runtime supports no more of the requested resource."] pub const ERROR_LIMIT_REACHED: Result = Self(-10i32); #[doc = "The supplied size was smaller than required."] pub const ERROR_SIZE_INSUFFICIENT: Result = Self(-11i32); #[doc = "A supplied object handle was invalid."] pub const ERROR_HANDLE_INVALID: Result = Self(-12i32); #[doc = "The XrInstance was lost or could not be found. It will need to be destroyed and optionally recreated."] pub const ERROR_INSTANCE_LOST: Result = Self(-13i32); #[doc = "The session is already running."] pub const ERROR_SESSION_RUNNING: Result = Self(-14i32); #[doc = "The session is not yet running."] pub const ERROR_SESSION_NOT_RUNNING: Result = Self(-16i32); #[doc = "The XrSession was lost. It will need to be destroyed and optionally recreated."] pub const ERROR_SESSION_LOST: Result = Self(-17i32); #[doc = "The provided XrSystemId was invalid."] pub const ERROR_SYSTEM_INVALID: Result = Self(-18i32); #[doc = "The provided XrPath was not valid."] pub const ERROR_PATH_INVALID: Result = Self(-19i32); #[doc = "The maximum number of supported semantic paths has been reached."] pub const ERROR_PATH_COUNT_EXCEEDED: Result = Self(-20i32); #[doc = "The semantic path character format is invalid."] pub const ERROR_PATH_FORMAT_INVALID: Result = Self(-21i32); #[doc = "The semantic path is unsupported."] pub const ERROR_PATH_UNSUPPORTED: Result = Self(-22i32); #[doc = "The layer was NULL or otherwise invalid."] pub const ERROR_LAYER_INVALID: Result = Self(-23i32); #[doc = "The number of specified layers is greater than the supported number."] pub const ERROR_LAYER_LIMIT_EXCEEDED: Result = Self(-24i32); #[doc = "The image rect was negatively sized or otherwise invalid."] pub const ERROR_SWAPCHAIN_RECT_INVALID: Result = Self(-25i32); #[doc = "The image format is not supported by the runtime or platform."] pub const ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED: Result = Self(-26i32); #[doc = "The API used to retrieve an action's state does not match the action's type."] pub const ERROR_ACTION_TYPE_MISMATCH: Result = Self(-27i32); #[doc = "The session is not in the ready state."] pub const ERROR_SESSION_NOT_READY: Result = Self(-28i32); #[doc = "The session is not in the stopping state."] pub const ERROR_SESSION_NOT_STOPPING: Result = Self(-29i32); #[doc = "The provided XrTime was zero, negative, or out of range."] pub const ERROR_TIME_INVALID: Result = Self(-30i32); #[doc = "The specified reference space is not supported by the runtime or system."] pub const ERROR_REFERENCE_SPACE_UNSUPPORTED: Result = Self(-31i32); #[doc = "The file could not be accessed."] pub const ERROR_FILE_ACCESS_ERROR: Result = Self(-32i32); #[doc = "The file's contents were invalid."] pub const ERROR_FILE_CONTENTS_INVALID: Result = Self(-33i32); #[doc = "The specified form factor is not supported by the current runtime or platform."] pub const ERROR_FORM_FACTOR_UNSUPPORTED: Result = Self(-34i32); #[doc = "The specified form factor is supported, but the device is currently not available, e.g. not plugged in or powered off."] pub const ERROR_FORM_FACTOR_UNAVAILABLE: Result = Self(-35i32); #[doc = "A requested API layer is not present or could not be loaded."] pub const ERROR_API_LAYER_NOT_PRESENT: Result = Self(-36i32); #[doc = "The call was made without having made a previously required call."] pub const ERROR_CALL_ORDER_INVALID: Result = Self(-37i32); #[doc = "The given graphics device is not in a valid state. The graphics device could be lost or initialized without meeting graphics requirements."] pub const ERROR_GRAPHICS_DEVICE_INVALID: Result = Self(-38i32); #[doc = "The supplied pose was invalid with respect to the requirements."] pub const ERROR_POSE_INVALID: Result = Self(-39i32); #[doc = "The supplied index was outside the range of valid indices."] pub const ERROR_INDEX_OUT_OF_RANGE: Result = Self(-40i32); #[doc = "The specified view configuration type is not supported by the runtime or platform."] pub const ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED: Result = Self(-41i32); #[doc = "The specified environment blend mode is not supported by the runtime or platform."] pub const ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED: Result = Self(-42i32); #[doc = "The name provided was a duplicate of an already-existing resource."] pub const ERROR_NAME_DUPLICATED: Result = Self(-44i32); #[doc = "The name provided was invalid."] pub const ERROR_NAME_INVALID: Result = Self(-45i32); #[doc = "A referenced action set is not attached to the session."] pub const ERROR_ACTIONSET_NOT_ATTACHED: Result = Self(-46i32); #[doc = "The session already has attached action sets."] pub const ERROR_ACTIONSETS_ALREADY_ATTACHED: Result = Self(-47i32); #[doc = "The localized name provided was a duplicate of an already-existing resource."] pub const ERROR_LOCALIZED_NAME_DUPLICATED: Result = Self(-48i32); #[doc = "The localized name provided was invalid."] pub const ERROR_LOCALIZED_NAME_INVALID: Result = Self(-49i32); #[doc = "The xrGetGraphicsRequirements* call was not made before calling xrCreateSession."] pub const ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING: Result = Self(-50i32); #[doc = "The loader was unable to find or load a runtime."] pub const ERROR_RUNTIME_UNAVAILABLE: Result = Self(-51i32); #[doc = "xrSetAndroidApplicationThreadKHR failed as thread id is invalid."] pub const ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR: Result = Self(-1000003000i32); #[doc = "xrSetAndroidApplicationThreadKHR failed setting the thread attributes/priority."] pub const ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR: Result = Self(-1000003001i32); #[doc = "Spatial anchor could not be created at that location."] pub const ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT: Result = Self(-1000039001i32); #[doc = "The secondary view configuration was not enabled when creating the session."] pub const ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT: Result = Self(-1000053000i32); #[doc = "The controller model key is invalid."] pub const ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT: Result = Self(-1000055000i32); #[doc = "The reprojection mode is not supported."] pub const ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT: Result = Self(-1000066000i32); #[doc = "Compute new scene not completed."] pub const ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT: Result = Self(-1000097000i32); #[doc = "Scene component id invalid."] pub const ERROR_SCENE_COMPONENT_ID_INVALID_MSFT: Result = Self(-1000097001i32); #[doc = "Scene component type mismatch."] pub const ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT: Result = Self(-1000097002i32); #[doc = "Scene mesh buffer id invalid."] pub const ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT: Result = Self(-1000097003i32); #[doc = "Scene compute feature incompatible."] pub const ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT: Result = Self(-1000097004i32); #[doc = "Scene compute consistency mismatch."] pub const ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT: Result = Self(-1000097005i32); #[doc = "The display refresh rate is not supported by the platform."] pub const ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB: Result = Self(-1000101000i32); #[doc = "The color space is not supported by the runtime."] pub const ERROR_COLOR_SPACE_UNSUPPORTED_FB: Result = Self(-1000108000i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for Result { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::SUCCESS => Some("SUCCESS"), Self::TIMEOUT_EXPIRED => Some("TIMEOUT_EXPIRED"), Self::SESSION_LOSS_PENDING => Some("SESSION_LOSS_PENDING"), Self::EVENT_UNAVAILABLE => Some("EVENT_UNAVAILABLE"), Self::SPACE_BOUNDS_UNAVAILABLE => Some("SPACE_BOUNDS_UNAVAILABLE"), Self::SESSION_NOT_FOCUSED => Some("SESSION_NOT_FOCUSED"), Self::FRAME_DISCARDED => Some("FRAME_DISCARDED"), Self::ERROR_VALIDATION_FAILURE => Some("ERROR_VALIDATION_FAILURE"), Self::ERROR_RUNTIME_FAILURE => Some("ERROR_RUNTIME_FAILURE"), Self::ERROR_OUT_OF_MEMORY => Some("ERROR_OUT_OF_MEMORY"), Self::ERROR_API_VERSION_UNSUPPORTED => Some("ERROR_API_VERSION_UNSUPPORTED"), Self::ERROR_INITIALIZATION_FAILED => Some("ERROR_INITIALIZATION_FAILED"), Self::ERROR_FUNCTION_UNSUPPORTED => Some("ERROR_FUNCTION_UNSUPPORTED"), Self::ERROR_FEATURE_UNSUPPORTED => Some("ERROR_FEATURE_UNSUPPORTED"), Self::ERROR_EXTENSION_NOT_PRESENT => Some("ERROR_EXTENSION_NOT_PRESENT"), Self::ERROR_LIMIT_REACHED => Some("ERROR_LIMIT_REACHED"), Self::ERROR_SIZE_INSUFFICIENT => Some("ERROR_SIZE_INSUFFICIENT"), Self::ERROR_HANDLE_INVALID => Some("ERROR_HANDLE_INVALID"), Self::ERROR_INSTANCE_LOST => Some("ERROR_INSTANCE_LOST"), Self::ERROR_SESSION_RUNNING => Some("ERROR_SESSION_RUNNING"), Self::ERROR_SESSION_NOT_RUNNING => Some("ERROR_SESSION_NOT_RUNNING"), Self::ERROR_SESSION_LOST => Some("ERROR_SESSION_LOST"), Self::ERROR_SYSTEM_INVALID => Some("ERROR_SYSTEM_INVALID"), Self::ERROR_PATH_INVALID => Some("ERROR_PATH_INVALID"), Self::ERROR_PATH_COUNT_EXCEEDED => Some("ERROR_PATH_COUNT_EXCEEDED"), Self::ERROR_PATH_FORMAT_INVALID => Some("ERROR_PATH_FORMAT_INVALID"), Self::ERROR_PATH_UNSUPPORTED => Some("ERROR_PATH_UNSUPPORTED"), Self::ERROR_LAYER_INVALID => Some("ERROR_LAYER_INVALID"), Self::ERROR_LAYER_LIMIT_EXCEEDED => Some("ERROR_LAYER_LIMIT_EXCEEDED"), Self::ERROR_SWAPCHAIN_RECT_INVALID => Some("ERROR_SWAPCHAIN_RECT_INVALID"), Self::ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED => Some("ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED"), Self::ERROR_ACTION_TYPE_MISMATCH => Some("ERROR_ACTION_TYPE_MISMATCH"), Self::ERROR_SESSION_NOT_READY => Some("ERROR_SESSION_NOT_READY"), Self::ERROR_SESSION_NOT_STOPPING => Some("ERROR_SESSION_NOT_STOPPING"), Self::ERROR_TIME_INVALID => Some("ERROR_TIME_INVALID"), Self::ERROR_REFERENCE_SPACE_UNSUPPORTED => Some("ERROR_REFERENCE_SPACE_UNSUPPORTED"), Self::ERROR_FILE_ACCESS_ERROR => Some("ERROR_FILE_ACCESS_ERROR"), Self::ERROR_FILE_CONTENTS_INVALID => Some("ERROR_FILE_CONTENTS_INVALID"), Self::ERROR_FORM_FACTOR_UNSUPPORTED => Some("ERROR_FORM_FACTOR_UNSUPPORTED"), Self::ERROR_FORM_FACTOR_UNAVAILABLE => Some("ERROR_FORM_FACTOR_UNAVAILABLE"), Self::ERROR_API_LAYER_NOT_PRESENT => Some("ERROR_API_LAYER_NOT_PRESENT"), Self::ERROR_CALL_ORDER_INVALID => Some("ERROR_CALL_ORDER_INVALID"), Self::ERROR_GRAPHICS_DEVICE_INVALID => Some("ERROR_GRAPHICS_DEVICE_INVALID"), Self::ERROR_POSE_INVALID => Some("ERROR_POSE_INVALID"), Self::ERROR_INDEX_OUT_OF_RANGE => Some("ERROR_INDEX_OUT_OF_RANGE"), Self::ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED => { Some("ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED") } Self::ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED => { Some("ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED") } Self::ERROR_NAME_DUPLICATED => Some("ERROR_NAME_DUPLICATED"), Self::ERROR_NAME_INVALID => Some("ERROR_NAME_INVALID"), Self::ERROR_ACTIONSET_NOT_ATTACHED => Some("ERROR_ACTIONSET_NOT_ATTACHED"), Self::ERROR_ACTIONSETS_ALREADY_ATTACHED => Some("ERROR_ACTIONSETS_ALREADY_ATTACHED"), Self::ERROR_LOCALIZED_NAME_DUPLICATED => Some("ERROR_LOCALIZED_NAME_DUPLICATED"), Self::ERROR_LOCALIZED_NAME_INVALID => Some("ERROR_LOCALIZED_NAME_INVALID"), Self::ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING => { Some("ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING") } Self::ERROR_RUNTIME_UNAVAILABLE => Some("ERROR_RUNTIME_UNAVAILABLE"), Self::ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR => { Some("ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR") } Self::ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR => { Some("ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR") } Self::ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT => { Some("ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT") } Self::ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT => { Some("ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT") } Self::ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT => { Some("ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT") } Self::ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT => { Some("ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT") } Self::ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT => { Some("ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT") } Self::ERROR_SCENE_COMPONENT_ID_INVALID_MSFT => { Some("ERROR_SCENE_COMPONENT_ID_INVALID_MSFT") } Self::ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT => { Some("ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT") } Self::ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT => { Some("ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT") } Self::ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT => { Some("ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT") } Self::ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT => { Some("ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT") } Self::ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB => { Some("ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB") } Self::ERROR_COLOR_SPACE_UNSUPPORTED_FB => Some("ERROR_COLOR_SPACE_UNSUPPORTED_FB"), _ => None, }; fmt_enum(fmt, self.0, name) } } impl fmt::Display for Result { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let reason = match * self { Self :: SUCCESS => Some ("function successfully completed") , Self :: TIMEOUT_EXPIRED => Some ("the specified timeout time occurred before the operation could complete") , Self :: SESSION_LOSS_PENDING => Some ("the session will be lost soon") , Self :: EVENT_UNAVAILABLE => Some ("no event was available") , Self :: SPACE_BOUNDS_UNAVAILABLE => Some ("the space's bounds are not known at the moment") , Self :: SESSION_NOT_FOCUSED => Some ("the session is not in the focused state") , Self :: FRAME_DISCARDED => Some ("a frame has been discarded from composition") , Self :: ERROR_VALIDATION_FAILURE => Some ("the function usage was invalid in some way") , Self :: ERROR_RUNTIME_FAILURE => Some ("the runtime failed to handle the function in an unexpected way that is not covered by another error result") , Self :: ERROR_OUT_OF_MEMORY => Some ("a memory allocation has failed") , Self :: ERROR_API_VERSION_UNSUPPORTED => Some ("the runtime does not support the requested API version") , Self :: ERROR_INITIALIZATION_FAILED => Some ("initialization of object could not be completed") , Self :: ERROR_FUNCTION_UNSUPPORTED => Some ("the requested function was not found or is otherwise unsupported") , Self :: ERROR_FEATURE_UNSUPPORTED => Some ("the requested feature is not supported") , Self :: ERROR_EXTENSION_NOT_PRESENT => Some ("a requested extension is not supported") , Self :: ERROR_LIMIT_REACHED => Some ("the runtime supports no more of the requested resource") , Self :: ERROR_SIZE_INSUFFICIENT => Some ("the supplied size was smaller than required") , Self :: ERROR_HANDLE_INVALID => Some ("a supplied object handle was invalid") , Self :: ERROR_INSTANCE_LOST => Some ("the XrInstance was lost or could not be found. It will need to be destroyed and optionally recreated") , Self :: ERROR_SESSION_RUNNING => Some ("the session is already running") , Self :: ERROR_SESSION_NOT_RUNNING => Some ("the session is not yet running") , Self :: ERROR_SESSION_LOST => Some ("the XrSession was lost. It will need to be destroyed and optionally recreated") , Self :: ERROR_SYSTEM_INVALID => Some ("the provided XrSystemId was invalid") , Self :: ERROR_PATH_INVALID => Some ("the provided XrPath was not valid") , Self :: ERROR_PATH_COUNT_EXCEEDED => Some ("the maximum number of supported semantic paths has been reached") , Self :: ERROR_PATH_FORMAT_INVALID => Some ("the semantic path character format is invalid") , Self :: ERROR_PATH_UNSUPPORTED => Some ("the semantic path is unsupported") , Self :: ERROR_LAYER_INVALID => Some ("the layer was NULL or otherwise invalid") , Self :: ERROR_LAYER_LIMIT_EXCEEDED => Some ("the number of specified layers is greater than the supported number") , Self :: ERROR_SWAPCHAIN_RECT_INVALID => Some ("the image rect was negatively sized or otherwise invalid") , Self :: ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED => Some ("the image format is not supported by the runtime or platform") , Self :: ERROR_ACTION_TYPE_MISMATCH => Some ("the API used to retrieve an action's state does not match the action's type") , Self :: ERROR_SESSION_NOT_READY => Some ("the session is not in the ready state") , Self :: ERROR_SESSION_NOT_STOPPING => Some ("the session is not in the stopping state") , Self :: ERROR_TIME_INVALID => Some ("the provided XrTime was zero, negative, or out of range") , Self :: ERROR_REFERENCE_SPACE_UNSUPPORTED => Some ("the specified reference space is not supported by the runtime or system") , Self :: ERROR_FILE_ACCESS_ERROR => Some ("the file could not be accessed") , Self :: ERROR_FILE_CONTENTS_INVALID => Some ("the file's contents were invalid") , Self :: ERROR_FORM_FACTOR_UNSUPPORTED => Some ("the specified form factor is not supported by the current runtime or platform") , Self :: ERROR_FORM_FACTOR_UNAVAILABLE => Some ("the specified form factor is supported, but the device is currently not available, e.g. not plugged in or powered off") , Self :: ERROR_API_LAYER_NOT_PRESENT => Some ("a requested API layer is not present or could not be loaded") , Self :: ERROR_CALL_ORDER_INVALID => Some ("the call was made without having made a previously required call") , Self :: ERROR_GRAPHICS_DEVICE_INVALID => Some ("the given graphics device is not in a valid state. The graphics device could be lost or initialized without meeting graphics requirements") , Self :: ERROR_POSE_INVALID => Some ("the supplied pose was invalid with respect to the requirements") , Self :: ERROR_INDEX_OUT_OF_RANGE => Some ("the supplied index was outside the range of valid indices") , Self :: ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED => Some ("the specified view configuration type is not supported by the runtime or platform") , Self :: ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED => Some ("the specified environment blend mode is not supported by the runtime or platform") , Self :: ERROR_NAME_DUPLICATED => Some ("the name provided was a duplicate of an already-existing resource") , Self :: ERROR_NAME_INVALID => Some ("the name provided was invalid") , Self :: ERROR_ACTIONSET_NOT_ATTACHED => Some ("a referenced action set is not attached to the session") , Self :: ERROR_ACTIONSETS_ALREADY_ATTACHED => Some ("the session already has attached action sets") , Self :: ERROR_LOCALIZED_NAME_DUPLICATED => Some ("the localized name provided was a duplicate of an already-existing resource") , Self :: ERROR_LOCALIZED_NAME_INVALID => Some ("the localized name provided was invalid") , Self :: ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING => Some ("the xrGetGraphicsRequirements* call was not made before calling xrCreateSession") , Self :: ERROR_RUNTIME_UNAVAILABLE => Some ("the loader was unable to find or load a runtime") , Self :: ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR => Some ("xrSetAndroidApplicationThreadKHR failed as thread id is invalid") , Self :: ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR => Some ("xrSetAndroidApplicationThreadKHR failed setting the thread attributes/priority") , Self :: ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT => Some ("spatial anchor could not be created at that location") , Self :: ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT => Some ("the secondary view configuration was not enabled when creating the session") , Self :: ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT => Some ("the controller model key is invalid") , Self :: ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT => Some ("the reprojection mode is not supported") , Self :: ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT => Some ("compute new scene not completed") , Self :: ERROR_SCENE_COMPONENT_ID_INVALID_MSFT => Some ("scene component id invalid") , Self :: ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT => Some ("scene component type mismatch") , Self :: ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT => Some ("scene mesh buffer id invalid") , Self :: ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT => Some ("scene compute feature incompatible") , Self :: ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT => Some ("scene compute consistency mismatch") , Self :: ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB => Some ("the display refresh rate is not supported by the platform") , Self :: ERROR_COLOR_SPACE_UNSUPPORTED_FB => Some ("the color space is not supported by the runtime") , _ => None , } ; if let Some(reason) = reason { fmt.pad(reason) } else { write!(fmt, "unknown error (code {})", self.0) } } } impl std::error::Error for Result {} #[doc = "Enums to track objects of various types - see [XrObjectType](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrObjectType)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct ObjectType(i32); impl ObjectType { pub const UNKNOWN: ObjectType = Self(0i32); #[doc = "XrInstance"] pub const INSTANCE: ObjectType = Self(1i32); #[doc = "XrSession"] pub const SESSION: ObjectType = Self(2i32); #[doc = "XrSwapchain"] pub const SWAPCHAIN: ObjectType = Self(3i32); #[doc = "XrSpace"] pub const SPACE: ObjectType = Self(4i32); #[doc = "XrActionSet"] pub const ACTION_SET: ObjectType = Self(5i32); #[doc = "XrAction"] pub const ACTION: ObjectType = Self(6i32); #[doc = "XrDebugUtilsMessengerEXT"] pub const DEBUG_UTILS_MESSENGER_EXT: ObjectType = Self(1000019000i32); #[doc = "XrSpatialAnchorMSFT"] pub const SPATIAL_ANCHOR_MSFT: ObjectType = Self(1000039000i32); #[doc = "XrHandTrackerEXT"] pub const HAND_TRACKER_EXT: ObjectType = Self(1000051000i32); #[doc = "XrSceneObserverMSFT"] pub const SCENE_OBSERVER_MSFT: ObjectType = Self(1000097000i32); #[doc = "XrSceneMSFT"] pub const SCENE_MSFT: ObjectType = Self(1000097001i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for ObjectType { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::UNKNOWN => Some("UNKNOWN"), Self::INSTANCE => Some("INSTANCE"), Self::SESSION => Some("SESSION"), Self::SWAPCHAIN => Some("SWAPCHAIN"), Self::SPACE => Some("SPACE"), Self::ACTION_SET => Some("ACTION_SET"), Self::ACTION => Some("ACTION"), Self::DEBUG_UTILS_MESSENGER_EXT => Some("DEBUG_UTILS_MESSENGER_EXT"), Self::SPATIAL_ANCHOR_MSFT => Some("SPATIAL_ANCHOR_MSFT"), Self::HAND_TRACKER_EXT => Some("HAND_TRACKER_EXT"), Self::SCENE_OBSERVER_MSFT => Some("SCENE_OBSERVER_MSFT"), Self::SCENE_MSFT => Some("SCENE_MSFT"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "Android Thread Types - see [XrAndroidThreadTypeKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrAndroidThreadTypeKHR)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct AndroidThreadTypeKHR(i32); impl AndroidThreadTypeKHR { pub const APPLICATION_MAIN: AndroidThreadTypeKHR = Self(1i32); pub const APPLICATION_WORKER: AndroidThreadTypeKHR = Self(2i32); pub const RENDERER_MAIN: AndroidThreadTypeKHR = Self(3i32); pub const RENDERER_WORKER: AndroidThreadTypeKHR = Self(4i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for AndroidThreadTypeKHR { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::APPLICATION_MAIN => Some("APPLICATION_MAIN"), Self::APPLICATION_WORKER => Some("APPLICATION_WORKER"), Self::RENDERER_MAIN => Some("RENDERER_MAIN"), Self::RENDERER_WORKER => Some("RENDERER_WORKER"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "eye visibility selector - see [XrEyeVisibility](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEyeVisibility)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct EyeVisibility(i32); impl EyeVisibility { #[doc = "Display in both eyes."] pub const BOTH: EyeVisibility = Self(0i32); #[doc = "Display in the left eye only."] pub const LEFT: EyeVisibility = Self(1i32); #[doc = "Display in the right eye only."] pub const RIGHT: EyeVisibility = Self(2i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for EyeVisibility { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::BOTH => Some("BOTH"), Self::LEFT => Some("LEFT"), Self::RIGHT => Some("RIGHT"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrActionType](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionType)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct ActionType(i32); impl ActionType { pub const BOOLEAN_INPUT: ActionType = Self(1i32); pub const FLOAT_INPUT: ActionType = Self(2i32); pub const VECTOR2F_INPUT: ActionType = Self(3i32); pub const POSE_INPUT: ActionType = Self(4i32); pub const VIBRATION_OUTPUT: ActionType = Self(100i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for ActionType { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::BOOLEAN_INPUT => Some("BOOLEAN_INPUT"), Self::FLOAT_INPUT => Some("FLOAT_INPUT"), Self::VECTOR2F_INPUT => Some("VECTOR2F_INPUT"), Self::POSE_INPUT => Some("POSE_INPUT"), Self::VIBRATION_OUTPUT => Some("VIBRATION_OUTPUT"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrReferenceSpaceType](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrReferenceSpaceType)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct ReferenceSpaceType(i32); impl ReferenceSpaceType { pub const VIEW: ReferenceSpaceType = Self(1i32); pub const LOCAL: ReferenceSpaceType = Self(2i32); pub const STAGE: ReferenceSpaceType = Self(3i32); pub const UNBOUNDED_MSFT: ReferenceSpaceType = Self(1000038000i32); pub const COMBINED_EYE_VARJO: ReferenceSpaceType = Self(1000121000i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for ReferenceSpaceType { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::VIEW => Some("VIEW"), Self::LOCAL => Some("LOCAL"), Self::STAGE => Some("STAGE"), Self::UNBOUNDED_MSFT => Some("UNBOUNDED_MSFT"), Self::COMBINED_EYE_VARJO => Some("COMBINED_EYE_VARJO"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrFormFactor](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFormFactor)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct FormFactor(i32); impl FormFactor { pub const HEAD_MOUNTED_DISPLAY: FormFactor = Self(1i32); pub const HANDHELD_DISPLAY: FormFactor = Self(2i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for FormFactor { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::HEAD_MOUNTED_DISPLAY => Some("HEAD_MOUNTED_DISPLAY"), Self::HANDHELD_DISPLAY => Some("HANDHELD_DISPLAY"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrViewConfigurationType](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewConfigurationType)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct ViewConfigurationType(i32); impl ViewConfigurationType { pub const PRIMARY_MONO: ViewConfigurationType = Self(1i32); pub const PRIMARY_STEREO: ViewConfigurationType = Self(2i32); pub const PRIMARY_QUAD_VARJO: ViewConfigurationType = Self(1000037000i32); pub const SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT: ViewConfigurationType = Self(1000054000i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for ViewConfigurationType { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::PRIMARY_MONO => Some("PRIMARY_MONO"), Self::PRIMARY_STEREO => Some("PRIMARY_STEREO"), Self::PRIMARY_QUAD_VARJO => Some("PRIMARY_QUAD_VARJO"), Self::SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT => { Some("SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT") } _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrEnvironmentBlendMode](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEnvironmentBlendMode)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct EnvironmentBlendMode(i32); impl EnvironmentBlendMode { pub const OPAQUE: EnvironmentBlendMode = Self(1i32); pub const ADDITIVE: EnvironmentBlendMode = Self(2i32); pub const ALPHA_BLEND: EnvironmentBlendMode = Self(3i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for EnvironmentBlendMode { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::OPAQUE => Some("OPAQUE"), Self::ADDITIVE => Some("ADDITIVE"), Self::ALPHA_BLEND => Some("ALPHA_BLEND"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrSessionState](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSessionState)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct SessionState(i32); impl SessionState { pub const UNKNOWN: SessionState = Self(0i32); pub const IDLE: SessionState = Self(1i32); pub const READY: SessionState = Self(2i32); pub const SYNCHRONIZED: SessionState = Self(3i32); pub const VISIBLE: SessionState = Self(4i32); pub const FOCUSED: SessionState = Self(5i32); pub const STOPPING: SessionState = Self(6i32); pub const LOSS_PENDING: SessionState = Self(7i32); pub const EXITING: SessionState = Self(8i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for SessionState { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::UNKNOWN => Some("UNKNOWN"), Self::IDLE => Some("IDLE"), Self::READY => Some("READY"), Self::SYNCHRONIZED => Some("SYNCHRONIZED"), Self::VISIBLE => Some("VISIBLE"), Self::FOCUSED => Some("FOCUSED"), Self::STOPPING => Some("STOPPING"), Self::LOSS_PENDING => Some("LOSS_PENDING"), Self::EXITING => Some("EXITING"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrPerfSettingsDomainEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrPerfSettingsDomainEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct PerfSettingsDomainEXT(i32); impl PerfSettingsDomainEXT { #[doc = "Indicates that the performance settings or notification applies to CPU domain"] pub const CPU: PerfSettingsDomainEXT = Self(1i32); #[doc = "Indicates that the performance settings or notification applies to GPU domain"] pub const GPU: PerfSettingsDomainEXT = Self(2i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for PerfSettingsDomainEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::CPU => Some("CPU"), Self::GPU => Some("GPU"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrPerfSettingsSubDomainEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrPerfSettingsSubDomainEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct PerfSettingsSubDomainEXT(i32); impl PerfSettingsSubDomainEXT { #[doc = "Indicates that the performance notification originates from the COMPOSITING sub-domain"] pub const COMPOSITING: PerfSettingsSubDomainEXT = Self(1i32); #[doc = "Indicates that the performance notification originates from the RENDERING sub-domain"] pub const RENDERING: PerfSettingsSubDomainEXT = Self(2i32); #[doc = "Indicates that the performance notification originates from the THERMAL sub-domain"] pub const THERMAL: PerfSettingsSubDomainEXT = Self(3i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for PerfSettingsSubDomainEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::COMPOSITING => Some("COMPOSITING"), Self::RENDERING => Some("RENDERING"), Self::THERMAL => Some("THERMAL"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrPerfSettingsLevelEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrPerfSettingsLevelEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct PerfSettingsLevelEXT(i32); impl PerfSettingsLevelEXT { #[doc = "Performance settings hint used by the application to indicate that it enters a non-XR\n section (head-locked / static screen), during which power savings are to be prioritized"] pub const POWER_SAVINGS: PerfSettingsLevelEXT = Self(0i32); #[doc = "Performance settings hint used by the application to indicate that it enters a low\n and stable complexity section, during which reducing power is more important than\n occasional late rendering frames"] pub const SUSTAINED_LOW: PerfSettingsLevelEXT = Self(25i32); #[doc = "Performance settings hint used by the application to indicate that it enters\n a high or dynamic complexity section, during which the XR Runtime strives for consistent\n XR compositing and frame rendering within a thermally sustainable range"] pub const SUSTAINED_HIGH: PerfSettingsLevelEXT = Self(50i32); #[doc = "Performance settings hint used by the application to indicate that the application enters\n a section with very high complexity, during which the XR Runtime is allowed to step\n up beyond the thermally sustainable range"] pub const BOOST: PerfSettingsLevelEXT = Self(75i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for PerfSettingsLevelEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::POWER_SAVINGS => Some("POWER_SAVINGS"), Self::SUSTAINED_LOW => Some("SUSTAINED_LOW"), Self::SUSTAINED_HIGH => Some("SUSTAINED_HIGH"), Self::BOOST => Some("BOOST"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrPerfSettingsNotificationLevelEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrPerfSettingsNotificationLevelEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct PerfSettingsNotificationLevelEXT(i32); impl PerfSettingsNotificationLevelEXT { #[doc = "Notifies that the sub-domain has reached a level\n where no further actions other than currently applied are necessary"] pub const NORMAL: PerfSettingsNotificationLevelEXT = Self(0i32); #[doc = "Notifies that the sub-domain has reached an early warning level\n where the application should start proactive mitigation actions\n with the goal to return to the XR_PERF_NOTIF_LEVEL_NORMAL level"] pub const WARNING: PerfSettingsNotificationLevelEXT = Self(25i32); #[doc = "Notifies that the sub-domain has reached a critical\n level with significant performance degradation.\n The application should take drastic mitigation action"] pub const IMPAIRED: PerfSettingsNotificationLevelEXT = Self(75i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for PerfSettingsNotificationLevelEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::NORMAL => Some("NORMAL"), Self::WARNING => Some("WARNING"), Self::IMPAIRED => Some("IMPAIRED"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrVisibilityMaskTypeKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVisibilityMaskTypeKHR)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct VisibilityMaskTypeKHR(i32); impl VisibilityMaskTypeKHR { #[doc = "exclusive mesh; indicates that which the viewer cannot see."] pub const HIDDEN_TRIANGLE_MESH: VisibilityMaskTypeKHR = Self(1i32); #[doc = "inclusive mesh; indicates strictly that which the viewer can see."] pub const VISIBLE_TRIANGLE_MESH: VisibilityMaskTypeKHR = Self(2i32); #[doc = "line loop; traces the outline of the area the viewer can see."] pub const LINE_LOOP: VisibilityMaskTypeKHR = Self(3i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for VisibilityMaskTypeKHR { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::HIDDEN_TRIANGLE_MESH => Some("HIDDEN_TRIANGLE_MESH"), Self::VISIBLE_TRIANGLE_MESH => Some("VISIBLE_TRIANGLE_MESH"), Self::LINE_LOOP => Some("LINE_LOOP"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrSpatialGraphNodeTypeMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpatialGraphNodeTypeMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct SpatialGraphNodeTypeMSFT(i32); impl SpatialGraphNodeTypeMSFT { pub const STATIC: SpatialGraphNodeTypeMSFT = Self(1i32); pub const DYNAMIC: SpatialGraphNodeTypeMSFT = Self(2i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for SpatialGraphNodeTypeMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::STATIC => Some("STATIC"), Self::DYNAMIC => Some("DYNAMIC"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrHandEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct HandEXT(i32); impl HandEXT { pub const LEFT: HandEXT = Self(1i32); pub const RIGHT: HandEXT = Self(2i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for HandEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::LEFT => Some("LEFT"), Self::RIGHT => Some("RIGHT"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrHandJointEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct HandJointEXT(i32); impl HandJointEXT { pub const PALM: HandJointEXT = Self(0i32); pub const WRIST: HandJointEXT = Self(1i32); pub const THUMB_METACARPAL: HandJointEXT = Self(2i32); pub const THUMB_PROXIMAL: HandJointEXT = Self(3i32); pub const THUMB_DISTAL: HandJointEXT = Self(4i32); pub const THUMB_TIP: HandJointEXT = Self(5i32); pub const INDEX_METACARPAL: HandJointEXT = Self(6i32); pub const INDEX_PROXIMAL: HandJointEXT = Self(7i32); pub const INDEX_INTERMEDIATE: HandJointEXT = Self(8i32); pub const INDEX_DISTAL: HandJointEXT = Self(9i32); pub const INDEX_TIP: HandJointEXT = Self(10i32); pub const MIDDLE_METACARPAL: HandJointEXT = Self(11i32); pub const MIDDLE_PROXIMAL: HandJointEXT = Self(12i32); pub const MIDDLE_INTERMEDIATE: HandJointEXT = Self(13i32); pub const MIDDLE_DISTAL: HandJointEXT = Self(14i32); pub const MIDDLE_TIP: HandJointEXT = Self(15i32); pub const RING_METACARPAL: HandJointEXT = Self(16i32); pub const RING_PROXIMAL: HandJointEXT = Self(17i32); pub const RING_INTERMEDIATE: HandJointEXT = Self(18i32); pub const RING_DISTAL: HandJointEXT = Self(19i32); pub const RING_TIP: HandJointEXT = Self(20i32); pub const LITTLE_METACARPAL: HandJointEXT = Self(21i32); pub const LITTLE_PROXIMAL: HandJointEXT = Self(22i32); pub const LITTLE_INTERMEDIATE: HandJointEXT = Self(23i32); pub const LITTLE_DISTAL: HandJointEXT = Self(24i32); pub const LITTLE_TIP: HandJointEXT = Self(25i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for HandJointEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::PALM => Some("PALM"), Self::WRIST => Some("WRIST"), Self::THUMB_METACARPAL => Some("THUMB_METACARPAL"), Self::THUMB_PROXIMAL => Some("THUMB_PROXIMAL"), Self::THUMB_DISTAL => Some("THUMB_DISTAL"), Self::THUMB_TIP => Some("THUMB_TIP"), Self::INDEX_METACARPAL => Some("INDEX_METACARPAL"), Self::INDEX_PROXIMAL => Some("INDEX_PROXIMAL"), Self::INDEX_INTERMEDIATE => Some("INDEX_INTERMEDIATE"), Self::INDEX_DISTAL => Some("INDEX_DISTAL"), Self::INDEX_TIP => Some("INDEX_TIP"), Self::MIDDLE_METACARPAL => Some("MIDDLE_METACARPAL"), Self::MIDDLE_PROXIMAL => Some("MIDDLE_PROXIMAL"), Self::MIDDLE_INTERMEDIATE => Some("MIDDLE_INTERMEDIATE"), Self::MIDDLE_DISTAL => Some("MIDDLE_DISTAL"), Self::MIDDLE_TIP => Some("MIDDLE_TIP"), Self::RING_METACARPAL => Some("RING_METACARPAL"), Self::RING_PROXIMAL => Some("RING_PROXIMAL"), Self::RING_INTERMEDIATE => Some("RING_INTERMEDIATE"), Self::RING_DISTAL => Some("RING_DISTAL"), Self::RING_TIP => Some("RING_TIP"), Self::LITTLE_METACARPAL => Some("LITTLE_METACARPAL"), Self::LITTLE_PROXIMAL => Some("LITTLE_PROXIMAL"), Self::LITTLE_INTERMEDIATE => Some("LITTLE_INTERMEDIATE"), Self::LITTLE_DISTAL => Some("LITTLE_DISTAL"), Self::LITTLE_TIP => Some("LITTLE_TIP"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrHandJointSetEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointSetEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct HandJointSetEXT(i32); impl HandJointSetEXT { pub const DEFAULT: HandJointSetEXT = Self(0i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for HandJointSetEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::DEFAULT => Some("DEFAULT"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrHandJointsMotionRangeEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointsMotionRangeEXT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct HandJointsMotionRangeEXT(i32); impl HandJointsMotionRangeEXT { pub const UNOBSTRUCTED: HandJointsMotionRangeEXT = Self(1i32); pub const CONFORMING_TO_CONTROLLER: HandJointsMotionRangeEXT = Self(2i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for HandJointsMotionRangeEXT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::UNOBSTRUCTED => Some("UNOBSTRUCTED"), Self::CONFORMING_TO_CONTROLLER => Some("CONFORMING_TO_CONTROLLER"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrHandPoseTypeMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandPoseTypeMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct HandPoseTypeMSFT(i32); impl HandPoseTypeMSFT { pub const TRACKED: HandPoseTypeMSFT = Self(0i32); pub const REFERENCE_OPEN_PALM: HandPoseTypeMSFT = Self(1i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for HandPoseTypeMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::TRACKED => Some("TRACKED"), Self::REFERENCE_OPEN_PALM => Some("REFERENCE_OPEN_PALM"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrSceneObjectTypeMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSceneObjectTypeMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct SceneObjectTypeMSFT(i32); impl SceneObjectTypeMSFT { pub const UNCATEGORIZED: SceneObjectTypeMSFT = Self(-1i32); pub const BACKGROUND: SceneObjectTypeMSFT = Self(1i32); pub const WALL: SceneObjectTypeMSFT = Self(2i32); pub const FLOOR: SceneObjectTypeMSFT = Self(3i32); pub const CEILING: SceneObjectTypeMSFT = Self(4i32); pub const PLATFORM: SceneObjectTypeMSFT = Self(5i32); pub const INFERRED: SceneObjectTypeMSFT = Self(6i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for SceneObjectTypeMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::UNCATEGORIZED => Some("UNCATEGORIZED"), Self::BACKGROUND => Some("BACKGROUND"), Self::WALL => Some("WALL"), Self::FLOOR => Some("FLOOR"), Self::CEILING => Some("CEILING"), Self::PLATFORM => Some("PLATFORM"), Self::INFERRED => Some("INFERRED"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrScenePlaneAlignmentTypeMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrScenePlaneAlignmentTypeMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct ScenePlaneAlignmentTypeMSFT(i32); impl ScenePlaneAlignmentTypeMSFT { pub const NON_ORTHOGONAL: ScenePlaneAlignmentTypeMSFT = Self(0i32); pub const HORIZONTAL: ScenePlaneAlignmentTypeMSFT = Self(1i32); pub const VERTICAL: ScenePlaneAlignmentTypeMSFT = Self(2i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for ScenePlaneAlignmentTypeMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::NON_ORTHOGONAL => Some("NON_ORTHOGONAL"), Self::HORIZONTAL => Some("HORIZONTAL"), Self::VERTICAL => Some("VERTICAL"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrSceneComputeStateMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSceneComputeStateMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct SceneComputeStateMSFT(i32); impl SceneComputeStateMSFT { pub const NONE: SceneComputeStateMSFT = Self(0i32); pub const UPDATING: SceneComputeStateMSFT = Self(1i32); pub const COMPLETED: SceneComputeStateMSFT = Self(2i32); pub const COMPLETED_WITH_ERROR: SceneComputeStateMSFT = Self(3i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for SceneComputeStateMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::NONE => Some("NONE"), Self::UPDATING => Some("UPDATING"), Self::COMPLETED => Some("COMPLETED"), Self::COMPLETED_WITH_ERROR => Some("COMPLETED_WITH_ERROR"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrSceneComputeFeatureMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSceneComputeFeatureMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct SceneComputeFeatureMSFT(i32); impl SceneComputeFeatureMSFT { pub const PLANE: SceneComputeFeatureMSFT = Self(1i32); pub const PLANE_MESH: SceneComputeFeatureMSFT = Self(2i32); pub const VISUAL_MESH: SceneComputeFeatureMSFT = Self(3i32); pub const COLLIDER_MESH: SceneComputeFeatureMSFT = Self(4i32); pub const SERIALIZE_SCENE: SceneComputeFeatureMSFT = Self(1000098000i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for SceneComputeFeatureMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::PLANE => Some("PLANE"), Self::PLANE_MESH => Some("PLANE_MESH"), Self::VISUAL_MESH => Some("VISUAL_MESH"), Self::COLLIDER_MESH => Some("COLLIDER_MESH"), Self::SERIALIZE_SCENE => Some("SERIALIZE_SCENE"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrSceneComputeConsistencyMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSceneComputeConsistencyMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct SceneComputeConsistencyMSFT(i32); impl SceneComputeConsistencyMSFT { pub const SNAPSHOT_COMPLETE: SceneComputeConsistencyMSFT = Self(1i32); pub const SNAPSHOT_INCOMPLETE_FAST: SceneComputeConsistencyMSFT = Self(2i32); pub const OCCLUSION_OPTIMIZED: SceneComputeConsistencyMSFT = Self(3i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for SceneComputeConsistencyMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::SNAPSHOT_COMPLETE => Some("SNAPSHOT_COMPLETE"), Self::SNAPSHOT_INCOMPLETE_FAST => Some("SNAPSHOT_INCOMPLETE_FAST"), Self::OCCLUSION_OPTIMIZED => Some("OCCLUSION_OPTIMIZED"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrSceneComponentTypeMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSceneComponentTypeMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct SceneComponentTypeMSFT(i32); impl SceneComponentTypeMSFT { pub const INVALID: SceneComponentTypeMSFT = Self(-1i32); pub const OBJECT: SceneComponentTypeMSFT = Self(1i32); pub const PLANE: SceneComponentTypeMSFT = Self(2i32); pub const VISUAL_MESH: SceneComponentTypeMSFT = Self(3i32); pub const COLLIDER_MESH: SceneComponentTypeMSFT = Self(4i32); pub const SERIALIZED_SCENE_FRAGMENT: SceneComponentTypeMSFT = Self(1000098000i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for SceneComponentTypeMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::INVALID => Some("INVALID"), Self::OBJECT => Some("OBJECT"), Self::PLANE => Some("PLANE"), Self::VISUAL_MESH => Some("VISUAL_MESH"), Self::COLLIDER_MESH => Some("COLLIDER_MESH"), Self::SERIALIZED_SCENE_FRAGMENT => Some("SERIALIZED_SCENE_FRAGMENT"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrMeshComputeLodMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrMeshComputeLodMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct MeshComputeLodMSFT(i32); impl MeshComputeLodMSFT { pub const COARSE: MeshComputeLodMSFT = Self(1i32); pub const MEDIUM: MeshComputeLodMSFT = Self(2i32); pub const FINE: MeshComputeLodMSFT = Self(3i32); pub const UNLIMITED: MeshComputeLodMSFT = Self(4i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for MeshComputeLodMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::COARSE => Some("COARSE"), Self::MEDIUM => Some("MEDIUM"), Self::FINE => Some("FINE"), Self::UNLIMITED => Some("UNLIMITED"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrColorSpaceFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrColorSpaceFB)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct ColorSpaceFB(i32); impl ColorSpaceFB { pub const UNMANAGED: ColorSpaceFB = Self(0i32); pub const REC2020: ColorSpaceFB = Self(1i32); pub const REC709: ColorSpaceFB = Self(2i32); pub const RIFT_CV1: ColorSpaceFB = Self(3i32); pub const RIFT_S: ColorSpaceFB = Self(4i32); pub const QUEST: ColorSpaceFB = Self(5i32); pub const P3: ColorSpaceFB = Self(6i32); pub const ADOBE_RGB: ColorSpaceFB = Self(7i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for ColorSpaceFB { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::UNMANAGED => Some("UNMANAGED"), Self::REC2020 => Some("REC2020"), Self::REC709 => Some("REC709"), Self::RIFT_CV1 => Some("RIFT_CV1"), Self::RIFT_S => Some("RIFT_S"), Self::QUEST => Some("QUEST"), Self::P3 => Some("P3"), Self::ADOBE_RGB => Some("ADOBE_RGB"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrReprojectionModeMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrReprojectionModeMSFT)"] #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq)] pub struct ReprojectionModeMSFT(i32); impl ReprojectionModeMSFT { pub const DEPTH: ReprojectionModeMSFT = Self(1i32); pub const PLANAR_FROM_DEPTH: ReprojectionModeMSFT = Self(2i32); pub const PLANAR_MANUAL: ReprojectionModeMSFT = Self(3i32); pub const ORIENTATION_ONLY: ReprojectionModeMSFT = Self(4i32); pub fn from_raw(x: i32) -> Self { Self(x) } pub fn into_raw(self) -> i32 { self.0 } } impl fmt::Debug for ReprojectionModeMSFT { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { let name = match *self { Self::DEPTH => Some("DEPTH"), Self::PLANAR_FROM_DEPTH => Some("PLANAR_FROM_DEPTH"), Self::PLANAR_MANUAL => Some("PLANAR_MANUAL"), Self::ORIENTATION_ONLY => Some("ORIENTATION_ONLY"), _ => None, }; fmt_enum(fmt, self.0, name) } } #[doc = "See [XrInstanceCreateFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInstanceCreateFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct InstanceCreateFlags(u64); impl InstanceCreateFlags {} bitmask!(InstanceCreateFlags); #[doc = "See [XrSessionCreateFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSessionCreateFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SessionCreateFlags(u64); impl SessionCreateFlags {} bitmask!(SessionCreateFlags); #[doc = "See [XrSwapchainCreateFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainCreateFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SwapchainCreateFlags(u64); impl SwapchainCreateFlags { #[doc = "Content will be protected from CPU access"] pub const PROTECTED_CONTENT: SwapchainCreateFlags = Self(1 << 0u64); #[doc = "Only one image will be acquired from this swapchain over its lifetime"] pub const STATIC_IMAGE: SwapchainCreateFlags = Self(1 << 1u64); } bitmask!(SwapchainCreateFlags); #[doc = "See [XrSwapchainUsageFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainUsageFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SwapchainUsageFlags(u64); impl SwapchainUsageFlags { #[doc = "Specifies that the image may: be a color rendering target."] pub const COLOR_ATTACHMENT: SwapchainUsageFlags = Self(1 << 0u64); #[doc = "Specifies that the image may: be a depth/stencil rendering target."] pub const DEPTH_STENCIL_ATTACHMENT: SwapchainUsageFlags = Self(1 << 1u64); #[doc = "Specifies that the image may: be accessed out of order and that access may: be via atomic operations."] pub const UNORDERED_ACCESS: SwapchainUsageFlags = Self(1 << 2u64); #[doc = "Specifies that the image may: be used as the source of a transfer operation."] pub const TRANSFER_SRC: SwapchainUsageFlags = Self(1 << 3u64); #[doc = "Specifies that the image may: be used as the destination of a transfer operation."] pub const TRANSFER_DST: SwapchainUsageFlags = Self(1 << 4u64); #[doc = "Specifies that the image may: be sampled by a shader."] pub const SAMPLED: SwapchainUsageFlags = Self(1 << 5u64); #[doc = "Specifies that the image may: be reinterpreted as another image format."] pub const MUTABLE_FORMAT: SwapchainUsageFlags = Self(1 << 6u64); #[doc = "Specifies that the image may: be used as a input attachment."] pub const INPUT_ATTACHMENT: SwapchainUsageFlags = Self(1 << 7u64); } bitmask!(SwapchainUsageFlags); #[doc = "See [XrViewStateFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewStateFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct ViewStateFlags(u64); impl ViewStateFlags { #[doc = "Indicates validity of all XrView orientations"] pub const ORIENTATION_VALID: ViewStateFlags = Self(1 << 0u64); #[doc = "Indicates validity of all XrView positions"] pub const POSITION_VALID: ViewStateFlags = Self(1 << 1u64); #[doc = "Indicates whether all XrView orientations are actively tracked"] pub const ORIENTATION_TRACKED: ViewStateFlags = Self(1 << 2u64); #[doc = "Indicates whether all XrView positions are actively tracked"] pub const POSITION_TRACKED: ViewStateFlags = Self(1 << 3u64); } bitmask!(ViewStateFlags); #[doc = "See [XrCompositionLayerFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct CompositionLayerFlags(u64); impl CompositionLayerFlags { #[doc = "Enables chromatic aberration correction when not done by default."] pub const CORRECT_CHROMATIC_ABERRATION: CompositionLayerFlags = Self(1 << 0u64); #[doc = "Enables the layer texture alpha channel."] pub const BLEND_TEXTURE_SOURCE_ALPHA: CompositionLayerFlags = Self(1 << 1u64); #[doc = "Indicates the texture color channels have not been premultiplied by the texture alpha channel."] pub const UNPREMULTIPLIED_ALPHA: CompositionLayerFlags = Self(1 << 2u64); } bitmask!(CompositionLayerFlags); #[doc = "See [XrSpaceLocationFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpaceLocationFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SpaceLocationFlags(u64); impl SpaceLocationFlags { #[doc = "Indicates that the orientation member contains valid data"] pub const ORIENTATION_VALID: SpaceLocationFlags = Self(1 << 0u64); #[doc = "Indicates that the position member contains valid data"] pub const POSITION_VALID: SpaceLocationFlags = Self(1 << 1u64); #[doc = "Indicates whether pose member contains an actively tracked orientation"] pub const ORIENTATION_TRACKED: SpaceLocationFlags = Self(1 << 2u64); #[doc = "Indicates whether pose member contains an actively tracked position"] pub const POSITION_TRACKED: SpaceLocationFlags = Self(1 << 3u64); } bitmask!(SpaceLocationFlags); #[doc = "See [XrSpaceVelocityFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpaceVelocityFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SpaceVelocityFlags(u64); impl SpaceVelocityFlags { #[doc = "Indicates that the linearVelocity member contains valid data"] pub const LINEAR_VALID: SpaceVelocityFlags = Self(1 << 0u64); #[doc = "Indicates that the angularVelocity member contains valid data"] pub const ANGULAR_VALID: SpaceVelocityFlags = Self(1 << 1u64); } bitmask!(SpaceVelocityFlags); #[doc = "See [XrInputSourceLocalizedNameFlagBits](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInputSourceLocalizedNameFlagBits)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct InputSourceLocalizedNameFlags(u64); impl InputSourceLocalizedNameFlags { #[doc = "Asks for the part of the string which indicates the top level user path the source represents"] pub const USER_PATH: InputSourceLocalizedNameFlags = Self(1 << 0u64); #[doc = "Asks for the part of the string which represents the interaction profile of the source"] pub const INTERACTION_PROFILE: InputSourceLocalizedNameFlags = Self(1 << 1u64); #[doc = "Asks for the part of the string which represents the component on the device which needs to be interacted with"] pub const COMPONENT: InputSourceLocalizedNameFlags = Self(1 << 2u64); } bitmask!(InputSourceLocalizedNameFlags); #[doc = "See [XrVulkanInstanceCreateFlagsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVulkanInstanceCreateFlagsKHR)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct VulkanInstanceCreateFlagsKHR(u64); impl VulkanInstanceCreateFlagsKHR {} bitmask!(VulkanInstanceCreateFlagsKHR); #[doc = "See [XrVulkanDeviceCreateFlagsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVulkanDeviceCreateFlagsKHR)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct VulkanDeviceCreateFlagsKHR(u64); impl VulkanDeviceCreateFlagsKHR {} bitmask!(VulkanDeviceCreateFlagsKHR); #[doc = "See [XrDebugUtilsMessageSeverityFlagsEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrDebugUtilsMessageSeverityFlagsEXT)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct DebugUtilsMessageSeverityFlagsEXT(u64); impl DebugUtilsMessageSeverityFlagsEXT { #[doc = "Most verbose output severity, typically used for debugging."] pub const VERBOSE: DebugUtilsMessageSeverityFlagsEXT = Self(1 << 0u64); #[doc = "General info message"] pub const INFO: DebugUtilsMessageSeverityFlagsEXT = Self(1 << 4u64); #[doc = "Indicates the item may be the cause of issues."] pub const WARNING: DebugUtilsMessageSeverityFlagsEXT = Self(1 << 8u64); #[doc = "Indicates that the item is definitely related to erroneous behavior."] pub const ERROR: DebugUtilsMessageSeverityFlagsEXT = Self(1 << 12u64); } bitmask!(DebugUtilsMessageSeverityFlagsEXT); #[doc = "See [XrDebugUtilsMessageTypeFlagsEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrDebugUtilsMessageTypeFlagsEXT)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct DebugUtilsMessageTypeFlagsEXT(u64); impl DebugUtilsMessageTypeFlagsEXT { #[doc = "Indicates this is a general message"] pub const GENERAL: DebugUtilsMessageTypeFlagsEXT = Self(1 << 0u64); #[doc = "Indicates the message is related to a validation message"] pub const VALIDATION: DebugUtilsMessageTypeFlagsEXT = Self(1 << 1u64); #[doc = "Indicates the message is related to a potential performance situation"] pub const PERFORMANCE: DebugUtilsMessageTypeFlagsEXT = Self(1 << 2u64); #[doc = "Indicates the message is related to a non-conformant runtime result"] pub const CONFORMANCE: DebugUtilsMessageTypeFlagsEXT = Self(1 << 3u64); } bitmask!(DebugUtilsMessageTypeFlagsEXT); #[doc = "See [XrOverlayMainSessionFlagsEXTX](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrOverlayMainSessionFlagsEXTX)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct OverlayMainSessionFlagsEXTX(u64); impl OverlayMainSessionFlagsEXTX { #[doc = "Indicates the main session enabled `XR_KHR_composition_layer_depth`"] pub const ENABLED_COMPOSITION_LAYER_INFO_DEPTH: OverlayMainSessionFlagsEXTX = Self(1 << 0u64); } bitmask!(OverlayMainSessionFlagsEXTX); #[doc = "See [XrOverlaySessionCreateFlagsEXTX](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrOverlaySessionCreateFlagsEXTX)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct OverlaySessionCreateFlagsEXTX(u64); impl OverlaySessionCreateFlagsEXTX {} bitmask!(OverlaySessionCreateFlagsEXTX); #[doc = "See [XrAndroidSurfaceSwapchainFlagsFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrAndroidSurfaceSwapchainFlagsFB)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct AndroidSurfaceSwapchainFlagsFB(u64); impl AndroidSurfaceSwapchainFlagsFB { #[doc = "Create the underlying BufferQueue in synchronous mode"] pub const SYNCHRONOUS: AndroidSurfaceSwapchainFlagsFB = Self(1 << 0u64); #[doc = "Acquire most recent buffer whose presentation timestamp is not greater than display time of final composited frame"] pub const USE_TIMESTAMPS: AndroidSurfaceSwapchainFlagsFB = Self(1 << 1u64); } bitmask!(AndroidSurfaceSwapchainFlagsFB); #[doc = "See [XrInstance](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInstance)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct Instance(u64); handle!(Instance); #[doc = "See [XrSession](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSession)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct Session(u64); handle!(Session); #[doc = "See [XrActionSet](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionSet)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct ActionSet(u64); handle!(ActionSet); #[doc = "See [XrAction](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrAction)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct Action(u64); handle!(Action); #[doc = "See [XrSwapchain](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchain)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct Swapchain(u64); handle!(Swapchain); #[doc = "See [XrSpace](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpace)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct Space(u64); handle!(Space); #[doc = "See [XrDebugUtilsMessengerEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrDebugUtilsMessengerEXT)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct DebugUtilsMessengerEXT(u64); handle!(DebugUtilsMessengerEXT); #[doc = "See [XrSpatialAnchorMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpatialAnchorMSFT)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SpatialAnchorMSFT(u64); handle!(SpatialAnchorMSFT); #[doc = "See [XrHandTrackerEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandTrackerEXT)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct HandTrackerEXT(u64); handle!(HandTrackerEXT); #[doc = "See [XrSceneObserverMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSceneObserverMSFT)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SceneObserverMSFT(u64); handle!(SceneObserverMSFT); #[doc = "See [XrSceneMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSceneMSFT)"] #[repr(transparent)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct SceneMSFT(u64); handle!(SceneMSFT); #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrVector2f](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVector2f)"] pub struct Vector2f { pub x: f32, pub y: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrVector3f](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVector3f)"] pub struct Vector3f { pub x: f32, pub y: f32, pub z: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrVector4f](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVector4f)"] pub struct Vector4f { pub x: f32, pub y: f32, pub z: f32, pub w: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrColor4f](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrColor4f)"] pub struct Color4f { pub r: f32, pub g: f32, pub b: f32, pub a: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrQuaternionf](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrQuaternionf)"] pub struct Quaternionf { pub x: f32, pub y: f32, pub z: f32, pub w: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrPosef](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrPosef)"] pub struct Posef { pub orientation: Quaternionf, pub position: Vector3f, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrOffset2Df](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrOffset2Df)"] pub struct Offset2Df { pub x: f32, pub y: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrExtent2Df](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrExtent2Df)"] pub struct Extent2Df { pub width: f32, pub height: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrRect2Df](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrRect2Df)"] pub struct Rect2Df { pub offset: Offset2Df, pub extent: Extent2Df, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrOffset2Di](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrOffset2Di)"] pub struct Offset2Di { pub x: i32, pub y: i32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrExtent2Di](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrExtent2Di)"] pub struct Extent2Di { pub width: i32, pub height: i32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrRect2Di](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrRect2Di)"] pub struct Rect2Di { pub offset: Offset2Di, pub extent: Extent2Di, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrBaseInStructure](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrBaseInStructure)"] pub struct BaseInStructure { pub ty: StructureType, pub next: *const BaseInStructure, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrBaseOutStructure](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrBaseOutStructure)"] pub struct BaseOutStructure { pub ty: StructureType, pub next: *mut BaseOutStructure, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrApiLayerProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrApiLayerProperties)"] pub struct ApiLayerProperties { pub ty: StructureType, pub next: *mut c_void, pub layer_name: [c_char; MAX_API_LAYER_NAME_SIZE], pub spec_version: Version, pub layer_version: u32, pub description: [c_char; MAX_API_LAYER_DESCRIPTION_SIZE], } impl ApiLayerProperties { pub const TYPE: StructureType = StructureType::API_LAYER_PROPERTIES; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrExtensionProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrExtensionProperties)"] pub struct ExtensionProperties { pub ty: StructureType, pub next: *mut c_void, pub extension_name: [c_char; MAX_EXTENSION_NAME_SIZE], pub extension_version: u32, } impl ExtensionProperties { pub const TYPE: StructureType = StructureType::EXTENSION_PROPERTIES; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrApplicationInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrApplicationInfo)"] pub struct ApplicationInfo { pub application_name: [c_char; MAX_APPLICATION_NAME_SIZE], pub application_version: u32, pub engine_name: [c_char; MAX_ENGINE_NAME_SIZE], pub engine_version: u32, pub api_version: Version, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrInstanceCreateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInstanceCreateInfo)"] pub struct InstanceCreateInfo { pub ty: StructureType, pub next: *const c_void, pub create_flags: InstanceCreateFlags, pub application_info: ApplicationInfo, pub enabled_api_layer_count: u32, pub enabled_api_layer_names: *const *const c_char, pub enabled_extension_count: u32, pub enabled_extension_names: *const *const c_char, } impl InstanceCreateInfo { pub const TYPE: StructureType = StructureType::INSTANCE_CREATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrInstanceProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInstanceProperties)"] pub struct InstanceProperties { pub ty: StructureType, pub next: *mut c_void, pub runtime_version: Version, pub runtime_name: [c_char; MAX_RUNTIME_NAME_SIZE], } impl InstanceProperties { pub const TYPE: StructureType = StructureType::INSTANCE_PROPERTIES; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSystemGetInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemGetInfo)"] pub struct SystemGetInfo { pub ty: StructureType, pub next: *const c_void, pub form_factor: FormFactor, } impl SystemGetInfo { pub const TYPE: StructureType = StructureType::SYSTEM_GET_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSystemProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemProperties)"] pub struct SystemProperties { pub ty: StructureType, pub next: *mut c_void, pub system_id: SystemId, pub vendor_id: u32, pub system_name: [c_char; MAX_SYSTEM_NAME_SIZE], pub graphics_properties: SystemGraphicsProperties, pub tracking_properties: SystemTrackingProperties, } impl SystemProperties { pub const TYPE: StructureType = StructureType::SYSTEM_PROPERTIES; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrSystemGraphicsProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemGraphicsProperties)"] pub struct SystemGraphicsProperties { pub max_swapchain_image_height: u32, pub max_swapchain_image_width: u32, pub max_layer_count: u32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrSystemTrackingProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemTrackingProperties)"] pub struct SystemTrackingProperties { pub orientation_tracking: Bool32, pub position_tracking: Bool32, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingOpenGLWin32KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingOpenGLWin32KHR) - defined by [XR_KHR_opengl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_enable)"] #[cfg(windows)] pub struct GraphicsBindingOpenGLWin32KHR { pub ty: StructureType, pub next: *const c_void, pub h_dc: HDC, pub h_glrc: HGLRC, } #[cfg(windows)] impl GraphicsBindingOpenGLWin32KHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_OPENGL_WIN32_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingOpenGLXlibKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingOpenGLXlibKHR) - defined by [XR_KHR_opengl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_enable)"] pub struct GraphicsBindingOpenGLXlibKHR { pub ty: StructureType, pub next: *const c_void, pub x_display: *mut Display, pub visualid: u32, pub glx_fb_config: GLXFBConfig, pub glx_drawable: GLXDrawable, pub glx_context: GLXContext, } impl GraphicsBindingOpenGLXlibKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_OPENGL_XLIB_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingOpenGLXcbKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingOpenGLXcbKHR) - defined by [XR_KHR_opengl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_enable)"] pub struct GraphicsBindingOpenGLXcbKHR { pub ty: StructureType, pub next: *const c_void, pub connection: *mut xcb_connection_t, pub screen_number: u32, pub fbconfigid: xcb_glx_fbconfig_t, pub visualid: xcb_visualid_t, pub glx_drawable: xcb_glx_drawable_t, pub glx_context: xcb_glx_context_t, } impl GraphicsBindingOpenGLXcbKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_OPENGL_XCB_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingOpenGLWaylandKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingOpenGLWaylandKHR) - defined by [XR_KHR_opengl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_enable)"] pub struct GraphicsBindingOpenGLWaylandKHR { pub ty: StructureType, pub next: *const c_void, pub display: *mut wl_display, } impl GraphicsBindingOpenGLWaylandKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_OPENGL_WAYLAND_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingD3D11KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingD3D11KHR) - defined by [XR_KHR_D3D11_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D11_enable)"] #[cfg(windows)] pub struct GraphicsBindingD3D11KHR { pub ty: StructureType, pub next: *const c_void, pub device: *mut ID3D11Device, } #[cfg(windows)] impl GraphicsBindingD3D11KHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_D3D11_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingD3D12KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingD3D12KHR) - defined by [XR_KHR_D3D12_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D12_enable)"] #[cfg(windows)] pub struct GraphicsBindingD3D12KHR { pub ty: StructureType, pub next: *const c_void, pub device: *mut ID3D12Device, pub queue: *mut ID3D12CommandQueue, } #[cfg(windows)] impl GraphicsBindingD3D12KHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_D3D12_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingOpenGLESAndroidKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingOpenGLESAndroidKHR) - defined by [XR_KHR_opengl_es_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_es_enable)"] #[cfg(target_os = "android")] pub struct GraphicsBindingOpenGLESAndroidKHR { pub ty: StructureType, pub next: *const c_void, pub display: EGLDisplay, pub config: EGLConfig, pub context: EGLContext, } #[cfg(target_os = "android")] impl GraphicsBindingOpenGLESAndroidKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingVulkanKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingVulkanKHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub struct GraphicsBindingVulkanKHR { pub ty: StructureType, pub next: *const c_void, pub instance: VkInstance, pub physical_device: VkPhysicalDevice, pub device: VkDevice, pub queue_family_index: u32, pub queue_index: u32, } impl GraphicsBindingVulkanKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_VULKAN_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSessionCreateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSessionCreateInfo)"] pub struct SessionCreateInfo { pub ty: StructureType, pub next: *const c_void, pub create_flags: SessionCreateFlags, pub system_id: SystemId, } impl SessionCreateInfo { pub const TYPE: StructureType = StructureType::SESSION_CREATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSessionBeginInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSessionBeginInfo)"] pub struct SessionBeginInfo { pub ty: StructureType, pub next: *const c_void, pub primary_view_configuration_type: ViewConfigurationType, } impl SessionBeginInfo { pub const TYPE: StructureType = StructureType::SESSION_BEGIN_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainCreateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainCreateInfo)"] pub struct SwapchainCreateInfo { pub ty: StructureType, pub next: *const c_void, pub create_flags: SwapchainCreateFlags, pub usage_flags: SwapchainUsageFlags, pub format: i64, pub sample_count: u32, pub width: u32, pub height: u32, pub face_count: u32, pub array_size: u32, pub mip_count: u32, } impl SwapchainCreateInfo { pub const TYPE: StructureType = StructureType::SWAPCHAIN_CREATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageBaseHeader](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageBaseHeader)"] pub struct SwapchainImageBaseHeader { pub ty: StructureType, pub next: *mut c_void, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageOpenGLKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageOpenGLKHR) - defined by [XR_KHR_opengl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_enable)"] pub struct SwapchainImageOpenGLKHR { pub ty: StructureType, pub next: *mut c_void, pub image: u32, } impl SwapchainImageOpenGLKHR { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_OPENGL_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageOpenGLESKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageOpenGLESKHR) - defined by [XR_KHR_opengl_es_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_es_enable)"] pub struct SwapchainImageOpenGLESKHR { pub ty: StructureType, pub next: *mut c_void, pub image: u32, } impl SwapchainImageOpenGLESKHR { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_OPENGL_ES_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageVulkanKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageVulkanKHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub struct SwapchainImageVulkanKHR { pub ty: StructureType, pub next: *mut c_void, pub image: VkImage, } impl SwapchainImageVulkanKHR { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_VULKAN_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageD3D11KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageD3D11KHR) - defined by [XR_KHR_D3D11_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D11_enable)"] #[cfg(windows)] pub struct SwapchainImageD3D11KHR { pub ty: StructureType, pub next: *mut c_void, pub texture: *mut ID3D11Texture2D, } #[cfg(windows)] impl SwapchainImageD3D11KHR { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_D3D11_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageD3D12KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageD3D12KHR) - defined by [XR_KHR_D3D12_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D12_enable)"] #[cfg(windows)] pub struct SwapchainImageD3D12KHR { pub ty: StructureType, pub next: *mut c_void, pub texture: *mut ID3D12Resource, } #[cfg(windows)] impl SwapchainImageD3D12KHR { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_D3D12_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageAcquireInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageAcquireInfo)"] pub struct SwapchainImageAcquireInfo { pub ty: StructureType, pub next: *const c_void, } impl SwapchainImageAcquireInfo { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_ACQUIRE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageWaitInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageWaitInfo)"] pub struct SwapchainImageWaitInfo { pub ty: StructureType, pub next: *const c_void, pub timeout: Duration, } impl SwapchainImageWaitInfo { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_WAIT_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainImageReleaseInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainImageReleaseInfo)"] pub struct SwapchainImageReleaseInfo { pub ty: StructureType, pub next: *const c_void, } impl SwapchainImageReleaseInfo { pub const TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_RELEASE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrReferenceSpaceCreateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrReferenceSpaceCreateInfo)"] pub struct ReferenceSpaceCreateInfo { pub ty: StructureType, pub next: *const c_void, pub reference_space_type: ReferenceSpaceType, pub pose_in_reference_space: Posef, } impl ReferenceSpaceCreateInfo { pub const TYPE: StructureType = StructureType::REFERENCE_SPACE_CREATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionSpaceCreateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionSpaceCreateInfo)"] pub struct ActionSpaceCreateInfo { pub ty: StructureType, pub next: *const c_void, pub action: Action, pub subaction_path: Path, pub pose_in_action_space: Posef, } impl ActionSpaceCreateInfo { pub const TYPE: StructureType = StructureType::ACTION_SPACE_CREATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSpaceLocation](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpaceLocation)"] pub struct SpaceLocation { pub ty: StructureType, pub next: *mut c_void, pub location_flags: SpaceLocationFlags, pub pose: Posef, } impl SpaceLocation { pub const TYPE: StructureType = StructureType::SPACE_LOCATION; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSpaceVelocity](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpaceVelocity)"] pub struct SpaceVelocity { pub ty: StructureType, pub next: *mut c_void, pub velocity_flags: SpaceVelocityFlags, pub linear_velocity: Vector3f, pub angular_velocity: Vector3f, } impl SpaceVelocity { pub const TYPE: StructureType = StructureType::SPACE_VELOCITY; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrFovf](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFovf)"] pub struct Fovf { pub angle_left: f32, pub angle_right: f32, pub angle_up: f32, pub angle_down: f32, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrView](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrView)"] pub struct View { pub ty: StructureType, pub next: *mut c_void, pub pose: Posef, pub fov: Fovf, } impl View { pub const TYPE: StructureType = StructureType::VIEW; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrViewLocateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewLocateInfo)"] pub struct ViewLocateInfo { pub ty: StructureType, pub next: *const c_void, pub view_configuration_type: ViewConfigurationType, pub display_time: Time, pub space: Space, } impl ViewLocateInfo { pub const TYPE: StructureType = StructureType::VIEW_LOCATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrViewState](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewState)"] pub struct ViewState { pub ty: StructureType, pub next: *mut c_void, pub view_state_flags: ViewStateFlags, } impl ViewState { pub const TYPE: StructureType = StructureType::VIEW_STATE; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrViewConfigurationView](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewConfigurationView)"] pub struct ViewConfigurationView { pub ty: StructureType, pub next: *mut c_void, pub recommended_image_rect_width: u32, pub max_image_rect_width: u32, pub recommended_image_rect_height: u32, pub max_image_rect_height: u32, pub recommended_swapchain_sample_count: u32, pub max_swapchain_sample_count: u32, } impl ViewConfigurationView { pub const TYPE: StructureType = StructureType::VIEW_CONFIGURATION_VIEW; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainSubImage](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainSubImage)"] pub struct SwapchainSubImage { pub swapchain: Swapchain, pub image_rect: Rect2Di, pub image_array_index: u32, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerBaseHeader](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerBaseHeader)"] pub struct CompositionLayerBaseHeader { pub ty: StructureType, pub next: *const c_void, pub layer_flags: CompositionLayerFlags, pub space: Space, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerProjectionView](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerProjectionView)"] pub struct CompositionLayerProjectionView { pub ty: StructureType, pub next: *const c_void, pub pose: Posef, pub fov: Fovf, pub sub_image: SwapchainSubImage, } impl CompositionLayerProjectionView { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_PROJECTION_VIEW; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerProjection](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerProjection)"] pub struct CompositionLayerProjection { pub ty: StructureType, pub next: *const c_void, pub layer_flags: CompositionLayerFlags, pub space: Space, pub view_count: u32, pub views: *const CompositionLayerProjectionView, } impl CompositionLayerProjection { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_PROJECTION; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerQuad](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerQuad)"] pub struct CompositionLayerQuad { pub ty: StructureType, pub next: *const c_void, pub layer_flags: CompositionLayerFlags, pub space: Space, pub eye_visibility: EyeVisibility, pub sub_image: SwapchainSubImage, pub pose: Posef, pub size: Extent2Df, } impl CompositionLayerQuad { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_QUAD; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerCylinderKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerCylinderKHR) - defined by [XR_KHR_composition_layer_cylinder](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_composition_layer_cylinder)"] pub struct CompositionLayerCylinderKHR { pub ty: StructureType, pub next: *const c_void, pub layer_flags: CompositionLayerFlags, pub space: Space, pub eye_visibility: EyeVisibility, pub sub_image: SwapchainSubImage, pub pose: Posef, pub radius: f32, pub central_angle: f32, pub aspect_ratio: f32, } impl CompositionLayerCylinderKHR { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_CYLINDER_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerCubeKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerCubeKHR) - defined by [XR_KHR_composition_layer_cube](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_composition_layer_cube)"] pub struct CompositionLayerCubeKHR { pub ty: StructureType, pub next: *const c_void, pub layer_flags: CompositionLayerFlags, pub space: Space, pub eye_visibility: EyeVisibility, pub swapchain: Swapchain, pub image_array_index: u32, pub orientation: Quaternionf, } impl CompositionLayerCubeKHR { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_CUBE_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerEquirectKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerEquirectKHR) - defined by [XR_KHR_composition_layer_equirect](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_composition_layer_equirect)"] pub struct CompositionLayerEquirectKHR { pub ty: StructureType, pub next: *const c_void, pub layer_flags: CompositionLayerFlags, pub space: Space, pub eye_visibility: EyeVisibility, pub sub_image: SwapchainSubImage, pub pose: Posef, pub radius: f32, pub scale: Vector2f, pub bias: Vector2f, } impl CompositionLayerEquirectKHR { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_EQUIRECT_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerDepthInfoKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerDepthInfoKHR) - defined by [XR_KHR_composition_layer_depth](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_composition_layer_depth)"] pub struct CompositionLayerDepthInfoKHR { pub ty: StructureType, pub next: *const c_void, pub sub_image: SwapchainSubImage, pub min_depth: f32, pub max_depth: f32, pub near_z: f32, pub far_z: f32, } impl CompositionLayerDepthInfoKHR { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_DEPTH_INFO_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrFrameBeginInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFrameBeginInfo)"] pub struct FrameBeginInfo { pub ty: StructureType, pub next: *const c_void, } impl FrameBeginInfo { pub const TYPE: StructureType = StructureType::FRAME_BEGIN_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrFrameEndInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFrameEndInfo)"] pub struct FrameEndInfo { pub ty: StructureType, pub next: *const c_void, pub display_time: Time, pub environment_blend_mode: EnvironmentBlendMode, pub layer_count: u32, pub layers: *const *const CompositionLayerBaseHeader, } impl FrameEndInfo { pub const TYPE: StructureType = StructureType::FRAME_END_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrFrameWaitInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFrameWaitInfo)"] pub struct FrameWaitInfo { pub ty: StructureType, pub next: *const c_void, } impl FrameWaitInfo { pub const TYPE: StructureType = StructureType::FRAME_WAIT_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrFrameState](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFrameState)"] pub struct FrameState { pub ty: StructureType, pub next: *mut c_void, pub predicted_display_time: Time, pub predicted_display_period: Duration, pub should_render: Bool32, } impl FrameState { pub const TYPE: StructureType = StructureType::FRAME_STATE; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHapticBaseHeader](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHapticBaseHeader)"] pub struct HapticBaseHeader { pub ty: StructureType, pub next: *const c_void, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHapticVibration](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHapticVibration)"] pub struct HapticVibration { pub ty: StructureType, pub next: *const c_void, pub duration: Duration, pub frequency: f32, pub amplitude: f32, } impl HapticVibration { pub const TYPE: StructureType = StructureType::HAPTIC_VIBRATION; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataBaseHeader](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataBaseHeader)"] pub struct EventDataBaseHeader { pub ty: StructureType, pub next: *const c_void, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataBuffer](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataBuffer)"] pub struct EventDataBuffer { pub ty: StructureType, pub next: *const c_void, pub varying: [u8; 4000usize], } impl EventDataBuffer { pub const TYPE: StructureType = StructureType::EVENT_DATA_BUFFER; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataEventsLost](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataEventsLost)"] pub struct EventDataEventsLost { pub ty: StructureType, pub next: *const c_void, pub lost_event_count: u32, } impl EventDataEventsLost { pub const TYPE: StructureType = StructureType::EVENT_DATA_EVENTS_LOST; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataInstanceLossPending](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataInstanceLossPending)"] pub struct EventDataInstanceLossPending { pub ty: StructureType, pub next: *const c_void, pub loss_time: Time, } impl EventDataInstanceLossPending { pub const TYPE: StructureType = StructureType::EVENT_DATA_INSTANCE_LOSS_PENDING; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataSessionStateChanged](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataSessionStateChanged)"] pub struct EventDataSessionStateChanged { pub ty: StructureType, pub next: *const c_void, pub session: Session, pub state: SessionState, pub time: Time, } impl EventDataSessionStateChanged { pub const TYPE: StructureType = StructureType::EVENT_DATA_SESSION_STATE_CHANGED; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataReferenceSpaceChangePending](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataReferenceSpaceChangePending)"] pub struct EventDataReferenceSpaceChangePending { pub ty: StructureType, pub next: *const c_void, pub session: Session, pub reference_space_type: ReferenceSpaceType, pub change_time: Time, pub pose_valid: Bool32, pub pose_in_previous_space: Posef, } impl EventDataReferenceSpaceChangePending { pub const TYPE: StructureType = StructureType::EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataPerfSettingsEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataPerfSettingsEXT) - defined by [XR_EXT_performance_settings](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_performance_settings)"] pub struct EventDataPerfSettingsEXT { pub ty: StructureType, pub next: *const c_void, pub domain: PerfSettingsDomainEXT, pub sub_domain: PerfSettingsSubDomainEXT, pub from_level: PerfSettingsNotificationLevelEXT, pub to_level: PerfSettingsNotificationLevelEXT, } impl EventDataPerfSettingsEXT { pub const TYPE: StructureType = StructureType::EVENT_DATA_PERF_SETTINGS_EXT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataVisibilityMaskChangedKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataVisibilityMaskChangedKHR) - defined by [XR_KHR_visibility_mask](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_visibility_mask)"] pub struct EventDataVisibilityMaskChangedKHR { pub ty: StructureType, pub next: *const c_void, pub session: Session, pub view_configuration_type: ViewConfigurationType, pub view_index: u32, } impl EventDataVisibilityMaskChangedKHR { pub const TYPE: StructureType = StructureType::EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrViewConfigurationProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewConfigurationProperties)"] pub struct ViewConfigurationProperties { pub ty: StructureType, pub next: *mut c_void, pub view_configuration_type: ViewConfigurationType, pub fov_mutable: Bool32, } impl ViewConfigurationProperties { pub const TYPE: StructureType = StructureType::VIEW_CONFIGURATION_PROPERTIES; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionStateBoolean](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionStateBoolean)"] pub struct ActionStateBoolean { pub ty: StructureType, pub next: *mut c_void, pub current_state: Bool32, pub changed_since_last_sync: Bool32, pub last_change_time: Time, pub is_active: Bool32, } impl ActionStateBoolean { pub const TYPE: StructureType = StructureType::ACTION_STATE_BOOLEAN; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionStateFloat](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionStateFloat)"] pub struct ActionStateFloat { pub ty: StructureType, pub next: *mut c_void, pub current_state: f32, pub changed_since_last_sync: Bool32, pub last_change_time: Time, pub is_active: Bool32, } impl ActionStateFloat { pub const TYPE: StructureType = StructureType::ACTION_STATE_FLOAT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionStateVector2f](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionStateVector2f)"] pub struct ActionStateVector2f { pub ty: StructureType, pub next: *mut c_void, pub current_state: Vector2f, pub changed_since_last_sync: Bool32, pub last_change_time: Time, pub is_active: Bool32, } impl ActionStateVector2f { pub const TYPE: StructureType = StructureType::ACTION_STATE_VECTOR2F; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionStatePose](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionStatePose)"] pub struct ActionStatePose { pub ty: StructureType, pub next: *mut c_void, pub is_active: Bool32, } impl ActionStatePose { pub const TYPE: StructureType = StructureType::ACTION_STATE_POSE; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionStateGetInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionStateGetInfo)"] pub struct ActionStateGetInfo { pub ty: StructureType, pub next: *const c_void, pub action: Action, pub subaction_path: Path, } impl ActionStateGetInfo { pub const TYPE: StructureType = StructureType::ACTION_STATE_GET_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHapticActionInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHapticActionInfo)"] pub struct HapticActionInfo { pub ty: StructureType, pub next: *const c_void, pub action: Action, pub subaction_path: Path, } impl HapticActionInfo { pub const TYPE: StructureType = StructureType::HAPTIC_ACTION_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionSetCreateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionSetCreateInfo)"] pub struct ActionSetCreateInfo { pub ty: StructureType, pub next: *const c_void, pub action_set_name: [c_char; MAX_ACTION_SET_NAME_SIZE], pub localized_action_set_name: [c_char; MAX_LOCALIZED_ACTION_SET_NAME_SIZE], pub priority: u32, } impl ActionSetCreateInfo { pub const TYPE: StructureType = StructureType::ACTION_SET_CREATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionSuggestedBinding](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionSuggestedBinding)"] pub struct ActionSuggestedBinding { pub action: Action, pub binding: Path, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrInteractionProfileSuggestedBinding](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInteractionProfileSuggestedBinding)"] pub struct InteractionProfileSuggestedBinding { pub ty: StructureType, pub next: *const c_void, pub interaction_profile: Path, pub count_suggested_bindings: u32, pub suggested_bindings: *const ActionSuggestedBinding, } impl InteractionProfileSuggestedBinding { pub const TYPE: StructureType = StructureType::INTERACTION_PROFILE_SUGGESTED_BINDING; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActiveActionSet](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActiveActionSet)"] pub struct ActiveActionSet { pub action_set: ActionSet, pub subaction_path: Path, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSessionActionSetsAttachInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSessionActionSetsAttachInfo)"] pub struct SessionActionSetsAttachInfo { pub ty: StructureType, pub next: *const c_void, pub count_action_sets: u32, pub action_sets: *const ActionSet, } impl SessionActionSetsAttachInfo { pub const TYPE: StructureType = StructureType::SESSION_ACTION_SETS_ATTACH_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionsSyncInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionsSyncInfo)"] pub struct ActionsSyncInfo { pub ty: StructureType, pub next: *const c_void, pub count_active_action_sets: u32, pub active_action_sets: *const ActiveActionSet, } impl ActionsSyncInfo { pub const TYPE: StructureType = StructureType::ACTIONS_SYNC_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrBoundSourcesForActionEnumerateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrBoundSourcesForActionEnumerateInfo)"] pub struct BoundSourcesForActionEnumerateInfo { pub ty: StructureType, pub next: *const c_void, pub action: Action, } impl BoundSourcesForActionEnumerateInfo { pub const TYPE: StructureType = StructureType::BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrInputSourceLocalizedNameGetInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInputSourceLocalizedNameGetInfo)"] pub struct InputSourceLocalizedNameGetInfo { pub ty: StructureType, pub next: *const c_void, pub source_path: Path, pub which_components: InputSourceLocalizedNameFlags, } impl InputSourceLocalizedNameGetInfo { pub const TYPE: StructureType = StructureType::INPUT_SOURCE_LOCALIZED_NAME_GET_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataInteractionProfileChanged](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataInteractionProfileChanged)"] pub struct EventDataInteractionProfileChanged { pub ty: StructureType, pub next: *const c_void, pub session: Session, } impl EventDataInteractionProfileChanged { pub const TYPE: StructureType = StructureType::EVENT_DATA_INTERACTION_PROFILE_CHANGED; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrInteractionProfileState](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInteractionProfileState)"] pub struct InteractionProfileState { pub ty: StructureType, pub next: *mut c_void, pub interaction_profile: Path, } impl InteractionProfileState { pub const TYPE: StructureType = StructureType::INTERACTION_PROFILE_STATE; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrActionCreateInfo](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrActionCreateInfo)"] pub struct ActionCreateInfo { pub ty: StructureType, pub next: *const c_void, pub action_name: [c_char; MAX_ACTION_NAME_SIZE], pub action_type: ActionType, pub count_subaction_paths: u32, pub subaction_paths: *const Path, pub localized_action_name: [c_char; MAX_LOCALIZED_ACTION_NAME_SIZE], } impl ActionCreateInfo { pub const TYPE: StructureType = StructureType::ACTION_CREATE_INFO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrInstanceCreateInfoAndroidKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInstanceCreateInfoAndroidKHR) - defined by [XR_KHR_android_create_instance](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_android_create_instance)"] #[cfg(target_os = "android")] pub struct InstanceCreateInfoAndroidKHR { pub ty: StructureType, pub next: *const c_void, pub application_vm: *mut c_void, pub application_activity: *mut c_void, } #[cfg(target_os = "android")] impl InstanceCreateInfoAndroidKHR { pub const TYPE: StructureType = StructureType::INSTANCE_CREATE_INFO_ANDROID_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrVulkanSwapchainFormatListCreateInfoKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVulkanSwapchainFormatListCreateInfoKHR) - defined by [XR_KHR_vulkan_swapchain_format_list](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_swapchain_format_list)"] pub struct VulkanSwapchainFormatListCreateInfoKHR { pub ty: StructureType, pub next: *const c_void, pub view_format_count: u32, pub view_formats: *const VkFormat, } impl VulkanSwapchainFormatListCreateInfoKHR { pub const TYPE: StructureType = StructureType::VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrDebugUtilsObjectNameInfoEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrDebugUtilsObjectNameInfoEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub struct DebugUtilsObjectNameInfoEXT { pub ty: StructureType, pub next: *const c_void, pub object_type: ObjectType, pub object_handle: u64, pub object_name: *const c_char, } impl DebugUtilsObjectNameInfoEXT { pub const TYPE: StructureType = StructureType::DEBUG_UTILS_OBJECT_NAME_INFO_EXT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrDebugUtilsLabelEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrDebugUtilsLabelEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub struct DebugUtilsLabelEXT { pub ty: StructureType, pub next: *const c_void, pub label_name: *const c_char, } impl DebugUtilsLabelEXT { pub const TYPE: StructureType = StructureType::DEBUG_UTILS_LABEL_EXT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrDebugUtilsMessengerCallbackDataEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrDebugUtilsMessengerCallbackDataEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub struct DebugUtilsMessengerCallbackDataEXT { pub ty: StructureType, pub next: *const c_void, pub message_id: *const c_char, pub function_name: *const c_char, pub message: *const c_char, pub object_count: u32, pub objects: *mut DebugUtilsObjectNameInfoEXT, pub session_label_count: u32, pub session_labels: *mut DebugUtilsLabelEXT, } impl DebugUtilsMessengerCallbackDataEXT { pub const TYPE: StructureType = StructureType::DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrDebugUtilsMessengerCreateInfoEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrDebugUtilsMessengerCreateInfoEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub struct DebugUtilsMessengerCreateInfoEXT { pub ty: StructureType, pub next: *const c_void, pub message_severities: DebugUtilsMessageSeverityFlagsEXT, pub message_types: DebugUtilsMessageTypeFlagsEXT, pub user_callback: Option<pfn::DebugUtilsMessengerCallbackEXT>, pub user_data: *mut c_void, } impl DebugUtilsMessengerCreateInfoEXT { pub const TYPE: StructureType = StructureType::DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrVisibilityMaskKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVisibilityMaskKHR) - defined by [XR_KHR_visibility_mask](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_visibility_mask)"] pub struct VisibilityMaskKHR { pub ty: StructureType, pub next: *mut c_void, pub vertex_capacity_input: u32, pub vertex_count_output: u32, pub vertices: *mut Vector2f, pub index_capacity_input: u32, pub index_count_output: u32, pub indices: *mut u32, } impl VisibilityMaskKHR { pub const TYPE: StructureType = StructureType::VISIBILITY_MASK_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsRequirementsOpenGLKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsRequirementsOpenGLKHR) - defined by [XR_KHR_opengl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_enable)"] pub struct GraphicsRequirementsOpenGLKHR { pub ty: StructureType, pub next: *mut c_void, pub min_api_version_supported: Version, pub max_api_version_supported: Version, } impl GraphicsRequirementsOpenGLKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_REQUIREMENTS_OPENGL_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsRequirementsOpenGLESKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsRequirementsOpenGLESKHR) - defined by [XR_KHR_opengl_es_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_es_enable)"] pub struct GraphicsRequirementsOpenGLESKHR { pub ty: StructureType, pub next: *mut c_void, pub min_api_version_supported: Version, pub max_api_version_supported: Version, } impl GraphicsRequirementsOpenGLESKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsRequirementsVulkanKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsRequirementsVulkanKHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub struct GraphicsRequirementsVulkanKHR { pub ty: StructureType, pub next: *mut c_void, pub min_api_version_supported: Version, pub max_api_version_supported: Version, } impl GraphicsRequirementsVulkanKHR { pub const TYPE: StructureType = StructureType::GRAPHICS_REQUIREMENTS_VULKAN_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsRequirementsD3D11KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsRequirementsD3D11KHR) - defined by [XR_KHR_D3D11_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D11_enable)"] #[cfg(windows)] pub struct GraphicsRequirementsD3D11KHR { pub ty: StructureType, pub next: *mut c_void, pub adapter_luid: LUID, pub min_feature_level: D3D_FEATURE_LEVEL, } #[cfg(windows)] impl GraphicsRequirementsD3D11KHR { pub const TYPE: StructureType = StructureType::GRAPHICS_REQUIREMENTS_D3D11_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsRequirementsD3D12KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsRequirementsD3D12KHR) - defined by [XR_KHR_D3D12_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D12_enable)"] #[cfg(windows)] pub struct GraphicsRequirementsD3D12KHR { pub ty: StructureType, pub next: *mut c_void, pub adapter_luid: LUID, pub min_feature_level: D3D_FEATURE_LEVEL, } #[cfg(windows)] impl GraphicsRequirementsD3D12KHR { pub const TYPE: StructureType = StructureType::GRAPHICS_REQUIREMENTS_D3D12_KHR; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrVulkanInstanceCreateInfoKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVulkanInstanceCreateInfoKHR) - defined by [XR_KHR_vulkan_enable2](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable2)"] pub struct VulkanInstanceCreateInfoKHR { pub ty: StructureType, pub next: *const c_void, pub system_id: SystemId, pub create_flags: VulkanInstanceCreateFlagsKHR, pub pfn_get_instance_proc_addr: Option<VkGetInstanceProcAddr>, pub vulkan_create_info: *const VkInstanceCreateInfo, pub vulkan_allocator: *const VkAllocationCallbacks, } impl VulkanInstanceCreateInfoKHR { pub const TYPE: StructureType = StructureType::VULKAN_INSTANCE_CREATE_INFO_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrVulkanDeviceCreateInfoKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVulkanDeviceCreateInfoKHR) - defined by [XR_KHR_vulkan_enable2](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable2)"] pub struct VulkanDeviceCreateInfoKHR { pub ty: StructureType, pub next: *const c_void, pub system_id: SystemId, pub create_flags: VulkanDeviceCreateFlagsKHR, pub pfn_get_instance_proc_addr: Option<VkGetInstanceProcAddr>, pub vulkan_physical_device: VkPhysicalDevice, pub vulkan_create_info: *const VkDeviceCreateInfo, pub vulkan_allocator: *const VkAllocationCallbacks, } impl VulkanDeviceCreateInfoKHR { pub const TYPE: StructureType = StructureType::VULKAN_DEVICE_CREATE_INFO_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrVulkanGraphicsDeviceGetInfoKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVulkanGraphicsDeviceGetInfoKHR) - defined by [XR_KHR_vulkan_enable2](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable2)"] pub struct VulkanGraphicsDeviceGetInfoKHR { pub ty: StructureType, pub next: *const c_void, pub system_id: SystemId, pub vulkan_instance: VkInstance, } impl VulkanGraphicsDeviceGetInfoKHR { pub const TYPE: StructureType = StructureType::VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSessionCreateInfoOverlayEXTX](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSessionCreateInfoOverlayEXTX) - defined by [XR_EXTX_overlay](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXTX_overlay)"] pub struct SessionCreateInfoOverlayEXTX { pub ty: StructureType, pub next: *const c_void, pub create_flags: OverlaySessionCreateFlagsEXTX, pub session_layers_placement: u32, } impl SessionCreateInfoOverlayEXTX { pub const TYPE: StructureType = StructureType::SESSION_CREATE_INFO_OVERLAY_EXTX; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataMainSessionVisibilityChangedEXTX](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataMainSessionVisibilityChangedEXTX) - defined by [XR_EXTX_overlay](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXTX_overlay)"] pub struct EventDataMainSessionVisibilityChangedEXTX { pub ty: StructureType, pub next: *const c_void, pub visible: Bool32, pub flags: OverlayMainSessionFlagsEXTX, } impl EventDataMainSessionVisibilityChangedEXTX { pub const TYPE: StructureType = StructureType::EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEventDataDisplayRefreshRateChangedFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEventDataDisplayRefreshRateChangedFB) - defined by [XR_FB_display_refresh_rate](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_display_refresh_rate)"] pub struct EventDataDisplayRefreshRateChangedFB { pub ty: StructureType, pub next: *const c_void, pub from_display_refresh_rate: f32, pub to_display_refresh_rate: f32, } impl EventDataDisplayRefreshRateChangedFB { pub const TYPE: StructureType = StructureType::EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrViewConfigurationDepthRangeEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewConfigurationDepthRangeEXT) - defined by [XR_EXT_view_configuration_depth_range](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_view_configuration_depth_range)"] pub struct ViewConfigurationDepthRangeEXT { pub ty: StructureType, pub next: *mut c_void, pub recommended_near_z: f32, pub min_near_z: f32, pub recommended_far_z: f32, pub max_far_z: f32, } impl ViewConfigurationDepthRangeEXT { pub const TYPE: StructureType = StructureType::VIEW_CONFIGURATION_DEPTH_RANGE_EXT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrViewConfigurationViewFovEPIC](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewConfigurationViewFovEPIC) - defined by [XR_EPIC_view_configuration_fov](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EPIC_view_configuration_fov)"] pub struct ViewConfigurationViewFovEPIC { pub ty: StructureType, pub next: *const c_void, pub recommended_fov: Fovf, pub max_mutable_fov: Fovf, } impl ViewConfigurationViewFovEPIC { pub const TYPE: StructureType = StructureType::VIEW_CONFIGURATION_VIEW_FOV_EPIC; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrInteractionProfileAnalogThresholdVALVE](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrInteractionProfileAnalogThresholdVALVE) - defined by [XR_VALVE_analog_threshold](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_VALVE_analog_threshold)"] pub struct InteractionProfileAnalogThresholdVALVE { pub ty: StructureType, pub next: *const c_void, pub action: Action, pub binding: Path, pub on_threshold: f32, pub off_threshold: f32, pub on_haptic: *const HapticBaseHeader, pub off_haptic: *const HapticBaseHeader, } impl InteractionProfileAnalogThresholdVALVE { pub const TYPE: StructureType = StructureType::INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrBindingModificationsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrBindingModificationsKHR) - defined by [XR_KHR_binding_modification](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_binding_modification)"] pub struct BindingModificationsKHR { pub ty: StructureType, pub next: *const c_void, pub binding_modification_count: u32, pub binding_modifications: *const *const BindingModificationBaseHeaderKHR, } impl BindingModificationsKHR { pub const TYPE: StructureType = StructureType::BINDING_MODIFICATIONS_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrBindingModificationBaseHeaderKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrBindingModificationBaseHeaderKHR) - defined by [XR_KHR_binding_modification](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_binding_modification)"] pub struct BindingModificationBaseHeaderKHR { pub ty: StructureType, pub next: *const c_void, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSystemEyeGazeInteractionPropertiesEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemEyeGazeInteractionPropertiesEXT) - defined by [XR_EXT_eye_gaze_interaction](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_eye_gaze_interaction)"] pub struct SystemEyeGazeInteractionPropertiesEXT { pub ty: StructureType, pub next: *mut c_void, pub supports_eye_gaze_interaction: Bool32, } impl SystemEyeGazeInteractionPropertiesEXT { pub const TYPE: StructureType = StructureType::SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrEyeGazeSampleTimeEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEyeGazeSampleTimeEXT) - defined by [XR_EXT_eye_gaze_interaction](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_eye_gaze_interaction)"] pub struct EyeGazeSampleTimeEXT { pub ty: StructureType, pub next: *mut c_void, pub time: Time, } impl EyeGazeSampleTimeEXT { pub const TYPE: StructureType = StructureType::EYE_GAZE_SAMPLE_TIME_EXT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSpatialAnchorCreateInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpatialAnchorCreateInfoMSFT)"] pub struct SpatialAnchorCreateInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub space: Space, pub pose: Posef, pub time: Time, } impl SpatialAnchorCreateInfoMSFT { pub const TYPE: StructureType = StructureType::SPATIAL_ANCHOR_CREATE_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSpatialAnchorSpaceCreateInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpatialAnchorSpaceCreateInfoMSFT)"] pub struct SpatialAnchorSpaceCreateInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub anchor: SpatialAnchorMSFT, pub pose_in_anchor_space: Posef, } impl SpatialAnchorSpaceCreateInfoMSFT { pub const TYPE: StructureType = StructureType::SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrGraphicsBindingEGLMNDX](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrGraphicsBindingEGLMNDX) - defined by [XR_MNDX_egl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MNDX_egl_enable)"] pub struct GraphicsBindingEGLMNDX { pub ty: StructureType, pub next: *const c_void, pub get_proc_address: PFNEGLGETPROCADDRESSPROC, pub display: EGLDisplay, pub config: EGLConfig, pub context: EGLContext, } impl GraphicsBindingEGLMNDX { pub const TYPE: StructureType = StructureType::GRAPHICS_BINDING_EGL_MNDX; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSpatialGraphNodeSpaceCreateInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSpatialGraphNodeSpaceCreateInfoMSFT) - defined by [XR_MSFT_spatial_graph_bridge](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_spatial_graph_bridge)"] pub struct SpatialGraphNodeSpaceCreateInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub node_type: SpatialGraphNodeTypeMSFT, pub node_id: [u8; 16usize], pub pose: Posef, } impl SpatialGraphNodeSpaceCreateInfoMSFT { pub const TYPE: StructureType = StructureType::SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSystemHandTrackingPropertiesEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemHandTrackingPropertiesEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub struct SystemHandTrackingPropertiesEXT { pub ty: StructureType, pub next: *mut c_void, pub supports_hand_tracking: Bool32, } impl SystemHandTrackingPropertiesEXT { pub const TYPE: StructureType = StructureType::SYSTEM_HAND_TRACKING_PROPERTIES_EXT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandTrackerCreateInfoEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandTrackerCreateInfoEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub struct HandTrackerCreateInfoEXT { pub ty: StructureType, pub next: *const c_void, pub hand: HandEXT, pub hand_joint_set: HandJointSetEXT, } impl HandTrackerCreateInfoEXT { pub const TYPE: StructureType = StructureType::HAND_TRACKER_CREATE_INFO_EXT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandJointsLocateInfoEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointsLocateInfoEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub struct HandJointsLocateInfoEXT { pub ty: StructureType, pub next: *const c_void, pub base_space: Space, pub time: Time, } impl HandJointsLocateInfoEXT { pub const TYPE: StructureType = StructureType::HAND_JOINTS_LOCATE_INFO_EXT; } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrHandJointLocationEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointLocationEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub struct HandJointLocationEXT { pub location_flags: SpaceLocationFlags, pub pose: Posef, pub radius: f32, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrHandJointVelocityEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointVelocityEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub struct HandJointVelocityEXT { pub velocity_flags: SpaceVelocityFlags, pub linear_velocity: Vector3f, pub angular_velocity: Vector3f, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandJointLocationsEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointLocationsEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub struct HandJointLocationsEXT { pub ty: StructureType, pub next: *mut c_void, pub is_active: Bool32, pub joint_count: u32, pub joint_locations: *mut HandJointLocationEXT, } impl HandJointLocationsEXT { pub const TYPE: StructureType = StructureType::HAND_JOINT_LOCATIONS_EXT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandJointVelocitiesEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointVelocitiesEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub struct HandJointVelocitiesEXT { pub ty: StructureType, pub next: *mut c_void, pub joint_count: u32, pub joint_velocities: *mut HandJointVelocityEXT, } impl HandJointVelocitiesEXT { pub const TYPE: StructureType = StructureType::HAND_JOINT_VELOCITIES_EXT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandJointsMotionRangeInfoEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandJointsMotionRangeInfoEXT) - defined by [XR_EXT_hand_joints_motion_range](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_joints_motion_range)"] pub struct HandJointsMotionRangeInfoEXT { pub ty: StructureType, pub next: *const c_void, pub hand_joints_motion_range: HandJointsMotionRangeEXT, } impl HandJointsMotionRangeInfoEXT { pub const TYPE: StructureType = StructureType::HAND_JOINTS_MOTION_RANGE_INFO_EXT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandMeshSpaceCreateInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandMeshSpaceCreateInfoMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct HandMeshSpaceCreateInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub hand_pose_type: HandPoseTypeMSFT, pub pose_in_hand_mesh_space: Posef, } impl HandMeshSpaceCreateInfoMSFT { pub const TYPE: StructureType = StructureType::HAND_MESH_SPACE_CREATE_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandMeshUpdateInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandMeshUpdateInfoMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct HandMeshUpdateInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub time: Time, pub hand_pose_type: HandPoseTypeMSFT, } impl HandMeshUpdateInfoMSFT { pub const TYPE: StructureType = StructureType::HAND_MESH_UPDATE_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandMeshMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandMeshMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct HandMeshMSFT { pub ty: StructureType, pub next: *mut c_void, pub is_active: Bool32, pub index_buffer_changed: Bool32, pub vertex_buffer_changed: Bool32, pub index_buffer: HandMeshIndexBufferMSFT, pub vertex_buffer: HandMeshVertexBufferMSFT, } impl HandMeshMSFT { pub const TYPE: StructureType = StructureType::HAND_MESH_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandMeshIndexBufferMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandMeshIndexBufferMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct HandMeshIndexBufferMSFT { pub index_buffer_key: u32, pub index_capacity_input: u32, pub index_count_output: u32, pub indices: *mut u32, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandMeshVertexBufferMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandMeshVertexBufferMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct HandMeshVertexBufferMSFT { pub vertex_update_time: Time, pub vertex_capacity_input: u32, pub vertex_count_output: u32, pub vertices: *mut HandMeshVertexMSFT, } #[repr(C)] #[derive(Copy, Clone, Default, PartialEq)] #[doc = "See [XrHandMeshVertexMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandMeshVertexMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct HandMeshVertexMSFT { pub position: Vector3f, pub normal: Vector3f, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSystemHandTrackingMeshPropertiesMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemHandTrackingMeshPropertiesMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct SystemHandTrackingMeshPropertiesMSFT { pub ty: StructureType, pub next: *mut c_void, pub supports_hand_tracking_mesh: Bool32, pub max_hand_mesh_index_count: u32, pub max_hand_mesh_vertex_count: u32, } impl SystemHandTrackingMeshPropertiesMSFT { pub const TYPE: StructureType = StructureType::SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHandPoseTypeInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHandPoseTypeInfoMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub struct HandPoseTypeInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub hand_pose_type: HandPoseTypeMSFT, } impl HandPoseTypeInfoMSFT { pub const TYPE: StructureType = StructureType::HAND_POSE_TYPE_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSecondaryViewConfigurationSessionBeginInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSecondaryViewConfigurationSessionBeginInfoMSFT) - defined by [XR_MSFT_secondary_view_configuration](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_secondary_view_configuration)"] pub struct SecondaryViewConfigurationSessionBeginInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub view_configuration_count: u32, pub enabled_view_configuration_types: *const ViewConfigurationType, } impl SecondaryViewConfigurationSessionBeginInfoMSFT { pub const TYPE: StructureType = StructureType::SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSecondaryViewConfigurationStateMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSecondaryViewConfigurationStateMSFT) - defined by [XR_MSFT_secondary_view_configuration](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_secondary_view_configuration)"] pub struct SecondaryViewConfigurationStateMSFT { pub ty: StructureType, pub next: *mut c_void, pub view_configuration_type: ViewConfigurationType, pub active: Bool32, } impl SecondaryViewConfigurationStateMSFT { pub const TYPE: StructureType = StructureType::SECONDARY_VIEW_CONFIGURATION_STATE_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSecondaryViewConfigurationFrameStateMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSecondaryViewConfigurationFrameStateMSFT) - defined by [XR_MSFT_secondary_view_configuration](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_secondary_view_configuration)"] pub struct SecondaryViewConfigurationFrameStateMSFT { pub ty: StructureType, pub next: *mut c_void, pub view_configuration_count: u32, pub view_configuration_states: *mut SecondaryViewConfigurationStateMSFT, } impl SecondaryViewConfigurationFrameStateMSFT { pub const TYPE: StructureType = StructureType::SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSecondaryViewConfigurationFrameEndInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSecondaryViewConfigurationFrameEndInfoMSFT) - defined by [XR_MSFT_secondary_view_configuration](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_secondary_view_configuration)"] pub struct SecondaryViewConfigurationFrameEndInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub view_configuration_count: u32, pub view_configuration_layers_info: *const SecondaryViewConfigurationLayerInfoMSFT, } impl SecondaryViewConfigurationFrameEndInfoMSFT { pub const TYPE: StructureType = StructureType::SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSecondaryViewConfigurationLayerInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSecondaryViewConfigurationLayerInfoMSFT) - defined by [XR_MSFT_secondary_view_configuration](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_secondary_view_configuration)"] pub struct SecondaryViewConfigurationLayerInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub view_configuration_type: ViewConfigurationType, pub environment_blend_mode: EnvironmentBlendMode, pub layer_count: u32, pub layers: *const *const CompositionLayerBaseHeader, } impl SecondaryViewConfigurationLayerInfoMSFT { pub const TYPE: StructureType = StructureType::SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSecondaryViewConfigurationSwapchainCreateInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSecondaryViewConfigurationSwapchainCreateInfoMSFT) - defined by [XR_MSFT_secondary_view_configuration](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_secondary_view_configuration)"] pub struct SecondaryViewConfigurationSwapchainCreateInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub view_configuration_type: ViewConfigurationType, } impl SecondaryViewConfigurationSwapchainCreateInfoMSFT { pub const TYPE: StructureType = StructureType::SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrHolographicWindowAttachmentMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrHolographicWindowAttachmentMSFT) - defined by [XR_MSFT_holographic_window_attachment](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_holographic_window_attachment)"] #[cfg(windows)] pub struct HolographicWindowAttachmentMSFT { pub ty: StructureType, pub next: *const c_void, pub holographic_space: *mut IUnknown, pub core_window: *mut IUnknown, } #[cfg(windows)] impl HolographicWindowAttachmentMSFT { pub const TYPE: StructureType = StructureType::HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrAndroidSurfaceSwapchainCreateInfoFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrAndroidSurfaceSwapchainCreateInfoFB) - defined by [XR_FB_android_surface_swapchain_create](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_android_surface_swapchain_create)"] #[cfg(target_os = "android")] pub struct AndroidSurfaceSwapchainCreateInfoFB { pub ty: StructureType, pub next: *const c_void, pub create_flags: AndroidSurfaceSwapchainFlagsFB, } #[cfg(target_os = "android")] impl AndroidSurfaceSwapchainCreateInfoFB { pub const TYPE: StructureType = StructureType::ANDROID_SURFACE_SWAPCHAIN_CREATE_INFO_FB; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainStateBaseHeaderFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainStateBaseHeaderFB) - defined by [XR_FB_swapchain_update_state](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_swapchain_update_state)"] pub struct SwapchainStateBaseHeaderFB { pub ty: StructureType, pub next: *mut c_void, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainStateAndroidSurfaceDimensionsFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainStateAndroidSurfaceDimensionsFB) - defined by [XR_FB_swapchain_update_state_android_surface](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_swapchain_update_state_android_surface)"] #[cfg(target_os = "android")] pub struct SwapchainStateAndroidSurfaceDimensionsFB { pub ty: StructureType, pub next: *mut c_void, pub width: u32, pub height: u32, } #[cfg(target_os = "android")] impl SwapchainStateAndroidSurfaceDimensionsFB { pub const TYPE: StructureType = StructureType::SWAPCHAIN_STATE_ANDROID_SURFACE_DIMENSIONS_FB; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainStateSamplerOpenGLESFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainStateSamplerOpenGLESFB) - defined by [XR_FB_swapchain_update_state_opengl_es](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_swapchain_update_state_opengl_es)"] pub struct SwapchainStateSamplerOpenGLESFB { pub ty: StructureType, pub next: *mut c_void, pub min_filter: EGLenum, pub mag_filter: EGLenum, pub wrap_mode_s: EGLenum, pub wrap_mode_t: EGLenum, pub swizzle_red: EGLenum, pub swizzle_green: EGLenum, pub swizzle_blue: EGLenum, pub swizzle_alpha: EGLenum, pub max_anisotropy: f32, pub border_color: Color4f, } impl SwapchainStateSamplerOpenGLESFB { pub const TYPE: StructureType = StructureType::SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSwapchainStateSamplerVulkanFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSwapchainStateSamplerVulkanFB) - defined by [XR_FB_swapchain_update_state_vulkan](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_swapchain_update_state_vulkan)"] pub struct SwapchainStateSamplerVulkanFB { pub ty: StructureType, pub next: *mut c_void, pub min_filter: VkFilter, pub mag_filter: VkFilter, pub mipmap_mode: VkSamplerMipmapMode, pub wrap_mode_s: VkSamplerAddressMode, pub wrap_mode_t: VkSamplerAddressMode, pub swizzle_red: VkComponentSwizzle, pub swizzle_green: VkComponentSwizzle, pub swizzle_blue: VkComponentSwizzle, pub swizzle_alpha: VkComponentSwizzle, pub max_anisotropy: f32, pub border_color: Color4f, } impl SwapchainStateSamplerVulkanFB { pub const TYPE: StructureType = StructureType::SWAPCHAIN_STATE_SAMPLER_VULKAN_FB; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrLoaderInitInfoBaseHeaderKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrLoaderInitInfoBaseHeaderKHR) - defined by [XR_KHR_loader_init](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_loader_init)"] pub struct LoaderInitInfoBaseHeaderKHR { pub ty: StructureType, pub next: *const c_void, } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrLoaderInitInfoAndroidKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrLoaderInitInfoAndroidKHR) - defined by [XR_KHR_loader_init_android](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_loader_init_android)"] #[cfg(target_os = "android")] pub struct LoaderInitInfoAndroidKHR { pub ty: StructureType, pub next: *const c_void, pub application_vm: *mut c_void, pub application_context: *mut c_void, } #[cfg(target_os = "android")] impl LoaderInitInfoAndroidKHR { pub const TYPE: StructureType = StructureType::LOADER_INIT_INFO_ANDROID_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerEquirect2KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerEquirect2KHR) - defined by [XR_KHR_composition_layer_equirect2](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_composition_layer_equirect2)"] pub struct CompositionLayerEquirect2KHR { pub ty: StructureType, pub next: *const c_void, pub layer_flags: CompositionLayerFlags, pub space: Space, pub eye_visibility: EyeVisibility, pub sub_image: SwapchainSubImage, pub pose: Posef, pub radius: f32, pub central_horizontal_angle: f32, pub upper_vertical_angle: f32, pub lower_vertical_angle: f32, } impl CompositionLayerEquirect2KHR { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_EQUIRECT2_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerColorScaleBiasKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerColorScaleBiasKHR) - defined by [XR_KHR_composition_layer_color_scale_bias](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_composition_layer_color_scale_bias)"] pub struct CompositionLayerColorScaleBiasKHR { pub ty: StructureType, pub next: *const c_void, pub color_scale: Color4f, pub color_bias: Color4f, } impl CompositionLayerColorScaleBiasKHR { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrControllerModelKeyStateMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrControllerModelKeyStateMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub struct ControllerModelKeyStateMSFT { pub ty: StructureType, pub next: *mut c_void, pub model_key: ControllerModelKeyMSFT, } impl ControllerModelKeyStateMSFT { pub const TYPE: StructureType = StructureType::CONTROLLER_MODEL_KEY_STATE_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrControllerModelNodePropertiesMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrControllerModelNodePropertiesMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub struct ControllerModelNodePropertiesMSFT { pub ty: StructureType, pub next: *mut c_void, pub parent_node_name: [c_char; MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT], pub node_name: [c_char; MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT], } impl ControllerModelNodePropertiesMSFT { pub const TYPE: StructureType = StructureType::CONTROLLER_MODEL_NODE_PROPERTIES_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrControllerModelPropertiesMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrControllerModelPropertiesMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub struct ControllerModelPropertiesMSFT { pub ty: StructureType, pub next: *mut c_void, pub node_capacity_input: u32, pub node_count_output: u32, pub node_properties: *mut ControllerModelNodePropertiesMSFT, } impl ControllerModelPropertiesMSFT { pub const TYPE: StructureType = StructureType::CONTROLLER_MODEL_PROPERTIES_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrControllerModelNodeStateMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrControllerModelNodeStateMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub struct ControllerModelNodeStateMSFT { pub ty: StructureType, pub next: *mut c_void, pub node_pose: Posef, } impl ControllerModelNodeStateMSFT { pub const TYPE: StructureType = StructureType::CONTROLLER_MODEL_NODE_STATE_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrControllerModelStateMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrControllerModelStateMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub struct ControllerModelStateMSFT { pub ty: StructureType, pub next: *mut c_void, pub node_capacity_input: u32, pub node_count_output: u32, pub node_states: *mut ControllerModelNodeStateMSFT, } impl ControllerModelStateMSFT { pub const TYPE: StructureType = StructureType::CONTROLLER_MODEL_STATE_MSFT; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSystemColorSpacePropertiesFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemColorSpacePropertiesFB) - defined by [XR_FB_color_space](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_color_space)"] pub struct SystemColorSpacePropertiesFB { pub ty: StructureType, pub next: *mut c_void, pub color_space: ColorSpaceFB, } impl SystemColorSpacePropertiesFB { pub const TYPE: StructureType = StructureType::SYSTEM_COLOR_SPACE_PROPERTIES_FB; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerDepthTestVARJO](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerDepthTestVARJO) - defined by [XR_VARJO_composition_layer_depth_test](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_VARJO_composition_layer_depth_test)"] pub struct CompositionLayerDepthTestVARJO { pub ty: StructureType, pub next: *const c_void, pub depth_test_range_near_z: f32, pub depth_test_range_far_z: f32, } impl CompositionLayerDepthTestVARJO { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_DEPTH_TEST_VARJO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrViewLocateFoveatedRenderingVARJO](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewLocateFoveatedRenderingVARJO) - defined by [XR_VARJO_foveated_rendering](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_VARJO_foveated_rendering)"] pub struct ViewLocateFoveatedRenderingVARJO { pub ty: StructureType, pub next: *const c_void, pub foveated_rendering_active: Bool32, } impl ViewLocateFoveatedRenderingVARJO { pub const TYPE: StructureType = StructureType::VIEW_LOCATE_FOVEATED_RENDERING_VARJO; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrFoveatedViewConfigurationViewVARJO](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFoveatedViewConfigurationViewVARJO) - defined by [XR_VARJO_foveated_rendering](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_VARJO_foveated_rendering)"] pub struct FoveatedViewConfigurationViewVARJO { pub ty: StructureType, pub next: *mut c_void, pub foveated_rendering_active: Bool32, } impl FoveatedViewConfigurationViewVARJO { pub const TYPE: StructureType = StructureType::FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrSystemFoveatedRenderingPropertiesVARJO](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemFoveatedRenderingPropertiesVARJO) - defined by [XR_VARJO_foveated_rendering](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_VARJO_foveated_rendering)"] pub struct SystemFoveatedRenderingPropertiesVARJO { pub ty: StructureType, pub next: *mut c_void, pub supports_foveated_rendering: Bool32, } impl SystemFoveatedRenderingPropertiesVARJO { pub const TYPE: StructureType = StructureType::SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO; #[doc = r" Construct a partially-initialized value suitable for passing to OpenXR"] #[inline] pub fn out(next: *mut BaseOutStructure) -> MaybeUninit<Self> { let mut x = MaybeUninit::<Self>::uninit(); unsafe { (x.as_mut_ptr() as *mut BaseOutStructure).write(BaseOutStructure { ty: Self::TYPE, next, }); } x } } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerReprojectionInfoMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerReprojectionInfoMSFT) - defined by [XR_MSFT_composition_layer_reprojection](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_composition_layer_reprojection)"] pub struct CompositionLayerReprojectionInfoMSFT { pub ty: StructureType, pub next: *const c_void, pub reprojection_mode: ReprojectionModeMSFT, } impl CompositionLayerReprojectionInfoMSFT { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_REPROJECTION_INFO_MSFT; } #[repr(C)] #[derive(Copy, Clone)] #[doc = "See [XrCompositionLayerReprojectionPlaneOverrideMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrCompositionLayerReprojectionPlaneOverrideMSFT) - defined by [XR_MSFT_composition_layer_reprojection](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_composition_layer_reprojection)"] pub struct CompositionLayerReprojectionPlaneOverrideMSFT { pub ty: StructureType, pub next: *const c_void, pub position: Vector3f, pub normal: Vector3f, pub velocity: Vector3f, } impl CompositionLayerReprojectionPlaneOverrideMSFT { pub const TYPE: StructureType = StructureType::COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT; } #[doc = r" Function pointer prototypes"] pub mod pfn { use super::*; pub type VoidFunction = unsafe extern "system" fn(); pub type DebugUtilsMessengerCallbackEXT = unsafe extern "system" fn( DebugUtilsMessageSeverityFlagsEXT, DebugUtilsMessageTypeFlagsEXT, *const DebugUtilsMessengerCallbackDataEXT, *mut c_void, ) -> Bool32; #[doc = "See [xrGetInstanceProcAddr](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetInstanceProcAddr)"] pub type GetInstanceProcAddr = unsafe extern "system" fn( instance: Instance, name: *const c_char, function: *mut Option<pfn::VoidFunction>, ) -> Result; #[doc = "See [xrEnumerateApiLayerProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateApiLayerProperties)"] pub type EnumerateApiLayerProperties = unsafe extern "system" fn( property_capacity_input: u32, property_count_output: *mut u32, properties: *mut ApiLayerProperties, ) -> Result; #[doc = "See [xrEnumerateInstanceExtensionProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateInstanceExtensionProperties)"] pub type EnumerateInstanceExtensionProperties = unsafe extern "system" fn( layer_name: *const c_char, property_capacity_input: u32, property_count_output: *mut u32, properties: *mut ExtensionProperties, ) -> Result; #[doc = "See [xrCreateInstance](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateInstance)"] pub type CreateInstance = unsafe extern "system" fn( create_info: *const InstanceCreateInfo, instance: *mut Instance, ) -> Result; #[doc = "See [xrDestroyInstance](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroyInstance)"] pub type DestroyInstance = unsafe extern "system" fn(instance: Instance) -> Result; #[doc = "See [xrResultToString](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrResultToString)"] pub type ResultToString = unsafe extern "system" fn(instance: Instance, value: Result, buffer: *mut c_char) -> Result; #[doc = "See [xrStructureTypeToString](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrStructureTypeToString)"] pub type StructureTypeToString = unsafe extern "system" fn( instance: Instance, value: StructureType, buffer: *mut c_char, ) -> Result; #[doc = "See [xrGetInstanceProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetInstanceProperties)"] pub type GetInstanceProperties = unsafe extern "system" fn( instance: Instance, instance_properties: *mut InstanceProperties, ) -> Result; #[doc = "See [xrGetSystem](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetSystem)"] pub type GetSystem = unsafe extern "system" fn( instance: Instance, get_info: *const SystemGetInfo, system_id: *mut SystemId, ) -> Result; #[doc = "See [xrGetSystemProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetSystemProperties)"] pub type GetSystemProperties = unsafe extern "system" fn( instance: Instance, system_id: SystemId, properties: *mut SystemProperties, ) -> Result; #[doc = "See [xrCreateSession](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateSession)"] pub type CreateSession = unsafe extern "system" fn( instance: Instance, create_info: *const SessionCreateInfo, session: *mut Session, ) -> Result; #[doc = "See [xrDestroySession](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroySession)"] pub type DestroySession = unsafe extern "system" fn(session: Session) -> Result; #[doc = "See [xrDestroySpace](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroySpace)"] pub type DestroySpace = unsafe extern "system" fn(space: Space) -> Result; #[doc = "See [xrEnumerateSwapchainFormats](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateSwapchainFormats)"] pub type EnumerateSwapchainFormats = unsafe extern "system" fn( session: Session, format_capacity_input: u32, format_count_output: *mut u32, formats: *mut i64, ) -> Result; #[doc = "See [xrCreateSwapchain](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateSwapchain)"] pub type CreateSwapchain = unsafe extern "system" fn( session: Session, create_info: *const SwapchainCreateInfo, swapchain: *mut Swapchain, ) -> Result; #[doc = "See [xrDestroySwapchain](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroySwapchain)"] pub type DestroySwapchain = unsafe extern "system" fn(swapchain: Swapchain) -> Result; #[doc = "See [xrEnumerateSwapchainImages](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateSwapchainImages)"] pub type EnumerateSwapchainImages = unsafe extern "system" fn( swapchain: Swapchain, image_capacity_input: u32, image_count_output: *mut u32, images: *mut SwapchainImageBaseHeader, ) -> Result; #[doc = "See [xrAcquireSwapchainImage](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrAcquireSwapchainImage)"] pub type AcquireSwapchainImage = unsafe extern "system" fn( swapchain: Swapchain, acquire_info: *const SwapchainImageAcquireInfo, index: *mut u32, ) -> Result; #[doc = "See [xrWaitSwapchainImage](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrWaitSwapchainImage)"] pub type WaitSwapchainImage = unsafe extern "system" fn( swapchain: Swapchain, wait_info: *const SwapchainImageWaitInfo, ) -> Result; #[doc = "See [xrReleaseSwapchainImage](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrReleaseSwapchainImage)"] pub type ReleaseSwapchainImage = unsafe extern "system" fn( swapchain: Swapchain, release_info: *const SwapchainImageReleaseInfo, ) -> Result; #[doc = "See [xrBeginSession](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrBeginSession)"] pub type BeginSession = unsafe extern "system" fn(session: Session, begin_info: *const SessionBeginInfo) -> Result; #[doc = "See [xrEndSession](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEndSession)"] pub type EndSession = unsafe extern "system" fn(session: Session) -> Result; #[doc = "See [xrRequestExitSession](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrRequestExitSession)"] pub type RequestExitSession = unsafe extern "system" fn(session: Session) -> Result; #[doc = "See [xrEnumerateReferenceSpaces](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateReferenceSpaces)"] pub type EnumerateReferenceSpaces = unsafe extern "system" fn( session: Session, space_capacity_input: u32, space_count_output: *mut u32, spaces: *mut ReferenceSpaceType, ) -> Result; #[doc = "See [xrCreateReferenceSpace](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateReferenceSpace)"] pub type CreateReferenceSpace = unsafe extern "system" fn( session: Session, create_info: *const ReferenceSpaceCreateInfo, space: *mut Space, ) -> Result; #[doc = "See [xrCreateActionSpace](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateActionSpace)"] pub type CreateActionSpace = unsafe extern "system" fn( session: Session, create_info: *const ActionSpaceCreateInfo, space: *mut Space, ) -> Result; #[doc = "See [xrLocateSpace](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrLocateSpace)"] pub type LocateSpace = unsafe extern "system" fn( space: Space, base_space: Space, time: Time, location: *mut SpaceLocation, ) -> Result; #[doc = "See [xrEnumerateViewConfigurations](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateViewConfigurations)"] pub type EnumerateViewConfigurations = unsafe extern "system" fn( instance: Instance, system_id: SystemId, view_configuration_type_capacity_input: u32, view_configuration_type_count_output: *mut u32, view_configuration_types: *mut ViewConfigurationType, ) -> Result; #[doc = "See [xrEnumerateEnvironmentBlendModes](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateEnvironmentBlendModes)"] pub type EnumerateEnvironmentBlendModes = unsafe extern "system" fn( instance: Instance, system_id: SystemId, view_configuration_type: ViewConfigurationType, environment_blend_mode_capacity_input: u32, environment_blend_mode_count_output: *mut u32, environment_blend_modes: *mut EnvironmentBlendMode, ) -> Result; #[doc = "See [xrGetViewConfigurationProperties](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetViewConfigurationProperties)"] pub type GetViewConfigurationProperties = unsafe extern "system" fn( instance: Instance, system_id: SystemId, view_configuration_type: ViewConfigurationType, configuration_properties: *mut ViewConfigurationProperties, ) -> Result; #[doc = "See [xrEnumerateViewConfigurationViews](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateViewConfigurationViews)"] pub type EnumerateViewConfigurationViews = unsafe extern "system" fn( instance: Instance, system_id: SystemId, view_configuration_type: ViewConfigurationType, view_capacity_input: u32, view_count_output: *mut u32, views: *mut ViewConfigurationView, ) -> Result; #[doc = "See [xrBeginFrame](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrBeginFrame)"] pub type BeginFrame = unsafe extern "system" fn( session: Session, frame_begin_info: *const FrameBeginInfo, ) -> Result; #[doc = "See [xrLocateViews](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrLocateViews)"] pub type LocateViews = unsafe extern "system" fn( session: Session, view_locate_info: *const ViewLocateInfo, view_state: *mut ViewState, view_capacity_input: u32, view_count_output: *mut u32, views: *mut View, ) -> Result; #[doc = "See [xrEndFrame](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEndFrame)"] pub type EndFrame = unsafe extern "system" fn(session: Session, frame_end_info: *const FrameEndInfo) -> Result; #[doc = "See [xrWaitFrame](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrWaitFrame)"] pub type WaitFrame = unsafe extern "system" fn( session: Session, frame_wait_info: *const FrameWaitInfo, frame_state: *mut FrameState, ) -> Result; #[doc = "See [xrApplyHapticFeedback](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrApplyHapticFeedback)"] pub type ApplyHapticFeedback = unsafe extern "system" fn( session: Session, haptic_action_info: *const HapticActionInfo, haptic_feedback: *const HapticBaseHeader, ) -> Result; #[doc = "See [xrStopHapticFeedback](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrStopHapticFeedback)"] pub type StopHapticFeedback = unsafe extern "system" fn( session: Session, haptic_action_info: *const HapticActionInfo, ) -> Result; #[doc = "See [xrPollEvent](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrPollEvent)"] pub type PollEvent = unsafe extern "system" fn(instance: Instance, event_data: *mut EventDataBuffer) -> Result; #[doc = "See [xrStringToPath](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrStringToPath)"] pub type StringToPath = unsafe extern "system" fn( instance: Instance, path_string: *const c_char, path: *mut Path, ) -> Result; #[doc = "See [xrPathToString](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrPathToString)"] pub type PathToString = unsafe extern "system" fn( instance: Instance, path: Path, buffer_capacity_input: u32, buffer_count_output: *mut u32, buffer: *mut c_char, ) -> Result; #[doc = "See [xrGetReferenceSpaceBoundsRect](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetReferenceSpaceBoundsRect)"] pub type GetReferenceSpaceBoundsRect = unsafe extern "system" fn( session: Session, reference_space_type: ReferenceSpaceType, bounds: *mut Extent2Df, ) -> Result; #[cfg(target_os = "android")] #[doc = "See [xrSetAndroidApplicationThreadKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetAndroidApplicationThreadKHR) - defined by [XR_KHR_android_thread_settings](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_android_thread_settings)"] pub type SetAndroidApplicationThreadKHR = unsafe extern "system" fn( session: Session, thread_type: AndroidThreadTypeKHR, thread_id: u32, ) -> Result; #[cfg(target_os = "android")] #[doc = "See [xrCreateSwapchainAndroidSurfaceKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateSwapchainAndroidSurfaceKHR) - defined by [XR_KHR_android_surface_swapchain](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_android_surface_swapchain)"] pub type CreateSwapchainAndroidSurfaceKHR = unsafe extern "system" fn( session: Session, info: *const SwapchainCreateInfo, swapchain: *mut Swapchain, surface: *mut jobject, ) -> Result; #[doc = "See [xrGetActionStateBoolean](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetActionStateBoolean)"] pub type GetActionStateBoolean = unsafe extern "system" fn( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStateBoolean, ) -> Result; #[doc = "See [xrGetActionStateFloat](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetActionStateFloat)"] pub type GetActionStateFloat = unsafe extern "system" fn( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStateFloat, ) -> Result; #[doc = "See [xrGetActionStateVector2f](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetActionStateVector2f)"] pub type GetActionStateVector2f = unsafe extern "system" fn( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStateVector2f, ) -> Result; #[doc = "See [xrGetActionStatePose](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetActionStatePose)"] pub type GetActionStatePose = unsafe extern "system" fn( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStatePose, ) -> Result; #[doc = "See [xrCreateActionSet](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateActionSet)"] pub type CreateActionSet = unsafe extern "system" fn( instance: Instance, create_info: *const ActionSetCreateInfo, action_set: *mut ActionSet, ) -> Result; #[doc = "See [xrDestroyActionSet](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroyActionSet)"] pub type DestroyActionSet = unsafe extern "system" fn(action_set: ActionSet) -> Result; #[doc = "See [xrCreateAction](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateAction)"] pub type CreateAction = unsafe extern "system" fn( action_set: ActionSet, create_info: *const ActionCreateInfo, action: *mut Action, ) -> Result; #[doc = "See [xrDestroyAction](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroyAction)"] pub type DestroyAction = unsafe extern "system" fn(action: Action) -> Result; #[doc = "See [xrSuggestInteractionProfileBindings](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSuggestInteractionProfileBindings)"] pub type SuggestInteractionProfileBindings = unsafe extern "system" fn( instance: Instance, suggested_bindings: *const InteractionProfileSuggestedBinding, ) -> Result; #[doc = "See [xrAttachSessionActionSets](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrAttachSessionActionSets)"] pub type AttachSessionActionSets = unsafe extern "system" fn( session: Session, attach_info: *const SessionActionSetsAttachInfo, ) -> Result; #[doc = "See [xrGetCurrentInteractionProfile](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetCurrentInteractionProfile)"] pub type GetCurrentInteractionProfile = unsafe extern "system" fn( session: Session, top_level_user_path: Path, interaction_profile: *mut InteractionProfileState, ) -> Result; #[doc = "See [xrSyncActions](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSyncActions)"] pub type SyncActions = unsafe extern "system" fn(session: Session, sync_info: *const ActionsSyncInfo) -> Result; #[doc = "See [xrEnumerateBoundSourcesForAction](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateBoundSourcesForAction)"] pub type EnumerateBoundSourcesForAction = unsafe extern "system" fn( session: Session, enumerate_info: *const BoundSourcesForActionEnumerateInfo, source_capacity_input: u32, source_count_output: *mut u32, sources: *mut Path, ) -> Result; #[doc = "See [xrGetInputSourceLocalizedName](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetInputSourceLocalizedName)"] pub type GetInputSourceLocalizedName = unsafe extern "system" fn( session: Session, get_info: *const InputSourceLocalizedNameGetInfo, buffer_capacity_input: u32, buffer_count_output: *mut u32, buffer: *mut c_char, ) -> Result; #[doc = "See [xrGetVulkanInstanceExtensionsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetVulkanInstanceExtensionsKHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub type GetVulkanInstanceExtensionsKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, buffer_capacity_input: u32, buffer_count_output: *mut u32, buffer: *mut c_char, ) -> Result; #[doc = "See [xrGetVulkanDeviceExtensionsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetVulkanDeviceExtensionsKHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub type GetVulkanDeviceExtensionsKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, buffer_capacity_input: u32, buffer_count_output: *mut u32, buffer: *mut c_char, ) -> Result; #[doc = "See [xrGetVulkanGraphicsDeviceKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetVulkanGraphicsDeviceKHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub type GetVulkanGraphicsDeviceKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, vk_instance: VkInstance, vk_physical_device: *mut VkPhysicalDevice, ) -> Result; #[doc = "See [xrGetOpenGLGraphicsRequirementsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetOpenGLGraphicsRequirementsKHR) - defined by [XR_KHR_opengl_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_enable)"] pub type GetOpenGLGraphicsRequirementsKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, graphics_requirements: *mut GraphicsRequirementsOpenGLKHR, ) -> Result; #[doc = "See [xrGetOpenGLESGraphicsRequirementsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetOpenGLESGraphicsRequirementsKHR) - defined by [XR_KHR_opengl_es_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_opengl_es_enable)"] pub type GetOpenGLESGraphicsRequirementsKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, graphics_requirements: *mut GraphicsRequirementsOpenGLESKHR, ) -> Result; #[doc = "See [xrGetVulkanGraphicsRequirementsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetVulkanGraphicsRequirementsKHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub type GetVulkanGraphicsRequirementsKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, graphics_requirements: *mut GraphicsRequirementsVulkanKHR, ) -> Result; #[cfg(windows)] #[doc = "See [xrGetD3D11GraphicsRequirementsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetD3D11GraphicsRequirementsKHR) - defined by [XR_KHR_D3D11_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D11_enable)"] pub type GetD3D11GraphicsRequirementsKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, graphics_requirements: *mut GraphicsRequirementsD3D11KHR, ) -> Result; #[cfg(windows)] #[doc = "See [xrGetD3D12GraphicsRequirementsKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetD3D12GraphicsRequirementsKHR) - defined by [XR_KHR_D3D12_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_D3D12_enable)"] pub type GetD3D12GraphicsRequirementsKHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, graphics_requirements: *mut GraphicsRequirementsD3D12KHR, ) -> Result; #[doc = "See [xrPerfSettingsSetPerformanceLevelEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrPerfSettingsSetPerformanceLevelEXT) - defined by [XR_EXT_performance_settings](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_performance_settings)"] pub type PerfSettingsSetPerformanceLevelEXT = unsafe extern "system" fn( session: Session, domain: PerfSettingsDomainEXT, level: PerfSettingsLevelEXT, ) -> Result; #[doc = "See [xrThermalGetTemperatureTrendEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrThermalGetTemperatureTrendEXT) - defined by [XR_EXT_thermal_query](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_thermal_query)"] pub type ThermalGetTemperatureTrendEXT = unsafe extern "system" fn( session: Session, domain: PerfSettingsDomainEXT, notification_level: *mut PerfSettingsNotificationLevelEXT, temp_headroom: *mut f32, temp_slope: *mut f32, ) -> Result; #[doc = "See [xrSetDebugUtilsObjectNameEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetDebugUtilsObjectNameEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub type SetDebugUtilsObjectNameEXT = unsafe extern "system" fn( instance: Instance, name_info: *const DebugUtilsObjectNameInfoEXT, ) -> Result; #[doc = "See [xrCreateDebugUtilsMessengerEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateDebugUtilsMessengerEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub type CreateDebugUtilsMessengerEXT = unsafe extern "system" fn( instance: Instance, create_info: *const DebugUtilsMessengerCreateInfoEXT, messenger: *mut DebugUtilsMessengerEXT, ) -> Result; #[doc = "See [xrDestroyDebugUtilsMessengerEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroyDebugUtilsMessengerEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub type DestroyDebugUtilsMessengerEXT = unsafe extern "system" fn(messenger: DebugUtilsMessengerEXT) -> Result; #[doc = "See [xrSubmitDebugUtilsMessageEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSubmitDebugUtilsMessageEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub type SubmitDebugUtilsMessageEXT = unsafe extern "system" fn( instance: Instance, message_severity: DebugUtilsMessageSeverityFlagsEXT, message_types: DebugUtilsMessageTypeFlagsEXT, callback_data: *const DebugUtilsMessengerCallbackDataEXT, ) -> Result; #[doc = "See [xrSessionBeginDebugUtilsLabelRegionEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSessionBeginDebugUtilsLabelRegionEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub type SessionBeginDebugUtilsLabelRegionEXT = unsafe extern "system" fn( session: Session, label_info: *const DebugUtilsLabelEXT, ) -> Result; #[doc = "See [xrSessionEndDebugUtilsLabelRegionEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSessionEndDebugUtilsLabelRegionEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub type SessionEndDebugUtilsLabelRegionEXT = unsafe extern "system" fn(session: Session) -> Result; #[doc = "See [xrSessionInsertDebugUtilsLabelEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSessionInsertDebugUtilsLabelEXT) - defined by [XR_EXT_debug_utils](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_debug_utils)"] pub type SessionInsertDebugUtilsLabelEXT = unsafe extern "system" fn( session: Session, label_info: *const DebugUtilsLabelEXT, ) -> Result; #[cfg(windows)] #[doc = "See [xrConvertTimeToWin32PerformanceCounterKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrConvertTimeToWin32PerformanceCounterKHR) - defined by [XR_KHR_win32_convert_performance_counter_time](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_win32_convert_performance_counter_time)"] pub type ConvertTimeToWin32PerformanceCounterKHR = unsafe extern "system" fn( instance: Instance, time: Time, performance_counter: *mut LARGE_INTEGER, ) -> Result; #[cfg(windows)] #[doc = "See [xrConvertWin32PerformanceCounterToTimeKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrConvertWin32PerformanceCounterToTimeKHR) - defined by [XR_KHR_win32_convert_performance_counter_time](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_win32_convert_performance_counter_time)"] pub type ConvertWin32PerformanceCounterToTimeKHR = unsafe extern "system" fn( instance: Instance, performance_counter: *const LARGE_INTEGER, time: *mut Time, ) -> Result; #[doc = "See [xrCreateVulkanInstanceKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateVulkanInstanceKHR) - defined by [XR_KHR_vulkan_enable2](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable2)"] pub type CreateVulkanInstanceKHR = unsafe extern "system" fn( instance: Instance, create_info: *const VulkanInstanceCreateInfoKHR, vulkan_instance: *mut VkInstance, vulkan_result: *mut VkResult, ) -> Result; #[doc = "See [xrCreateVulkanDeviceKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateVulkanDeviceKHR) - defined by [XR_KHR_vulkan_enable2](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable2)"] pub type CreateVulkanDeviceKHR = unsafe extern "system" fn( instance: Instance, create_info: *const VulkanDeviceCreateInfoKHR, vulkan_device: *mut VkDevice, vulkan_result: *mut VkResult, ) -> Result; #[doc = "See [xrGetVulkanGraphicsDevice2KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetVulkanGraphicsDevice2KHR) - defined by [XR_KHR_vulkan_enable2](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable2)"] pub type GetVulkanGraphicsDevice2KHR = unsafe extern "system" fn( instance: Instance, get_info: *const VulkanGraphicsDeviceGetInfoKHR, vulkan_physical_device: *mut VkPhysicalDevice, ) -> Result; #[doc = "See [xrConvertTimeToTimespecTimeKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrConvertTimeToTimespecTimeKHR) - defined by [XR_KHR_convert_timespec_time](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_convert_timespec_time)"] pub type ConvertTimeToTimespecTimeKHR = unsafe extern "system" fn( instance: Instance, time: Time, timespec_time: *mut timespec, ) -> Result; #[doc = "See [xrConvertTimespecTimeToTimeKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrConvertTimespecTimeToTimeKHR) - defined by [XR_KHR_convert_timespec_time](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_convert_timespec_time)"] pub type ConvertTimespecTimeToTimeKHR = unsafe extern "system" fn( instance: Instance, timespec_time: *const timespec, time: *mut Time, ) -> Result; #[doc = "See [xrGetVisibilityMaskKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetVisibilityMaskKHR) - defined by [XR_KHR_visibility_mask](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_visibility_mask)"] pub type GetVisibilityMaskKHR = unsafe extern "system" fn( session: Session, view_configuration_type: ViewConfigurationType, view_index: u32, visibility_mask_type: VisibilityMaskTypeKHR, visibility_mask: *mut VisibilityMaskKHR, ) -> Result; #[doc = "See [xrCreateSpatialAnchorMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateSpatialAnchorMSFT) - defined by [XR_MSFT_spatial_anchor](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_spatial_anchor)"] pub type CreateSpatialAnchorMSFT = unsafe extern "system" fn( session: Session, create_info: *const SpatialAnchorCreateInfoMSFT, anchor: *mut SpatialAnchorMSFT, ) -> Result; #[doc = "See [xrCreateSpatialAnchorSpaceMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateSpatialAnchorSpaceMSFT) - defined by [XR_MSFT_spatial_anchor](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_spatial_anchor)"] pub type CreateSpatialAnchorSpaceMSFT = unsafe extern "system" fn( session: Session, create_info: *const SpatialAnchorSpaceCreateInfoMSFT, space: *mut Space, ) -> Result; #[doc = "See [xrDestroySpatialAnchorMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroySpatialAnchorMSFT) - defined by [XR_MSFT_spatial_anchor](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_spatial_anchor)"] pub type DestroySpatialAnchorMSFT = unsafe extern "system" fn(anchor: SpatialAnchorMSFT) -> Result; #[doc = "See [xrSetInputDeviceActiveEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetInputDeviceActiveEXT) - defined by [XR_EXT_conformance_automation](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation)"] pub type SetInputDeviceActiveEXT = unsafe extern "system" fn( session: Session, interaction_profile: Path, top_level_path: Path, is_active: Bool32, ) -> Result; #[doc = "See [xrSetInputDeviceStateBoolEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetInputDeviceStateBoolEXT) - defined by [XR_EXT_conformance_automation](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation)"] pub type SetInputDeviceStateBoolEXT = unsafe extern "system" fn( session: Session, top_level_path: Path, input_source_path: Path, state: Bool32, ) -> Result; #[doc = "See [xrSetInputDeviceStateFloatEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetInputDeviceStateFloatEXT) - defined by [XR_EXT_conformance_automation](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation)"] pub type SetInputDeviceStateFloatEXT = unsafe extern "system" fn( session: Session, top_level_path: Path, input_source_path: Path, state: f32, ) -> Result; #[doc = "See [xrSetInputDeviceStateVector2fEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetInputDeviceStateVector2fEXT) - defined by [XR_EXT_conformance_automation](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation)"] pub type SetInputDeviceStateVector2fEXT = unsafe extern "system" fn( session: Session, top_level_path: Path, input_source_path: Path, state: Vector2f, ) -> Result; #[doc = "See [xrSetInputDeviceLocationEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetInputDeviceLocationEXT) - defined by [XR_EXT_conformance_automation](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation)"] pub type SetInputDeviceLocationEXT = unsafe extern "system" fn( session: Session, top_level_path: Path, input_source_path: Path, space: Space, pose: Posef, ) -> Result; #[doc = "See [xrInitializeLoaderKHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrInitializeLoaderKHR) - defined by [XR_KHR_loader_init](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_loader_init)"] pub type InitializeLoaderKHR = unsafe extern "system" fn(loader_init_info: *const LoaderInitInfoBaseHeaderKHR) -> Result; #[doc = "See [xrCreateSpatialGraphNodeSpaceMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateSpatialGraphNodeSpaceMSFT) - defined by [XR_MSFT_spatial_graph_bridge](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_spatial_graph_bridge)"] pub type CreateSpatialGraphNodeSpaceMSFT = unsafe extern "system" fn( session: Session, create_info: *const SpatialGraphNodeSpaceCreateInfoMSFT, space: *mut Space, ) -> Result; #[doc = "See [xrCreateHandTrackerEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateHandTrackerEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub type CreateHandTrackerEXT = unsafe extern "system" fn( session: Session, create_info: *const HandTrackerCreateInfoEXT, hand_tracker: *mut HandTrackerEXT, ) -> Result; #[doc = "See [xrDestroyHandTrackerEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrDestroyHandTrackerEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub type DestroyHandTrackerEXT = unsafe extern "system" fn(hand_tracker: HandTrackerEXT) -> Result; #[doc = "See [xrLocateHandJointsEXT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrLocateHandJointsEXT) - defined by [XR_EXT_hand_tracking](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_hand_tracking)"] pub type LocateHandJointsEXT = unsafe extern "system" fn( hand_tracker: HandTrackerEXT, locate_info: *const HandJointsLocateInfoEXT, locations: *mut HandJointLocationsEXT, ) -> Result; #[doc = "See [xrCreateHandMeshSpaceMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateHandMeshSpaceMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub type CreateHandMeshSpaceMSFT = unsafe extern "system" fn( hand_tracker: HandTrackerEXT, create_info: *const HandMeshSpaceCreateInfoMSFT, space: *mut Space, ) -> Result; #[doc = "See [xrUpdateHandMeshMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrUpdateHandMeshMSFT) - defined by [XR_MSFT_hand_tracking_mesh](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_hand_tracking_mesh)"] pub type UpdateHandMeshMSFT = unsafe extern "system" fn( hand_tracker: HandTrackerEXT, update_info: *const HandMeshUpdateInfoMSFT, hand_mesh: *mut HandMeshMSFT, ) -> Result; #[doc = "See [xrGetControllerModelKeyMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetControllerModelKeyMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub type GetControllerModelKeyMSFT = unsafe extern "system" fn( session: Session, top_level_user_path: Path, controller_model_key_state: *mut ControllerModelKeyStateMSFT, ) -> Result; #[doc = "See [xrLoadControllerModelMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrLoadControllerModelMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub type LoadControllerModelMSFT = unsafe extern "system" fn( session: Session, model_key: ControllerModelKeyMSFT, buffer_capacity_input: u32, buffer_count_output: *mut u32, buffer: *mut u8, ) -> Result; #[doc = "See [xrGetControllerModelPropertiesMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetControllerModelPropertiesMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub type GetControllerModelPropertiesMSFT = unsafe extern "system" fn( session: Session, model_key: ControllerModelKeyMSFT, properties: *mut ControllerModelPropertiesMSFT, ) -> Result; #[doc = "See [xrGetControllerModelStateMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetControllerModelStateMSFT) - defined by [XR_MSFT_controller_model](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_controller_model)"] pub type GetControllerModelStateMSFT = unsafe extern "system" fn( session: Session, model_key: ControllerModelKeyMSFT, state: *mut ControllerModelStateMSFT, ) -> Result; #[doc = "See [xrEnumerateDisplayRefreshRatesFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateDisplayRefreshRatesFB) - defined by [XR_FB_display_refresh_rate](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_display_refresh_rate)"] pub type EnumerateDisplayRefreshRatesFB = unsafe extern "system" fn( session: Session, display_refresh_rate_capacity_input: u32, display_refresh_rate_count_output: *mut u32, display_refresh_rates: *mut f32, ) -> Result; #[doc = "See [xrGetDisplayRefreshRateFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetDisplayRefreshRateFB) - defined by [XR_FB_display_refresh_rate](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_display_refresh_rate)"] pub type GetDisplayRefreshRateFB = unsafe extern "system" fn(session: Session, display_refresh_rate: *mut f32) -> Result; #[doc = "See [xrRequestDisplayRefreshRateFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrRequestDisplayRefreshRateFB) - defined by [XR_FB_display_refresh_rate](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_display_refresh_rate)"] pub type RequestDisplayRefreshRateFB = unsafe extern "system" fn(session: Session, display_refresh_rate: f32) -> Result; #[cfg(windows)] #[doc = "See [xrCreateSpatialAnchorFromPerceptionAnchorMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrCreateSpatialAnchorFromPerceptionAnchorMSFT) - defined by [XR_MSFT_perception_anchor_interop](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_perception_anchor_interop)"] pub type CreateSpatialAnchorFromPerceptionAnchorMSFT = unsafe extern "system" fn( session: Session, perception_anchor: *mut IUnknown, anchor: *mut SpatialAnchorMSFT, ) -> Result; #[cfg(windows)] #[doc = "See [xrTryGetPerceptionAnchorFromSpatialAnchorMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrTryGetPerceptionAnchorFromSpatialAnchorMSFT) - defined by [XR_MSFT_perception_anchor_interop](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_perception_anchor_interop)"] pub type TryGetPerceptionAnchorFromSpatialAnchorMSFT = unsafe extern "system" fn( session: Session, anchor: SpatialAnchorMSFT, perception_anchor: *mut *mut IUnknown, ) -> Result; #[doc = "See [xrUpdateSwapchainFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrUpdateSwapchainFB) - defined by [XR_FB_swapchain_update_state](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_swapchain_update_state)"] pub type UpdateSwapchainFB = unsafe extern "system" fn( swapchain: Swapchain, state: *const SwapchainStateBaseHeaderFB, ) -> Result; #[doc = "See [xrGetSwapchainStateFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetSwapchainStateFB) - defined by [XR_FB_swapchain_update_state](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_swapchain_update_state)"] pub type GetSwapchainStateFB = unsafe extern "system" fn( swapchain: Swapchain, state: *mut SwapchainStateBaseHeaderFB, ) -> Result; #[doc = "See [xrEnumerateColorSpacesFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateColorSpacesFB) - defined by [XR_FB_color_space](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_color_space)"] pub type EnumerateColorSpacesFB = unsafe extern "system" fn( session: Session, color_space_capacity_input: u32, color_space_count_output: *mut u32, color_spaces: *mut ColorSpaceFB, ) -> Result; #[doc = "See [xrSetColorSpaceFB](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetColorSpaceFB) - defined by [XR_FB_color_space](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_FB_color_space)"] pub type SetColorSpaceFB = unsafe extern "system" fn(session: Session, colorspace: ColorSpaceFB) -> Result; #[doc = "See [xrSetEnvironmentDepthEstimationVARJO](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrSetEnvironmentDepthEstimationVARJO) - defined by [XR_VARJO_environment_depth_estimation](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_VARJO_environment_depth_estimation)"] pub type SetEnvironmentDepthEstimationVARJO = unsafe extern "system" fn(session: Session, enabled: Bool32) -> Result; #[doc = "See [xrEnumerateReprojectionModesMSFT](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrEnumerateReprojectionModesMSFT) - defined by [XR_MSFT_composition_layer_reprojection](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_MSFT_composition_layer_reprojection)"] pub type EnumerateReprojectionModesMSFT = unsafe extern "system" fn( instance: Instance, system_id: SystemId, view_configuration_type: ViewConfigurationType, mode_capacity_input: u32, mode_count_output: *mut u32, modes: *mut ReprojectionModeMSFT, ) -> Result; #[doc = "See [xrGetAudioOutputDeviceGuidOculus](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetAudioOutputDeviceGuidOculus) - defined by [XR_OCULUS_audio_device_guid](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_OCULUS_audio_device_guid)"] pub type GetAudioOutputDeviceGuidOculus = unsafe extern "system" fn(instance: Instance, buffer: *mut wchar_t) -> Result; #[doc = "See [xrGetAudioInputDeviceGuidOculus](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetAudioInputDeviceGuidOculus) - defined by [XR_OCULUS_audio_device_guid](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_OCULUS_audio_device_guid)"] pub type GetAudioInputDeviceGuidOculus = unsafe extern "system" fn(instance: Instance, buffer: *mut wchar_t) -> Result; #[doc = "See [xrGetVulkanGraphicsRequirements2KHR](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#xrGetVulkanGraphicsRequirements2KHR) - defined by [XR_KHR_vulkan_enable](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_vulkan_enable)"] pub type GetVulkanGraphicsRequirements2KHR = unsafe extern "system" fn( instance: Instance, system_id: SystemId, graphics_requirements: *mut GraphicsRequirementsVulkanKHR, ) -> Result; } pub const EPIC_view_configuration_fov_SPEC_VERSION: u32 = 2u32; pub const EPIC_VIEW_CONFIGURATION_FOV_EXTENSION_NAME: &[u8] = b"XR_EPIC_view_configuration_fov\0"; pub const EXT_performance_settings_SPEC_VERSION: u32 = 3u32; pub const EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME: &[u8] = b"XR_EXT_performance_settings\0"; pub const EXT_thermal_query_SPEC_VERSION: u32 = 2u32; pub const EXT_THERMAL_QUERY_EXTENSION_NAME: &[u8] = b"XR_EXT_thermal_query\0"; pub const EXT_debug_utils_SPEC_VERSION: u32 = 4u32; pub const EXT_DEBUG_UTILS_EXTENSION_NAME: &[u8] = b"XR_EXT_debug_utils\0"; pub const EXT_eye_gaze_interaction_SPEC_VERSION: u32 = 1u32; pub const EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME: &[u8] = b"XR_EXT_eye_gaze_interaction\0"; pub const EXT_view_configuration_depth_range_SPEC_VERSION: u32 = 1u32; pub const EXT_VIEW_CONFIGURATION_DEPTH_RANGE_EXTENSION_NAME: &[u8] = b"XR_EXT_view_configuration_depth_range\0"; pub const EXT_conformance_automation_SPEC_VERSION: u32 = 3u32; pub const EXT_CONFORMANCE_AUTOMATION_EXTENSION_NAME: &[u8] = b"XR_EXT_conformance_automation\0"; pub const EXT_hand_tracking_SPEC_VERSION: u32 = 4u32; pub const EXT_HAND_TRACKING_EXTENSION_NAME: &[u8] = b"XR_EXT_hand_tracking\0"; #[cfg(windows)] pub const EXT_win32_appcontainer_compatible_SPEC_VERSION: u32 = 1u32; #[cfg(windows)] pub const EXT_WIN32_APPCONTAINER_COMPATIBLE_EXTENSION_NAME: &[u8] = b"XR_EXT_win32_appcontainer_compatible\0"; pub const EXT_hand_joints_motion_range_SPEC_VERSION: u32 = 1u32; pub const EXT_HAND_JOINTS_MOTION_RANGE_EXTENSION_NAME: &[u8] = b"XR_EXT_hand_joints_motion_range\0"; pub const EXT_samsung_odyssey_controller_SPEC_VERSION: u32 = 1u32; pub const EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME: &[u8] = b"XR_EXT_samsung_odyssey_controller\0"; pub const EXT_hp_mixed_reality_controller_SPEC_VERSION: u32 = 1u32; pub const EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME: &[u8] = b"XR_EXT_hp_mixed_reality_controller\0"; pub const EXTX_overlay_SPEC_VERSION: u32 = 5u32; pub const EXTX_OVERLAY_EXTENSION_NAME: &[u8] = b"XR_EXTX_overlay\0"; #[cfg(target_os = "android")] pub const FB_android_surface_swapchain_create_SPEC_VERSION: u32 = 1u32; #[cfg(target_os = "android")] pub const FB_ANDROID_SURFACE_SWAPCHAIN_CREATE_EXTENSION_NAME: &[u8] = b"XR_FB_android_surface_swapchain_create\0"; pub const FB_swapchain_update_state_SPEC_VERSION: u32 = 3u32; pub const FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME: &[u8] = b"XR_FB_swapchain_update_state\0"; pub const FB_display_refresh_rate_SPEC_VERSION: u32 = 1u32; pub const FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME: &[u8] = b"XR_FB_display_refresh_rate\0"; pub const FB_color_space_SPEC_VERSION: u32 = 1u32; pub const FB_COLOR_SPACE_EXTENSION_NAME: &[u8] = b"XR_FB_color_space\0"; #[cfg(target_os = "android")] pub const FB_swapchain_update_state_android_surface_SPEC_VERSION: u32 = 1u32; #[cfg(target_os = "android")] pub const FB_SWAPCHAIN_UPDATE_STATE_ANDROID_SURFACE_EXTENSION_NAME: &[u8] = b"XR_FB_swapchain_update_state_android_surface\0"; pub const FB_swapchain_update_state_opengl_es_SPEC_VERSION: u32 = 1u32; pub const FB_SWAPCHAIN_UPDATE_STATE_OPENGL_ES_EXTENSION_NAME: &[u8] = b"XR_FB_swapchain_update_state_opengl_es\0"; pub const FB_swapchain_update_state_vulkan_SPEC_VERSION: u32 = 1u32; pub const FB_SWAPCHAIN_UPDATE_STATE_VULKAN_EXTENSION_NAME: &[u8] = b"XR_FB_swapchain_update_state_vulkan\0"; pub const HTC_vive_cosmos_controller_interaction_SPEC_VERSION: u32 = 1u32; pub const HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME: &[u8] = b"XR_HTC_vive_cosmos_controller_interaction\0"; pub const HUAWEI_controller_interaction_SPEC_VERSION: u32 = 1u32; pub const HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME: &[u8] = b"XR_HUAWEI_controller_interaction\0"; #[cfg(target_os = "android")] pub const KHR_android_thread_settings_SPEC_VERSION: u32 = 5u32; #[cfg(target_os = "android")] pub const KHR_ANDROID_THREAD_SETTINGS_EXTENSION_NAME: &[u8] = b"XR_KHR_android_thread_settings\0"; #[cfg(target_os = "android")] pub const KHR_android_surface_swapchain_SPEC_VERSION: u32 = 4u32; #[cfg(target_os = "android")] pub const KHR_ANDROID_SURFACE_SWAPCHAIN_EXTENSION_NAME: &[u8] = b"XR_KHR_android_surface_swapchain\0"; pub const KHR_composition_layer_cube_SPEC_VERSION: u32 = 8u32; pub const KHR_COMPOSITION_LAYER_CUBE_EXTENSION_NAME: &[u8] = b"XR_KHR_composition_layer_cube\0"; #[cfg(target_os = "android")] pub const KHR_android_create_instance_SPEC_VERSION: u32 = 3u32; #[cfg(target_os = "android")] pub const KHR_ANDROID_CREATE_INSTANCE_EXTENSION_NAME: &[u8] = b"XR_KHR_android_create_instance\0"; pub const KHR_composition_layer_depth_SPEC_VERSION: u32 = 5u32; pub const KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME: &[u8] = b"XR_KHR_composition_layer_depth\0"; pub const KHR_vulkan_swapchain_format_list_SPEC_VERSION: u32 = 4u32; pub const KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME: &[u8] = b"XR_KHR_vulkan_swapchain_format_list\0"; pub const KHR_composition_layer_cylinder_SPEC_VERSION: u32 = 4u32; pub const KHR_COMPOSITION_LAYER_CYLINDER_EXTENSION_NAME: &[u8] = b"XR_KHR_composition_layer_cylinder\0"; pub const KHR_composition_layer_equirect_SPEC_VERSION: u32 = 3u32; pub const KHR_COMPOSITION_LAYER_EQUIRECT_EXTENSION_NAME: &[u8] = b"XR_KHR_composition_layer_equirect\0"; pub const KHR_opengl_enable_SPEC_VERSION: u32 = 9u32; pub const KHR_OPENGL_ENABLE_EXTENSION_NAME: &[u8] = b"XR_KHR_opengl_enable\0"; pub const KHR_opengl_es_enable_SPEC_VERSION: u32 = 7u32; pub const KHR_OPENGL_ES_ENABLE_EXTENSION_NAME: &[u8] = b"XR_KHR_opengl_es_enable\0"; pub const KHR_vulkan_enable_SPEC_VERSION: u32 = 8u32; pub const KHR_VULKAN_ENABLE_EXTENSION_NAME: &[u8] = b"XR_KHR_vulkan_enable\0"; #[cfg(windows)] pub const KHR_D3D11_enable_SPEC_VERSION: u32 = 5u32; #[cfg(windows)] pub const KHR_D3D11_ENABLE_EXTENSION_NAME: &[u8] = b"XR_KHR_D3D11_enable\0"; #[cfg(windows)] pub const KHR_D3D12_enable_SPEC_VERSION: u32 = 7u32; #[cfg(windows)] pub const KHR_D3D12_ENABLE_EXTENSION_NAME: &[u8] = b"XR_KHR_D3D12_enable\0"; pub const KHR_visibility_mask_SPEC_VERSION: u32 = 2u32; pub const KHR_VISIBILITY_MASK_EXTENSION_NAME: &[u8] = b"XR_KHR_visibility_mask\0"; pub const KHR_composition_layer_color_scale_bias_SPEC_VERSION: u32 = 5u32; pub const KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME: &[u8] = b"XR_KHR_composition_layer_color_scale_bias\0"; #[cfg(windows)] pub const KHR_win32_convert_performance_counter_time_SPEC_VERSION: u32 = 1u32; #[cfg(windows)] pub const KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME: &[u8] = b"XR_KHR_win32_convert_performance_counter_time\0"; pub const KHR_convert_timespec_time_SPEC_VERSION: u32 = 1u32; pub const KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME: &[u8] = b"XR_KHR_convert_timespec_time\0"; pub const KHR_loader_init_SPEC_VERSION: u32 = 1u32; pub const KHR_LOADER_INIT_EXTENSION_NAME: &[u8] = b"XR_KHR_loader_init\0"; #[cfg(target_os = "android")] pub const KHR_loader_init_android_SPEC_VERSION: u32 = 1u32; #[cfg(target_os = "android")] pub const KHR_LOADER_INIT_ANDROID_EXTENSION_NAME: &[u8] = b"XR_KHR_loader_init_android\0"; pub const KHR_vulkan_enable2_SPEC_VERSION: u32 = 2u32; pub const KHR_VULKAN_ENABLE2_EXTENSION_NAME: &[u8] = b"XR_KHR_vulkan_enable2\0"; pub const KHR_composition_layer_equirect2_SPEC_VERSION: u32 = 1u32; pub const KHR_COMPOSITION_LAYER_EQUIRECT2_EXTENSION_NAME: &[u8] = b"XR_KHR_composition_layer_equirect2\0"; pub const KHR_binding_modification_SPEC_VERSION: u32 = 1u32; pub const KHR_BINDING_MODIFICATION_EXTENSION_NAME: &[u8] = b"XR_KHR_binding_modification\0"; pub const MND_headless_SPEC_VERSION: u32 = 2u32; pub const MND_HEADLESS_EXTENSION_NAME: &[u8] = b"XR_MND_headless\0"; pub const MND_swapchain_usage_input_attachment_bit_SPEC_VERSION: u32 = 2u32; pub const MND_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME: &[u8] = b"XR_MND_swapchain_usage_input_attachment_bit\0"; pub const MNDX_egl_enable_SPEC_VERSION: u32 = 1u32; pub const MNDX_EGL_ENABLE_EXTENSION_NAME: &[u8] = b"XR_MNDX_egl_enable\0"; pub const MSFT_unbounded_reference_space_SPEC_VERSION: u32 = 1u32; pub const MSFT_UNBOUNDED_REFERENCE_SPACE_EXTENSION_NAME: &[u8] = b"XR_MSFT_unbounded_reference_space\0"; pub const MSFT_spatial_anchor_SPEC_VERSION: u32 = 1u32; pub const MSFT_SPATIAL_ANCHOR_EXTENSION_NAME: &[u8] = b"XR_MSFT_spatial_anchor\0"; pub const MSFT_spatial_graph_bridge_SPEC_VERSION: u32 = 1u32; pub const MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAME: &[u8] = b"XR_MSFT_spatial_graph_bridge\0"; pub const MSFT_hand_interaction_SPEC_VERSION: u32 = 1u32; pub const MSFT_HAND_INTERACTION_EXTENSION_NAME: &[u8] = b"XR_MSFT_hand_interaction\0"; pub const MSFT_hand_tracking_mesh_SPEC_VERSION: u32 = 3u32; pub const MSFT_HAND_TRACKING_MESH_EXTENSION_NAME: &[u8] = b"XR_MSFT_hand_tracking_mesh\0"; pub const MSFT_secondary_view_configuration_SPEC_VERSION: u32 = 1u32; pub const MSFT_SECONDARY_VIEW_CONFIGURATION_EXTENSION_NAME: &[u8] = b"XR_MSFT_secondary_view_configuration\0"; pub const MSFT_first_person_observer_SPEC_VERSION: u32 = 1u32; pub const MSFT_FIRST_PERSON_OBSERVER_EXTENSION_NAME: &[u8] = b"XR_MSFT_first_person_observer\0"; pub const MSFT_controller_model_SPEC_VERSION: u32 = 2u32; pub const MSFT_CONTROLLER_MODEL_EXTENSION_NAME: &[u8] = b"XR_MSFT_controller_model\0"; #[cfg(windows)] pub const MSFT_perception_anchor_interop_SPEC_VERSION: u32 = 1u32; #[cfg(windows)] pub const MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME: &[u8] = b"XR_MSFT_perception_anchor_interop\0"; #[cfg(windows)] pub const MSFT_holographic_window_attachment_SPEC_VERSION: u32 = 1u32; #[cfg(windows)] pub const MSFT_HOLOGRAPHIC_WINDOW_ATTACHMENT_EXTENSION_NAME: &[u8] = b"XR_MSFT_holographic_window_attachment\0"; pub const MSFT_composition_layer_reprojection_SPEC_VERSION: u32 = 1u32; pub const MSFT_COMPOSITION_LAYER_REPROJECTION_EXTENSION_NAME: &[u8] = b"XR_MSFT_composition_layer_reprojection\0"; pub const MSFT_scene_understanding_SPEC_VERSION: u32 = 1u32; pub const MSFT_SCENE_UNDERSTANDING_EXTENSION_NAME: &[u8] = b"XR_MSFT_scene_understanding\0"; pub const MSFT_scene_understanding_serialization_SPEC_VERSION: u32 = 1u32; pub const MSFT_SCENE_UNDERSTANDING_SERIALIZATION_EXTENSION_NAME: &[u8] = b"XR_MSFT_scene_understanding_serialization\0"; #[cfg(target_os = "android")] pub const OCULUS_android_session_state_enable_SPEC_VERSION: u32 = 1u32; #[cfg(target_os = "android")] pub const OCULUS_ANDROID_SESSION_STATE_ENABLE_EXTENSION_NAME: &[u8] = b"XR_OCULUS_android_session_state_enable\0"; pub const OCULUS_audio_device_guid_SPEC_VERSION: u32 = 1u32; pub const OCULUS_AUDIO_DEVICE_GUID_EXTENSION_NAME: &[u8] = b"XR_OCULUS_audio_device_guid\0"; pub const VALVE_analog_threshold_SPEC_VERSION: u32 = 1u32; pub const VALVE_ANALOG_THRESHOLD_EXTENSION_NAME: &[u8] = b"XR_VALVE_analog_threshold\0"; pub const VARJO_quad_views_SPEC_VERSION: u32 = 1u32; pub const VARJO_QUAD_VIEWS_EXTENSION_NAME: &[u8] = b"XR_VARJO_quad_views\0"; pub const VARJO_foveated_rendering_SPEC_VERSION: u32 = 1u32; pub const VARJO_FOVEATED_RENDERING_EXTENSION_NAME: &[u8] = b"XR_VARJO_foveated_rendering\0"; pub const VARJO_composition_layer_depth_test_SPEC_VERSION: u32 = 1u32; pub const VARJO_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME: &[u8] = b"XR_VARJO_composition_layer_depth_test\0"; pub const VARJO_environment_depth_estimation_SPEC_VERSION: u32 = 1u32; pub const VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME: &[u8] = b"XR_VARJO_environment_depth_estimation\0"; #[cfg(feature = "linked")] extern "system" { #[link_name = "xrGetInstanceProcAddr"] pub fn get_instance_proc_addr( instance: Instance, name: *const c_char, function: *mut Option<pfn::VoidFunction>, ) -> Result; #[link_name = "xrEnumerateApiLayerProperties"] pub fn enumerate_api_layer_properties( property_capacity_input: u32, property_count_output: *mut u32, properties: *mut ApiLayerProperties, ) -> Result; #[link_name = "xrEnumerateInstanceExtensionProperties"] pub fn enumerate_instance_extension_properties( layer_name: *const c_char, property_capacity_input: u32, property_count_output: *mut u32, properties: *mut ExtensionProperties, ) -> Result; #[link_name = "xrCreateInstance"] pub fn create_instance( create_info: *const InstanceCreateInfo, instance: *mut Instance, ) -> Result; #[link_name = "xrDestroyInstance"] pub fn destroy_instance(instance: Instance) -> Result; #[link_name = "xrResultToString"] pub fn result_to_string(instance: Instance, value: Result, buffer: *mut c_char) -> Result; #[link_name = "xrStructureTypeToString"] pub fn structure_type_to_string( instance: Instance, value: StructureType, buffer: *mut c_char, ) -> Result; #[link_name = "xrGetInstanceProperties"] pub fn get_instance_properties( instance: Instance, instance_properties: *mut InstanceProperties, ) -> Result; #[link_name = "xrGetSystem"] pub fn get_system( instance: Instance, get_info: *const SystemGetInfo, system_id: *mut SystemId, ) -> Result; #[link_name = "xrGetSystemProperties"] pub fn get_system_properties( instance: Instance, system_id: SystemId, properties: *mut SystemProperties, ) -> Result; #[link_name = "xrCreateSession"] pub fn create_session( instance: Instance, create_info: *const SessionCreateInfo, session: *mut Session, ) -> Result; #[link_name = "xrDestroySession"] pub fn destroy_session(session: Session) -> Result; #[link_name = "xrDestroySpace"] pub fn destroy_space(space: Space) -> Result; #[link_name = "xrEnumerateSwapchainFormats"] pub fn enumerate_swapchain_formats( session: Session, format_capacity_input: u32, format_count_output: *mut u32, formats: *mut i64, ) -> Result; #[link_name = "xrCreateSwapchain"] pub fn create_swapchain( session: Session, create_info: *const SwapchainCreateInfo, swapchain: *mut Swapchain, ) -> Result; #[link_name = "xrDestroySwapchain"] pub fn destroy_swapchain(swapchain: Swapchain) -> Result; #[link_name = "xrEnumerateSwapchainImages"] pub fn enumerate_swapchain_images( swapchain: Swapchain, image_capacity_input: u32, image_count_output: *mut u32, images: *mut SwapchainImageBaseHeader, ) -> Result; #[link_name = "xrAcquireSwapchainImage"] pub fn acquire_swapchain_image( swapchain: Swapchain, acquire_info: *const SwapchainImageAcquireInfo, index: *mut u32, ) -> Result; #[link_name = "xrWaitSwapchainImage"] pub fn wait_swapchain_image( swapchain: Swapchain, wait_info: *const SwapchainImageWaitInfo, ) -> Result; #[link_name = "xrReleaseSwapchainImage"] pub fn release_swapchain_image( swapchain: Swapchain, release_info: *const SwapchainImageReleaseInfo, ) -> Result; #[link_name = "xrBeginSession"] pub fn begin_session(session: Session, begin_info: *const SessionBeginInfo) -> Result; #[link_name = "xrEndSession"] pub fn end_session(session: Session) -> Result; #[link_name = "xrRequestExitSession"] pub fn request_exit_session(session: Session) -> Result; #[link_name = "xrEnumerateReferenceSpaces"] pub fn enumerate_reference_spaces( session: Session, space_capacity_input: u32, space_count_output: *mut u32, spaces: *mut ReferenceSpaceType, ) -> Result; #[link_name = "xrCreateReferenceSpace"] pub fn create_reference_space( session: Session, create_info: *const ReferenceSpaceCreateInfo, space: *mut Space, ) -> Result; #[link_name = "xrCreateActionSpace"] pub fn create_action_space( session: Session, create_info: *const ActionSpaceCreateInfo, space: *mut Space, ) -> Result; #[link_name = "xrLocateSpace"] pub fn locate_space( space: Space, base_space: Space, time: Time, location: *mut SpaceLocation, ) -> Result; #[link_name = "xrEnumerateViewConfigurations"] pub fn enumerate_view_configurations( instance: Instance, system_id: SystemId, view_configuration_type_capacity_input: u32, view_configuration_type_count_output: *mut u32, view_configuration_types: *mut ViewConfigurationType, ) -> Result; #[link_name = "xrEnumerateEnvironmentBlendModes"] pub fn enumerate_environment_blend_modes( instance: Instance, system_id: SystemId, view_configuration_type: ViewConfigurationType, environment_blend_mode_capacity_input: u32, environment_blend_mode_count_output: *mut u32, environment_blend_modes: *mut EnvironmentBlendMode, ) -> Result; #[link_name = "xrGetViewConfigurationProperties"] pub fn get_view_configuration_properties( instance: Instance, system_id: SystemId, view_configuration_type: ViewConfigurationType, configuration_properties: *mut ViewConfigurationProperties, ) -> Result; #[link_name = "xrEnumerateViewConfigurationViews"] pub fn enumerate_view_configuration_views( instance: Instance, system_id: SystemId, view_configuration_type: ViewConfigurationType, view_capacity_input: u32, view_count_output: *mut u32, views: *mut ViewConfigurationView, ) -> Result; #[link_name = "xrBeginFrame"] pub fn begin_frame(session: Session, frame_begin_info: *const FrameBeginInfo) -> Result; #[link_name = "xrLocateViews"] pub fn locate_views( session: Session, view_locate_info: *const ViewLocateInfo, view_state: *mut ViewState, view_capacity_input: u32, view_count_output: *mut u32, views: *mut View, ) -> Result; #[link_name = "xrEndFrame"] pub fn end_frame(session: Session, frame_end_info: *const FrameEndInfo) -> Result; #[link_name = "xrWaitFrame"] pub fn wait_frame( session: Session, frame_wait_info: *const FrameWaitInfo, frame_state: *mut FrameState, ) -> Result; #[link_name = "xrApplyHapticFeedback"] pub fn apply_haptic_feedback( session: Session, haptic_action_info: *const HapticActionInfo, haptic_feedback: *const HapticBaseHeader, ) -> Result; #[link_name = "xrStopHapticFeedback"] pub fn stop_haptic_feedback( session: Session, haptic_action_info: *const HapticActionInfo, ) -> Result; #[link_name = "xrPollEvent"] pub fn poll_event(instance: Instance, event_data: *mut EventDataBuffer) -> Result; #[link_name = "xrStringToPath"] pub fn string_to_path( instance: Instance, path_string: *const c_char, path: *mut Path, ) -> Result; #[link_name = "xrPathToString"] pub fn path_to_string( instance: Instance, path: Path, buffer_capacity_input: u32, buffer_count_output: *mut u32, buffer: *mut c_char, ) -> Result; #[link_name = "xrGetReferenceSpaceBoundsRect"] pub fn get_reference_space_bounds_rect( session: Session, reference_space_type: ReferenceSpaceType, bounds: *mut Extent2Df, ) -> Result; #[link_name = "xrGetActionStateBoolean"] pub fn get_action_state_boolean( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStateBoolean, ) -> Result; #[link_name = "xrGetActionStateFloat"] pub fn get_action_state_float( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStateFloat, ) -> Result; #[link_name = "xrGetActionStateVector2f"] pub fn get_action_state_vector2f( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStateVector2f, ) -> Result; #[link_name = "xrGetActionStatePose"] pub fn get_action_state_pose( session: Session, get_info: *const ActionStateGetInfo, state: *mut ActionStatePose, ) -> Result; #[link_name = "xrCreateActionSet"] pub fn create_action_set( instance: Instance, create_info: *const ActionSetCreateInfo, action_set: *mut ActionSet, ) -> Result; #[link_name = "xrDestroyActionSet"] pub fn destroy_action_set(action_set: ActionSet) -> Result; #[link_name = "xrCreateAction"] pub fn create_action( action_set: ActionSet, create_info: *const ActionCreateInfo, action: *mut Action, ) -> Result; #[link_name = "xrDestroyAction"] pub fn destroy_action(action: Action) -> Result; #[link_name = "xrSuggestInteractionProfileBindings"] pub fn suggest_interaction_profile_bindings( instance: Instance, suggested_bindings: *const InteractionProfileSuggestedBinding, ) -> Result; #[link_name = "xrAttachSessionActionSets"] pub fn attach_session_action_sets( session: Session, attach_info: *const SessionActionSetsAttachInfo, ) -> Result; #[link_name = "xrGetCurrentInteractionProfile"] pub fn get_current_interaction_profile( session: Session, top_level_user_path: Path, interaction_profile: *mut InteractionProfileState, ) -> Result; #[link_name = "xrSyncActions"] pub fn sync_actions(session: Session, sync_info: *const ActionsSyncInfo) -> Result; #[link_name = "xrEnumerateBoundSourcesForAction"] pub fn enumerate_bound_sources_for_action( session: Session, enumerate_info: *const BoundSourcesForActionEnumerateInfo, source_capacity_input: u32, source_count_output: *mut u32, sources: *mut Path, ) -> Result; #[link_name = "xrGetInputSourceLocalizedName"] pub fn get_input_source_localized_name( session: Session, get_info: *const InputSourceLocalizedNameGetInfo, buffer_capacity_input: u32, buffer_count_output: *mut u32, buffer: *mut c_char, ) -> Result; }