1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937
// Registry { types: {"ANGLE_instanced_arrays": Interface(Interface { inherits: None, mixins: {}, members: {"VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35070" })], "drawArraysInstancedANGLE": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "first", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "count", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "primcount", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "drawElementsInstancedANGLE": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "count", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "primcount", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribDivisorANGLE": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "divisor", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// The implementation must validate the indices referenced by drawArraysInstancedANGLE and drawElementsInstancedANGLE similarly to how indices referenced by drawArrays and drawElements are validated according to section [Enabled Vertex Attributes and Range Checking](http://www.khronos.org/registry/webgl/specs/1.0/#ATTRIBS_AND_RANGE_CHECKING) of the WebGL specification.\n/// \n/// Although the extension contains ANGLE in the name it may be exposed by any implementation, whether or not the implementation uses the ANGLE library.\n" }), "EXT_blend_minmax": Interface(Interface { inherits: None, mixins: {}, members: {"MAX_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32776" })], "MIN_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32775" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// The blendEquation and blendEquationSeparate entry points are extended to accept MIN_EXT and MAX_EXT\n" }), "EXT_color_buffer_float": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// The sized internal format RGB16F is not color-renderable in this extension. This is a difference in functionality compared to the [EXT_color_buffer_half_float](../EXT_color_buffer_half_float) extension.\n/// \n/// The following floating-point internal formats become color-renderable: R16F, RG16F, RGBA16F, R32F, RG32F, RGBA32F and R11F_G11F_B10F. A renderbuffer or a texture with a color-renderable internal format can be used as a rendering target by attaching it to a framebuffer object as a color attachment.\n/// \n/// Renderbuffers with these internal formats can be created.\n/// \n/// The format and type combination RGBA and FLOAT becomes valid for reading from a floating-point color buffer.\n/// \n/// Notes:\n/// \n/// * Fragment shader outputs to buffers with these internal formats are not clamped.\n/// * Colors specified with clearColor and blendColor are not clamped when applied to buffers with these internal formats.\n/// * The format and type combination RGBA and UNSIGNED_BYTE cannot be used for reading from a floating-point color buffer.\n/// * Multi-sample floating-point color renderbuffers may optionally be supported. Limitations are defined in the [EXT_color_buffer_float](http://www.khronos.org/registry/gles/extensions/EXT/EXT_color_buffer_float.txt) extension.\n/// * The sized internal format RGB16F is not color-renderable in this extension.\n" }), "EXT_color_buffer_half_float": Interface(Interface { inherits: None, mixins: {}, members: {"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33297" })], "RGB16F_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34843" })], "RGBA16F_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34842" })], "UNSIGNED_NORMALIZED_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35863" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// All references to R16F and RG16F types are ignored.\n/// \n/// WebGL implementations supporting this extension are required to \tsupport rendering to RGBA16F format.\n/// \n/// The 16-bit floating-point types RGB16F and RGBA16F become available as color-renderable formats. Renderbuffers can be created in these formats. These and textures created with type = HALF_FLOAT_OES, which will have one of these internal formats, can be attached to framebuffer object color attachments for rendering. Implementations supporting this extension are \trequired to support rendering to RGBA16F format. \tApplications must check framebuffer completeness to determine if \tRGB16F is supported.\n/// \n/// NOTE: fragment shaders outputs gl_FragColor and gl_FragData[0] will only be clamped and converted when the color buffer is fixed-point and blendColor() and clearColor() will no longer clamp their parameter values on input. Clamping will be applied as necessary at draw time according to the type of color buffer in use.\n/// \n/// The format and type combination RGBA and FLOAT becomes valid for reading from a floating-point rendering buffer. Note: RGBA and UNSIGNED_BYTE cannot be used for reading from a floating-point rendering buffer.\n/// \n/// The component types of framebuffer object attachments can be queried.\n" }), "EXT_disjoint_timer_query": Interface(Interface { inherits: None, mixins: {}, members: {"CURRENT_QUERY_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34917" })], "GPU_DISJOINT_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36795" })], "QUERY_COUNTER_BITS_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34916" })], "QUERY_RESULT_AVAILABLE_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34919" })], "QUERY_RESULT_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34918" })], "TIMESTAMP_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36392" })], "TIME_ELAPSED_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35007" })], "beginQueryEXT": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLTimerQueryEXT"), optional: false }, variadic: false }], return_type: None, doc_comment: "/// target accepts TIME_ELAPSED_EXT.\n" })], "createQueryEXT": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLTimerQueryEXT"), optional: true }), doc_comment: "/// \n" })], "deleteQueryEXT": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLTimerQueryEXT"), optional: true }, variadic: false }], return_type: None, doc_comment: "/// \n" })], "endQueryEXT": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "/// target accepts TIME_ELAPSED_EXT.\n" })], "getQueryEXT": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "/// target and pname accept the following combinations of parameters. The return type of this method depends on the parameter queried.\n/// targetpnamereturned type TIME_ELAPSED_EXTCURRENT_QUERYWebGLQuery? TIMESTAMP_EXTCURRENT_QUERYnull TIME_ELAPSED_EXTQUERY_COUNTER_BITS_EXTGLint TIMESTAMP_EXTQUERY_COUNTER_BITS_EXTGLint\n" })], "getQueryObjectEXT": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLTimerQueryEXT"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "/// pname accepts QUERY_RESULT_EXT or QUERY_RESULT_AVAILABLE_EXT.\n/// The return type of this method depends on the parameter queried: pnamereturned type QUERY_RESULT_EXTGLuint64EXT QUERY_RESULT_AVAILABLE_EXTboolean\n/// In order to ensure consistent behavior across platforms, queries\' results must only be made available when the user agent\'s [event loop](http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#event-loops) is not executing a task. In other words:\n/// \n/// * A query\'s result must not be made available until control has returned to the user agent\'s main loop.\n/// * Repeatedly fetching a query\'s QUERY_RESULT_AVAILABLE_EXT parameter in a loop, without returning control to the user agent, must always return the same value.\n/// \n/// A query\'s result may or may not be made available when control returns to the user agent\'s event loop. It is not guaranteed that using a single setTimeout callback with a delay of 0, or a single requestAnimationFrame callback, will allow sufficient time for the WebGL implementation to supply the query\'s results.\n/// \n/// This change compared to the original extension specification is enforced in order to prevent applications from relying on being able to issue a query and fetch its result in the same frame. In order to ensure best portability among devices and best performance among implementations, applications must expect that queries\' results will become available asynchronously.\n" })], "isQueryEXT": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLTimerQueryEXT"), optional: true }, variadic: false }], return_type: Some(Type { kind: Primitive(Bool), optional: false }), doc_comment: "/// Returns true if the passed WebGLTimerQueryEXT is valid and false otherwise. Returns false if the query\'s [invalidated flag](http://www.khronos.org/registry/webgl/specs/1.0.1/#webgl-object-invalidated-flag) is set.\n" })], "queryCounterEXT": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLTimerQueryEXT"), optional: false }, variadic: false }, Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "/// target accepts TIMESTAMP_EXT.\n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Specifies that queries\' results only become available at certain well-defined times. This extension provides a query mechanism that can be used to determine the amount of time it takes to fully complete a set of GL commands, and without stalling the rendering pipeline. It uses the query object mechanisms first introduced in the occlusion query extension, which allow time intervals to be polled asynchronously by the application. This version of the disjoint_timer_query extension is exposed only on on WebGL 1.0 contexts. See the _webgl2 version of the extension for how it is exposed on WebGL 2.0 contexts.\n" }), "EXT_disjoint_timer_query_webgl2": Interface(Interface { inherits: None, mixins: {}, members: {"GPU_DISJOINT_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36795" })], "QUERY_COUNTER_BITS_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34916" })], "TIMESTAMP_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36392" })], "TIME_ELAPSED_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35007" })], "queryCounterEXT": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLQuery"), optional: false }, variadic: false }, Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "/// target accepts TIMESTAMP_EXT.\n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Specifies that queries\' results only become available at certain well-defined times. This extension provides the same functionality as [EXT_disjoint_timer_query](../EXT_disjoint_timer_query/). The IDL, description, and extension name are specialized for WebGL 2.0, which incorporates query objects into the core specification.\n" }), "EXT_float_blend": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// An INVALID_OPERATION error will no longer be raised by drawArrays or drawElements when blending is enabled and the draw buffer has 32-bit floating-point components. Note that in order to create such a draw buffer the [ EXT_color_buffer_float](http://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_float) extension must be enabled.\n" }), "EXT_frag_depth": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Adds the ability to set the depth value of a fragment from within the fragment shader with the built-in output variable gl_FragDepthEXT.\n" }), "EXT_sRGB": Interface(Interface { inherits: None, mixins: {}, members: {"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33296" })], "SRGB8_ALPHA8_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35907" })], "SRGB_ALPHA_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35906" })], "SRGB_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35904" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Adds the sRGB support to textures and framebuffer objects.\n" }), "EXT_shader_texture_lod": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD.\n" }), "EXT_texture_compression_bptc": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_RGBA_BPTC_UNORM_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36492" })], "COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36494" })], "COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36495" })], "COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36493" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the compressed texture format defined in the [ EXT_texture_compression_bptc](https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_compression_bptc.txt) OpenGL ES extension to WebGL. Consult that extension specification for behavioral definitions, including error behaviors.\n/// \n/// Sampling from textures in the COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT format performs a color space conversion as specified for SRGB textures in the [EXT_sRGB](https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_sRGB.txt) OpenGL ES extension. Compression format COMPRESSED_RGBA_BPTC_UNORM_EXT, COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT, COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT, and COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the formats from this specification.\n/// \n/// If the internalformat is one of the BPTC internal formats from this specification, the byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > ceil(width / 4) * ceil(height / 4) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n" }), "EXT_texture_compression_rgtc": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_RED_GREEN_RGTC2_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36285" })], "COMPRESSED_RED_RGTC1_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36283" })], "COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36286" })], "COMPRESSED_SIGNED_RED_RGTC1_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36284" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the compressed texture format defined in the [ EXT_texture_compression_rgtc](https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_compression_rgtc.txt) OpenGL extension to WebGL. Consult that extension specification for behavioral definitions, including error behaviors.\n/// \n/// Updates of partial tiles detailed in the \"Implementation Note\" section of the EXT_texture_compression_rgtc specification must be supported in an implementation of this WebGL extension. Compression formats COMPRESSED_RED_RGTC1_EXT, COMPRESSED_SIGNED_RED_RGTC1_EXT, COMPRESSED_RED_GREEN_RGTC2_EXT, and COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the formats from this specification.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RED_RGTC1_EXT COMPRESSED_SIGNED_RED_RGTC1_EXT\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > ceil(width / 4) * ceil(height / 4) * 8\n/// \n/// If it is not, an INVALID_VALUE error is generated. COMPRESSED_RED_GREEN_RGTC2_EXT COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > ceil(width / 4) * ceil(height / 4) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n" }), "EXT_texture_filter_anisotropic": Interface(Interface { inherits: None, mixins: {}, members: {"MAX_TEXTURE_MAX_ANISOTROPY_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34047" })], "TEXTURE_MAX_ANISOTROPY_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34046" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// The getTexParameter, texParameterf and texParameteri entry points\' parameter pname accepts the value TEXTURE_MAX_ANISOTROPY_EXT The getParameter entry point parameter pname accepts the value MAX_TEXTURE_MAX_ANISOTROPY_EXT, returning a value of type float.\n" }), "Float32List": Typedef(Type { kind: Union([Type { kind: TypedArray(F32), optional: false }, Type { kind: Sequence(Type { kind: Named("GLfloat"), optional: false }), optional: false }]), optional: false }), "GLContext": Interface(Interface { inherits: None, mixins: {"WebGL2RenderingContextBase", "WebGLRenderingContextBase"}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "GLbitfield": Typedef(Type { kind: Primitive(U32), optional: false }), "GLboolean": Typedef(Type { kind: Primitive(Bool), optional: false }), "GLbyte": Typedef(Type { kind: Primitive(I8), optional: false }), "GLclampf": Typedef(Type { kind: Primitive(F32), optional: false }), "GLenum": Typedef(Type { kind: Primitive(U32), optional: false }), "GLfloat": Typedef(Type { kind: Primitive(F32), optional: false }), "GLint": Typedef(Type { kind: Primitive(I32), optional: false }), "GLint64": Typedef(Type { kind: Primitive(I64), optional: false }), "GLintptr": Typedef(Type { kind: Primitive(I64), optional: false }), "GLshort": Typedef(Type { kind: Primitive(I16), optional: false }), "GLsizei": Typedef(Type { kind: Primitive(I32), optional: false }), "GLsizeiptr": Typedef(Type { kind: Primitive(I64), optional: false }), "GLubyte": Typedef(Type { kind: Primitive(U8), optional: false }), "GLuint": Typedef(Type { kind: Primitive(U32), optional: false }), "GLuint64": Typedef(Type { kind: Primitive(U64), optional: false }), "GLuint64EXT": Typedef(Type { kind: Primitive(U64), optional: false }), "GLushort": Typedef(Type { kind: Primitive(U16), optional: false }), "Int32List": Typedef(Type { kind: Union([Type { kind: TypedArray(I32), optional: false }, Type { kind: Sequence(Type { kind: Named("GLint"), optional: false }), optional: false }]), optional: false }), "KHR_parallel_shader_compile": Interface(Interface { inherits: None, mixins: {}, members: {"COMPLETION_STATUS_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37297" })], "MAX_SHADER_COMPILER_THREADS_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37296" })], "maxShaderCompilerThreadsKHR": [Operation(Operation { args: [Argument { name: "count", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Shader compilation and program linking may be performed in a separate CPU thread. This extension provides a mechanism for the application to provide a hint to limit the number of threads it wants to be used to compile shaders, as well as a query to determine if the compilation process is complete.\n" }), "OES_element_index_uint": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// The drawElements entry point parameter type accepts the value UNSIGNED_INT\n" }), "OES_fbo_render_mipmap": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Any level of a texture can be attached to a framebuffer object.\n" }), "OES_standard_derivatives": Interface(Interface { inherits: None, mixins: {}, members: {"FRAGMENT_SHADER_DERIVATIVE_HINT_OES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35723" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// The hint entry point accepts FRAGMENT_SHADER_DERIVATIVE_HINT_OES as a target and the getParameter entry point accepts it as a pname.\n" }), "OES_texture_float": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Optional support for FLOAT textures as FBO attachments. The texImage2D and texSubImage2D entry points taking ArrayBufferView are extended to accept Float32Array with the pixel type FLOAT. The texImage2D and texSubImage2D entry points taking ImageData, HTMLImageElement, HTMLCanvasElement and HTMLVideoElement are extended to accept the pixel type FLOAT. Upon activation of this extension, implementations supporting [WEBGL_color_buffer_float](../WEBGL_color_buffer_float/) shall implicitly enable it. This requirement maintains the historical behavior prior to the differentiation of float renderability from float textures, so as to not break existing content.\n" }), "OES_texture_float_linear": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Expands upon the OES_texture_float extension by allowing support for LINEAR magnification filter and LINEAR, NEAREST_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST and LINEAR_MIPMAP_NEAREST minification filters.\n" }), "OES_texture_half_float": Interface(Interface { inherits: None, mixins: {}, members: {"HALF_FLOAT_OES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36193" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Optional support for HALF_FLOAT textures as FBO attachments. The texImage2D and texSubImage2D entry points taking ArrayBufferView are extended to accept Uint16Array with the pixel type HALF_FLOAT_OES. The texImage2D and texSubImage2D entry points taking ImageData, HTMLImageElement, HTMLCanvasElement and HTMLVideoElement are extended to accept the pixel type HALF_FLOAT_OES. Upon activation of this extension, implementations supporting [EXT_color_buffer_half_float](../EXT_color_buffer_half_float/) shall implicitly enable it. This requirement maintains the historical behavior prior to the differentiation of float renderability from float textures, so as to not break existing content.\n" }), "OES_texture_half_float_linear": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Expands upon the OES_texture_half_float extension by allowing support for LINEAR magnification filter and LINEAR, NEAREST_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST and LINEAR_MIPMAP_NEAREST minification filters.\n" }), "OES_vertex_array_object": Interface(Interface { inherits: None, mixins: {}, members: {"VERTEX_ARRAY_BINDING_OES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34229" })], "bindVertexArrayOES": [Operation(Operation { args: [Argument { name: "arrayObject", optional: false, type_: Type { kind: Named("WebGLVertexArrayObjectOES"), optional: true }, variadic: false }], return_type: None, doc_comment: "/// \n" })], "createVertexArrayOES": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLVertexArrayObjectOES"), optional: true }), doc_comment: "/// \n" })], "deleteVertexArrayOES": [Operation(Operation { args: [Argument { name: "arrayObject", optional: false, type_: Type { kind: Named("WebGLVertexArrayObjectOES"), optional: true }, variadic: false }], return_type: None, doc_comment: "/// \n" })], "isVertexArrayOES": [Operation(Operation { args: [Argument { name: "arrayObject", optional: false, type_: Type { kind: Named("WebGLVertexArrayObjectOES"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "/// Returns false if the vertex array object\'s [invalidated flag](../../specs/1.0/#webgl-object-invalidated-flag) is set.\n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// \n" }), "TexImageSource": Typedef(Type { kind: Any, optional: false }), "Uint32List": Typedef(Type { kind: Union([Type { kind: TypedArray(U32), optional: false }, Type { kind: Sequence(Type { kind: Named("GLuint"), optional: false }), optional: false }]), optional: false }), "WEBGL_color_buffer_float": Interface(Interface { inherits: None, mixins: {}, members: {"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33297" })], "RGBA32F_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34836" })], "UNSIGNED_NORMALIZED_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35863" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Adds support for rendering to 32-bit floating-point color buffers.\n/// \n/// The 32-bit floating-point type RGBA32F becomes available as a color-renderable format. Renderbuffers can be created in this format. These and textures created with format = RGBA and type = FLOAT as specified in [OES_texture_float](http://www.khronos.org/registry/webgl/extensions/OES_texture_float/), can be attached to framebuffer object color attachments for rendering.\n/// \n/// The 32-bit floating-point type RGB32F may also optionally \tbecome available as a color-renderable format. These and textures created \twith format = RGB and type = FLOAT as specified in \t[OES_texture_float](http://www.khronos.org/registry/webgl/extensions/OES_texture_float/), can be attached to framebuffer object color attachments for rendering. \tApplications must check framebuffer completeness to determine if an \timplementation actually supports this format.\n/// \n/// NOTE: fragment shaders outputs gl_FragColor and gl_FragData[0] will only be clamped and converted when the color buffer is fixed-point and blendColor() and clearColor() will no longer clamp their parameter values on input. Clamping will be applied as necessary at draw time according to the type of color buffer in use.\n/// \n/// The format and type combination RGBA and FLOAT becomes valid for reading from a floating-point rendering buffer. Note: RGBA and UNSIGNED_BYTE cannot be used for reading from a floating-point rendering buffer.\n/// \n/// The component types of framebuffer object attachments can be queried.\n" }), "WEBGL_compressed_texture_astc": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_RGBA_ASTC_10x10_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37819" })], "COMPRESSED_RGBA_ASTC_10x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37816" })], "COMPRESSED_RGBA_ASTC_10x6_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37817" })], "COMPRESSED_RGBA_ASTC_10x8_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37818" })], "COMPRESSED_RGBA_ASTC_12x10_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37820" })], "COMPRESSED_RGBA_ASTC_12x12_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37821" })], "COMPRESSED_RGBA_ASTC_4x4_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37808" })], "COMPRESSED_RGBA_ASTC_5x4_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37809" })], "COMPRESSED_RGBA_ASTC_5x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37810" })], "COMPRESSED_RGBA_ASTC_6x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37811" })], "COMPRESSED_RGBA_ASTC_6x6_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37812" })], "COMPRESSED_RGBA_ASTC_8x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37813" })], "COMPRESSED_RGBA_ASTC_8x6_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37814" })], "COMPRESSED_RGBA_ASTC_8x8_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37815" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37851" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37848" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37849" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37850" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37852" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37853" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37840" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37841" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37842" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37843" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37844" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37845" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37846" })], "COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37847" })], "getSupportedProfiles": [Operation(Operation { args: [], return_type: Some(Type { kind: Sequence(Type { kind: String, optional: false }), optional: false }), doc_comment: "/// Returns the names of the ASTC profiles supported by the implementation. As of this writing, valid return values will include \"ldr\", corresponding to the GL_KHR_texture_compression_astc_ldr extension string; and \"hdr\", corresponding to the GL_KHR_texture_compression_astc_hdr extension string. More profiles may be added in the future.\n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the compressed texture format defined in the [ KHR_texture_compression_astc_hdr](https://www.opengl.org/registry/specs/KHR/texture_compression_astc_hdr.txt) OpenGL ES extension to WebGL. Consult that extension specification for behavioral definitions, including error behaviors.\n/// \n/// ASTC textures may be encoded using either high or low dynamic range, corresponding to an \"HDR profile\" and \"LDR profile\". The compression format is designed to be extended, and for new profiles to be added in the future. For this reason, enabling the WebGL extension enables all of the profiles supported by the implementation. The supported profiles may be queried by calling getSupportedProfiles against the extension object. Compression format COMPRESSED_RGBA_ASTC_4x4_KHR, COMPRESSED_RGBA_ASTC_5x4_KHR, COMPRESSED_RGBA_ASTC_5x5_KHR, COMPRESSED_RGBA_ASTC_6x5_KHR, COMPRESSED_RGBA_ASTC_6x6_KHR, COMPRESSED_RGBA_ASTC_8x5_KHR, COMPRESSED_RGBA_ASTC_8x6_KHR, COMPRESSED_RGBA_ASTC_8x8_KHR, COMPRESSED_RGBA_ASTC_10x5_KHR, COMPRESSED_RGBA_ASTC_10x6_KHR, COMPRESSED_RGBA_ASTC_10x8_KHR, COMPRESSED_RGBA_ASTC_10x10_KHR, COMPRESSED_RGBA_ASTC_12x10_KHR, COMPRESSED_RGBA_ASTC_12x12_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR, and COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the format from this specification.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_4x4_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_5x4_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 4) / 5) * floor((height + 3) / 4) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_5x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 4) / 5) * floor((height + 4) / 5) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_6x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 5) / 6) * floor((height + 4) / 5) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_6x6_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 5) / 6) * floor((height + 5) / 6) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_8x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 7) / 8) * floor((height + 4) / 5) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_8x6_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 7) / 8) * floor((height + 5) / 6) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_8x8_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 7) / 8) * floor((height + 7) / 8) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 9) / 10) * floor((height + 4) / 5) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x6_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 9) / 10) * floor((height + 5) / 6) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x8_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 9) / 10) * floor((height + 7) / 8) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x10_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 9) / 10) * floor((height + 9) / 10) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_12x10_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 11) / 12) * floor((height + 9) / 10) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_12x12_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > floor((width + 11) / 12) * floor((height + 11) / 12) * 16\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n" }), "WEBGL_compressed_texture_etc": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_R11_EAC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37488" })], "COMPRESSED_RG11_EAC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37490" })], "COMPRESSED_RGB8_ETC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37492" })], "COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37494" })], "COMPRESSED_RGBA8_ETC2_EAC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37496" })], "COMPRESSED_SIGNED_R11_EAC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37489" })], "COMPRESSED_SIGNED_RG11_EAC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37491" })], "COMPRESSED_SRGB8_ALPHA8_ETC2_EAC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37497" })], "COMPRESSED_SRGB8_ETC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37493" })], "COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37495" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the compressed texture formats defined as core in the [ OpenGL ES 3.0](http://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.4.pdf) spec to WebGL. These include the ETC2 and EAC formats, where ETC2 is a superset of ETC1. ETC1 textures can be loaded using the ETC2 token value. All of these formats are in the ETC family.\n/// \n/// Browsers should not advertise this extension when the WebGL implementation, or graphics driver, supports these formats by decompressing them. Compression formats COMPRESSED_R11_EAC, COMPRESSED_SIGNED_R11_EAC, COMPRESSED_RG11_EAC, COMPRESSED_SIGNED_RG11_EAC, COMPRESSED_RGB8_ETC2, COMPRESSED_SRGB8_ETC2, COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, COMPRESSED_RGBA8_ETC2_EAC, and COMPRESSED_SRGB8_ALPHA8_ETC2_EAC may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. In WebGL 2.0, they may also be passed to the compressedTexImage3D and compressedTexSubImage3D entry points with the TEXTURE_2D_ARRAY target. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the formats from this specification. For all of the formats, validatedSize (defined for each specific format below) is validated in the following ways:\n/// \n/// * **WebGL 1.0 and 2.0**: if the variant of compressedTexImage*D or compressedTexSubImage*D taking ArrayBufferView pixels is called, then the byteLength of the view must be equal to validatedSize, or an INVALID_VALUE error is generated.\n/// * **WebGL 2.0**: if the variant of compressedTexImage*D or compressedTexSubImage*D taking GLintptr offset is called, and offset + validatedSize is greater than the size of the bound PIXEL_UNPACK_BUFFER, an INVALID_OPERATION error is generated.\n/// \n/// COMPRESSED_R11_EAC COMPRESSED_SIGNED_R11_EAC COMPRESSED_RGB8_ETC2 COMPRESSED_SRGB8_ETC2 COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\n/// \n/// validatedSize is computed in the following way:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8\n/// COMPRESSED_RG11_EAC COMPRESSED_SIGNED_RG11_EAC COMPRESSED_RGBA8_ETC2_EAC COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\n/// \n/// validatedSize is computed in the following way:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16\n" }), "WEBGL_compressed_texture_etc1": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_RGB_ETC1_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36196" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the compressed texture format defined in the [ OES_compressed_ETC1_RGB8_texture](http://www.khronos.org/registry/gles/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt) OpenGL ES extension to WebGL. Compression format COMPRESSED_RGB_ETC1_WEBGL may be passed to the compressedTexImage2D entry point. This format correspond to the format defined in the OES_compressed_ETC1_RGB8_texture OpenGL ES extension. Although the enum name is changed, the numeric value is the same. The correspondence is given by this table: WebGL format enum OpenGL format enum Numeric value COMPRESSED_RGB_ETC1_WEBGL ETC1_RGB8_OES 0x8D64 Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the format from this specification.\n/// \n/// The following format-specific restrictions must be enforced: COMPRESSED_RGB_ETC1_WEBGL\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D must be equal to the following number of bytes:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n" }), "WEBGL_compressed_texture_pvrtc": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35843" })], "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35842" })], "COMPRESSED_RGB_PVRTC_2BPPV1_IMG": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35841" })], "COMPRESSED_RGB_PVRTC_4BPPV1_IMG": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35840" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the compressed texture formats defined in the [ IMG_texture_compression_pvrtc](http://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_compression_pvrtc.txt) OpenGL extension to WebGL. Compression formats COMPRESSED_RGB_PVRTC_4BPPV1_IMG, COMPRESSED_RGB_PVRTC_2BPPV1_IMG, COMPRESSED_RGBA_PVRTC_4BPPV1_IMG, and COMPRESSED_RGBA_PVRTC_2BPPV1_IMG may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the 4 formats from this specification.\n/// \n/// The following format-specific restrictions apply to all of the formats described by this extension:\n/// \n/// In compressedTexImage2D, the width and height parameters must be powers of two. Otherwise, an INVALID_VALUE error is generated.\n/// \n/// In compressedTexSubImage2D, the width and height parameters must be equal to the current values of the existing texture image, and the xoffset and yoffset parameters must be zero. Otherwise, an INVALID_VALUE error is generated.\n/// \n/// The following format-specific restrictions must also be enforced: COMPRESSED_RGB_PVRTC_4BPPV1_IMG COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > max(width, 8) * max(height, 8) / 2\n/// \n/// If it is not, an INVALID_VALUE error is generated. COMPRESSED_RGB_PVRTC_2BPPV1_IMG COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:\n/// > max(width, 16) * max(height, 8) / 4\n/// \n/// If it is not, an INVALID_VALUE error is generated.\n" }), "WEBGL_compressed_texture_s3tc": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_RGBA_S3TC_DXT1_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33777" })], "COMPRESSED_RGBA_S3TC_DXT3_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33778" })], "COMPRESSED_RGBA_S3TC_DXT5_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33779" })], "COMPRESSED_RGB_S3TC_DXT1_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33776" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the compressed texture formats defined in the [ EXT_texture_compression_s3tc](http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt) OpenGL extension to WebGL. Compression formats COMPRESSED_RGB_S3TC_DXT1_EXT, COMPRESSED_RGBA_S3TC_DXT1_EXT, COMPRESSED_RGBA_S3TC_DXT3_EXT, and COMPRESSED_RGBA_S3TC_DXT5_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the 4 formats from this specification.\n/// \n/// The following format specific restrictions must be enforced: COMPRESSED_RGB_S3TC_DXT1_EXT COMPRESSED_RGBA_S3TC_DXT1_EXT\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8\n/// \n/// If it is not an INVALID_VALUE error is generated.\n/// \n/// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4.\n/// \n/// If they are not an INVALID_OPERATION error is generated.\n/// \n/// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated. COMPRESSED_RGBA_S3TC_DXT3_EXT COMPRESSED_RGBA_S3TC_DXT5_EXT\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16\n/// \n/// If it is not an INVALID_VALUE error is generated.\n/// \n/// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4.\n/// \n/// If they are not an INVALID_OPERATION error is generated.\n/// \n/// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated.\n" }), "WEBGL_compressed_texture_s3tc_srgb": Interface(Interface { inherits: None, mixins: {}, members: {"COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35917" })], "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35918" })], "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35919" })], "COMPRESSED_SRGB_S3TC_DXT1_EXT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35916" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the sRGB compressed texture formats defined in the [ EXT_texture_sRGB](https://www.opengl.org/registry/specs/EXT/texture_sRGB.txt) OpenGL extension to WebGL. Compression formats COMPRESSED_SRGB_S3TC_DXT1_EXT, COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, and COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the 4 formats from this specification.\n/// \n/// The following format specific restrictions must be enforced: COMPRESSED_SRGB_S3TC_DXT1_EXT COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8\n/// \n/// If it is not an INVALID_VALUE error is generated.\n/// \n/// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4.\n/// \n/// If they are not an INVALID_OPERATION error is generated.\n/// \n/// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated. COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\n/// \n/// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation:\n/// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16\n/// \n/// If it is not an INVALID_VALUE error is generated.\n/// \n/// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4.\n/// \n/// If they are not an INVALID_OPERATION error is generated.\n/// \n/// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated.\n" }), "WEBGL_debug_renderer_info": Interface(Interface { inherits: None, mixins: {}, members: {"UNMASKED_RENDERER_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37446" })], "UNMASKED_VENDOR_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37445" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// WebGL implementations might mask the RENDERER and VENDOR strings of the underlying graphics driver for privacy reasons. This extension exposes new tokens to query this information in a guaranteed manner for debugging purposes.\n" }), "WEBGL_debug_shaders": Interface(Interface { inherits: None, mixins: {}, members: {"getTranslatedShaderSource": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }], return_type: Some(Type { kind: String, optional: false }), doc_comment: "/// If no source has been defined, compileShader() has not been called, or the translation has failed for shader, an empty string is returned; otherwise, return the translated source.\n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// WebGL uses the GLSL ES 2.0 spec on all platforms, and translates these shaders to the host platform\'s native language (HLSL, GLSL, and even GLSL ES). For debugging purpose, it is useful to be able to examine the shader after translation. This extension exposes a new function getTranslatedShaderSource for such purposes.\n" }), "WEBGL_depth_texture": Interface(Interface { inherits: None, mixins: {}, members: {"UNSIGNED_INT_24_8_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34042" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes the [ANGLE_depth_texture](http://angleproject.googlecode.com/svn/trunk/extensions/ANGLE_depth_texture.txt) functionality to WebGL. ANGLE_depth_texture provides a subset of the functionality from the OpenGL ES 2.0 extensions [OES_depth_texture](http://www.khronos.org/registry/gles/extensions/OES/OES_depth_texture.txt) and [OES_packed_depth_stencil](http://www.khronos.org/registry/gles/extensions/OES/OES_packed_depth_stencil.txt), with certain restrictions added for portability reasons. Specifically:\n/// \n/// * ANGLE_depth_texture provides both depth and depth/stencil textures.\n/// * ANGLE_depth_texture does not provide the DEPTH24_STENCIL8_OES renderbuffer internal format from the OES_packed_depth_stencil extension. The core WebGL specification already supports allocation of depth/stencil renderbuffers.\n/// * ANGLE_depth_texture does not support loading image data via the TexImage or TexSubImage commands. Depth and depth/stencil textures created via this extension can only have their contents specified by rendering to them.\n/// \n/// Consult the Errors section below for specific restrictions. The texImage2D entry point is extended to accept the format parameter DEPTH_COMPONENT and DEPTH_STENCIL The texImage2D entry point is extended to accept the internalFormat parameter DEPTH_COMPONENT and DEPTH_STENCIL The texImage2D entry point is extended to accept the type parameter UNSIGNED_SHORT, UNSIGNED_INT, and UNSIGNED_INT_24_8_WEBGL The framebufferTexture2D entry point is extended to accept the target parameter DEPTH_ATTACHMENT and DEPTH_STENCIL_ATTACHMENT The texImage2D entry point is extended to accept ArrayBufferView of type Uint16Array and Uint32Array\n/// \n/// The WebGL-specific constraints about [Framebuffer Object Attachments](http://www.khronos.org/registry/webgl/specs/1.0/#FBO_ATTACHMENTS) are extended:\n/// \n/// * A texture attached to an FBO\'s DEPTH_ATTACHMENT attachment point must be allocated with the DEPTH_COMPONENT internal format.\n/// * A texture attached to the DEPTH_STENCIL_ATTACHMENT attachment point must be allocated with the DEPTH_STENCIL internal format.\n/// \n/// In the WebGL API, it is an error to concurrently attach either renderbuffers or textures to the following combinations of attachment points:\n/// \n/// * DEPTH_ATTACHMENT + DEPTH_STENCIL_ATTACHMENT\n/// * STENCIL_ATTACHMENT + DEPTH_STENCIL_ATTACHMENT\n/// * DEPTH_ATTACHMENT + STENCIL_ATTACHMENT\n/// \n/// See the section [Framebuffer Object Attachments](http://www.khronos.org/registry/webgl/specs/1.0/#FBO_ATTACHMENTS) in the WebGL specification for the behavior if these constraints are violated.\n/// \n/// As per the OpenGL ES spec, there is no guarantee that the OpenGL ES implementation will use the texture type to determine how to store the depth texture internally. It may choose to downsample the 32-bit depth values to 16-bit or even 24-bit. When a depth or depth/stencil texture is attached to a framebuffer object, calls to getParameter with the DEPTH_BITS and STENCIL_BITS enums return the following: Texture Type DEPTH_BITS (GLint) STENCIL_BITS (GLint) UNSIGNED_SHORT >= 16 0 UNSIGNED_INT >= 16 0 UNSIGNED_INT_24_8_WEBGL >= 24 >= 8\n" }), "WEBGL_draw_buffers": Interface(Interface { inherits: None, mixins: {}, members: {"COLOR_ATTACHMENT0_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36064" })], "COLOR_ATTACHMENT10_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36074" })], "COLOR_ATTACHMENT11_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36075" })], "COLOR_ATTACHMENT12_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36076" })], "COLOR_ATTACHMENT13_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36077" })], "COLOR_ATTACHMENT14_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36078" })], "COLOR_ATTACHMENT15_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36079" })], "COLOR_ATTACHMENT1_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36065" })], "COLOR_ATTACHMENT2_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36066" })], "COLOR_ATTACHMENT3_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36067" })], "COLOR_ATTACHMENT4_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36068" })], "COLOR_ATTACHMENT5_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36069" })], "COLOR_ATTACHMENT6_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36070" })], "COLOR_ATTACHMENT7_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36071" })], "COLOR_ATTACHMENT8_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36072" })], "COLOR_ATTACHMENT9_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36073" })], "DRAW_BUFFER0_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34853" })], "DRAW_BUFFER10_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34863" })], "DRAW_BUFFER11_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34864" })], "DRAW_BUFFER12_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34865" })], "DRAW_BUFFER13_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34866" })], "DRAW_BUFFER14_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34867" })], "DRAW_BUFFER15_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34868" })], "DRAW_BUFFER1_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34854" })], "DRAW_BUFFER2_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34855" })], "DRAW_BUFFER3_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34856" })], "DRAW_BUFFER4_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34857" })], "DRAW_BUFFER5_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34858" })], "DRAW_BUFFER6_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34859" })], "DRAW_BUFFER7_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34860" })], "DRAW_BUFFER8_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34861" })], "DRAW_BUFFER9_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34862" })], "MAX_COLOR_ATTACHMENTS_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36063" })], "MAX_DRAW_BUFFERS_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34852" })], "drawBuffersWEBGL": [Operation(Operation { args: [Argument { name: "buffers", optional: false, type_: Type { kind: Sequence(Type { kind: Named("GLenum"), optional: false }), optional: false }, variadic: false }], return_type: None, doc_comment: "" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// The implementation must support a minimum of 4 color attachments. The value of the MAX_COLOR_ATTACHMENTS_WEBGL parameter must be greater than or equal to that of the MAX_DRAW_BUFFERS_WEBGL parameter. If:\n/// \n/// * A framebuffer\'s color attachments are all textures allocated with format RGBA and type UNSIGNED_BYTE, and\n/// * The framebuffer has either:\n/// \n/// * No depth or stencil attachment\n/// * A valid DEPTH or DEPTH_STENCIL attachment\n/// \n/// Then a call to checkFramebufferStatus against this framebuffer must not return FRAMEBUFFER_UNSUPPORTED. (In other words, the implementation must support the use of RGBA/UNSIGNED_BYTE textures as color attachments, plus either a DEPTH or DEPTH_STENCIL attachment.) Attaching n consecutive color attachments starting at COLOR_ATTACHMENT0_WEBGL, where n is between 1 and MAX_DRAW_BUFFERS_WEBGL, must not return FRAMEBUFFER_UNSUPPORTED from a call to checkFramebufferStatus. In other words, if MAX_DRAW_BUFFERS_WEBGL is 4, then the implementation is required to support the following combinations of color attachments:\n/// \n/// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE\n/// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE\n/// COLOR_ATTACHMENT1_WEBGL = RGBA/UNSIGNED_BYTE\n/// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE\n/// COLOR_ATTACHMENT1_WEBGL = RGBA/UNSIGNED_BYTE\n/// COLOR_ATTACHMENT2_WEBGL = RGBA/UNSIGNED_BYTE\n/// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE\n/// COLOR_ATTACHMENT1_WEBGL = RGBA/UNSIGNED_BYTE\n/// COLOR_ATTACHMENT2_WEBGL = RGBA/UNSIGNED_BYTE\n/// COLOR_ATTACHMENT3_WEBGL = RGBA/UNSIGNED_BYTE\n/// \n/// Although the extension name is prefixed with WEBGL the extension must be enabled with the #extension GL_EXT_draw_buffers directive, as shown in the sample code, to use the extension in a shader. Likewise the shading language preprocessor #define GL_EXT_draw_buffers, will be defined to 1 if the extension is supported. The value of gl_MaxDrawBuffers must match MAX_DRAW_BUFFERS_WEBGL from the API if the extension is enabled in a WebGL context; otherwise, the value must be 1. Whether or not the extension is enabled with the #extension GL_EXT_draw_buffers directive in a shader does not affect the value of gl_MaxDrawBuffers. The value of gl_MaxDrawBuffers is a constant in the shader, and is guaranteed to be frozen at program link time. It is implementation-dependent whether it is frozen at shader compile time. (A consequence is that if a program is linked, and later the WEBGL_draw_buffers extension is enabled, the value of gl_MaxDrawBuffers seen by that program will still be 1.) If the WEBGL_draw_buffers extension is enabled, but the fragment shader does not contain the #extension GL_EXT_draw_buffers directive to enable it, then writes to gl_FragColor are only written to COLOR_ATTACHMENT0_WEBGL, and not broadcast to all color attachments. In this scenario, other color attachments are guaranteed to remain untouched. If a fragment shader writes to neither gl_FragColor nor gl_FragData, the values of the fragment colors following shader execution are untouched. If a fragment shader contains the #extension GL_EXT_draw_buffers directive, all gl_FragData variables (from gl_FragData[0] to gl_FragData[MAX_DRAW_BUFFERS_WEBGL - 1]) default to zero if no values are written to them during a shader execution. If an image is attached to more than one color attachment point in a framebuffer, checkFramebufferStatus returns FRAMEBUFFER_UNSUPPORTED. An image can be an individual mip level, or a face of cube map. Adds support for multiple color buffers and color outputs from fragment shaders.\n" }), "WEBGL_lose_context": Interface(Interface { inherits: None, mixins: {}, members: {"loseContext": [Operation(Operation { args: [], return_type: None, doc_comment: "/// When this function is called and the context is not lost, simulate losing the context so as to trigger the steps described in the WebGL spec for handling context lost. The context will remain in the lost state according to the WebGL specification until restoreContext() is called. If the context is already lost when this function is called, generate an INVALID_OPERATION error.\n/// \n/// Implementations should destroy the underlying graphics context and all graphics resources when this method is called. This is the recommended mechanism for applications to programmatically halt their use of the WebGL API.\n" })], "restoreContext": [Operation(Operation { args: [], return_type: None, doc_comment: "/// When this function is called while the context is lost, and the conditions defined by the WebGL specification for restoring the context are met, simulate the context being restored so as to trigger the steps described in the WebGL spec for handling the context being restored. If the context is already restored when this function is called, or if the conditions in the WebGL specification for restoring the context are not satisfied, or if the context was not lost via loseContext(), generate an INVALID_OPERATION error.\n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// This extension exposes new functions which simulate losing and restoring the WebGL context, even on platforms where the context can never be lost. Consult the WebGL specification for documentation about the webglcontextlost and webglcontextrestored events.\n/// \n/// When this extension is enabled:\n/// \n/// * loseContext and restoreContext are allowed to generate INVALID_OPERATION errors even when the context is lost.\n/// \n/// Note that this extension is **not** disconnected from the WebGLRenderingContext if that object loses its context as described in \"The Context Lost Event\" of the WebGL specification, either through use of this API or via actual circumstances such as a system failure.\n" }), "WEBGL_multiview": Interface(Interface { inherits: None, mixins: {}, members: {"FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "38450" })], "FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "38448" })], "FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "38451" })], "MAX_VIEWS_OVR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "38449" })], "framebufferTextureMultiviewWEBGL": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "attachment", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "texture", optional: false, type_: Type { kind: Named("WebGLTexture"), optional: true }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "baseViewIndex", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "numViews", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "/// \n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// Calling framebufferTextureMultiviewWEBGL with a non-null texture parameter that does not identify a 2D array texture generates an INVALID_OPERATION error. The values of baseViewIndex and numViews can result in an error only if the texture parameter is non-null. If baseViewIndex is not the same for all framebuffer attachment points where the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is not NONE the framebuffer is considered incomplete. Calling getFramebufferStatus for a framebuffer in this state returns FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR. Other rules for framebuffer completeness from the OVR_multiview specification also apply. Other web APIs may expose *opaque multiview framebuffers*. Opaque multiview framebuffers are WebGLFramebuffer objects that act as if they have multi-view attachments, but their attachments are not exposed as textures or renderbuffers and can not be changed. Opaque multiview framebuffers may have any combination of color, depth and stencil attachments. Calling framebufferRenderbuffer, framebufferTexture2D, framebufferTextureLayer, framebufferTextureMultiviewWEBGL, or any other call that could change framebuffer attachments with an opaque multiview framebuffer bound to target generates an INVALID_OPERATION error. If an opaque framebuffer is bound to target when calling getFramebufferAttachmentParameter, then attachment must be BACK, DEPTH, or STENCIL. If an opaque framebuffer is bound to target when calling getFramebufferAttachmentParameter, then pname must not be FRAMEBUFFER_ATTACHMENT_OBJECT_NAME. Querying FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR on an opaque multiview framebuffer attachment point that has attachments must return the number of views in the opaque multiview framebuffer. Querying FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR on an opaque multiview framebuffer must return 0. Querying FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE on an opaque multiview framebuffer must return FRAMEBUFFER_DEFAULT. The number of views in an opaque multiview framebuffer may be greater than the maximum number of texture array views (the value of MAX_VIEWS_OVR). Passing an opaque multiview framebuffer to deleteFramebuffer generates an INVALID_OPERATION error. Although the extension name is prefixed with WEBGL the extension must be enabled with the #extension GL_OVR_multiview directive, as shown in the sample code, to use the extension in a shader. Likewise the shading language preprocessor #define GL_OVR_multiview, will be defined to 1 if the extension is supported. This extension relaxes the restriction in OVR_multiview that only gl_Position can depend on ViewID in the vertex shader. With this change, view-dependent outputs like reflection vectors and similar are allowed. When the number of views specified in the active program is one, gl_ViewID_OVR will always evaluate to zero. When a shader written in OpenGL ES shading language version 1.00 enables or requires GL_OVR_multiview with an extension directive, layout is treated as a keyword rather than an identifier, and using a layout qualifier to specify num_views is allowed. Other uses of layout qualifiers are not allowed in OpenGL ES shading language 1.00. In OpenGL ES shading language version 1.00 gl_ViewID_OVR has the type int as opposed to uint. When a timer query is active and the number of views in the current draw framebuffer is greater than one, attempting to draw or calling clear generates an INVALID_OPERATION error. When the number of views in the current draw framebuffer is greater than one and the active program does not declare a number of views, attempting to draw generates an INVALID_OPERATION error. Adds support for rendering into multiple views simultaneously. This is supported for opaque multiview framebuffers starting from WebGL 1.0, and 2D texture arrays starting from WebGL 2.0. When a shader enables, requires, or warns GL_OVR_multiview with an extension directive:\n/// \n/// * gl_ViewID_OVR is a built-in input of the type uint.\n/// \n/// The GLSL macro GL_OVR_multiview is defined as 1.\n" }), "WEBGL_security_sensitive_resources": Interface(Interface { inherits: None, mixins: {}, members: {"createSecuritySensitiveFramebuffer": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLFramebuffer"), optional: true }), doc_comment: "/// Behaves like createFramebuffer, except framebuffers created with this function are referred to as security sensitive framebuffers. Framebuffers created with createFramebuffer are referred to as regular framebuffers.\n" })], "createSecuritySensitiveTexture": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLTexture"), optional: true }), doc_comment: "/// Behaves like createTexture, except textures created with this function are known as security sensitive textures. Textures created with createTexture are known as regular textures.\n" })]}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "/// Extension\n/// \n/// In the [WebGL API 1.0](../../../specs/1.0/) specification, section [4.2 Origin Restrictions](../../../specs/1.0/#4.2) restricts the following sources for texture upload:\n/// \n/// * An image or video element whose origin is not the same as the origin of the Document that contains the WebGLRenderingContext\'s canvas element.\n/// * A canvas element whose *origin-clean* flag is set to false.\n/// \n/// This extension allows these sources for texture uploads, with some restrictions regarding their uploading and use.\n/// \n/// Motivation:\n/// \n/// This extension enables the processing of cross-origin resources in WebGL. Additionally, it defines a foundation of concepts that can be used in future extensions to process other types of security sensitive content, including arbitrary HTML content.\n/// \n/// For an example of security sensitive content, consider the rendering of an HTML link. The color of the link can indicate its visited or unvisited state. Third parties must not be able to access or infer this information.\n/// \n/// Specifically, third parties must not be able read the pixel data of security sensitive content through WebGL or other APIs. Additionally, third parties must not be able to divulge or approximate the pixel data of security sensitive content by timing WebGL operations.\n/// \n/// Prior to this extension, WebGL restricted the upload of security sensitive content as a texture for graphical processing. This extension enables the uploading and processing of security sensitive content, with some restrictions. Note that this extension imposes no restrictions on the processing of regular, non-security sensitive content.\n/// \n/// To secure a user’s privacy, a WebGL implementation must not leak information about the contents of security sensitive textures through the execution time of its commands. To achieve this, no part of the underlying graphics pipeline may vary in execution time based on the contents of a security sensitive texture. For example, primitive assembly and depth testing must not vary based on the contents of a security sensitive texture.\n/// \n/// The vertex shading and fragment shading stages of the graphics pipeline require particular restrictions to keep their execution time independent of the contents of security sensitive textures. Specifically, the contents of a security sensitive texture must only appear in constant-time GLSL operations. A constant-time GLSL operation is an operation whose execution time does not vary based on the values of its operands. This extension will describe how a WebGL implementation can enforce this requirement.\n/// \n/// Additionally, this extension attempts to identify non-constant-time GLSL operations. All other GLSL operations are assumed to be constant time in both the WebGL implementation and the underlying GPU implementation. If this assumption is false on a particular implementation, then this extension must be disabled for that implementation. In the future, GPU vendors may be able to provide a mechanism to guarantee that the assumed GLSL operations are in fact constant-time. Definitions\n/// \n/// This extension relies on the definition of several constructs in GLSL. These constructs are determined statically, after preprocessing. Regular Sampler Variables and Secure Sampler Variables\n/// \n/// S is a regular sampler if an expression dependent on S appears in one or more of the following constructs:\n/// \n/// * if statement condition\n/// * selection operator (?) condition\n/// * loop condition\n/// * logical and operator (&&)\n/// * logical or operator (||)\n/// * coord, bias, or lod argument in a texture lookup function call\n/// * assignment to gl_Position\n/// * assignment to gl_FragDepth\n/// \n/// Otherwise, S is a secure sampler. Sampler-Dependent Expressions\n/// \n/// An expression is dependent on the sampler S if:\n/// \n/// * It contains a texture lookup function call with S as the sampler argument.\n/// * It contains an expression that is dependent on the sampler S.\n/// * It contains a variable that is dependent on the sampler S.\n/// \n/// Sampler-Dependent Variables\n/// \n/// A variable is dependent on the sampler S if:\n/// \n/// * It is assigned to an expression dependent on the sampler S. (e.g. If a = b and b is dependent on sampler S, then a is dependent on sampler S.)\n/// * It is addressed using a sampler-dependent expression in an assignment. (e.g. If a[b] = c and b is dependent on the sampler S, then a is dependent on sampler S.)\n/// * It is a fragment shader varying and the corresponding vertex shader varying is dependent on the sampler S.\n/// \n/// A WebGL implementation can create a dependency graph in its GLSL compiler to implement these GLSL constructs. One closely related implementation is described in a [wiki page](http://code.google.com/p/mvujovic/wiki/ShaderControlFlowAnalysis). Features The WebGLRenderingContext\'s canvas\'s *origin-clean* flag is set to false if the context is created with a WebGLContextAttributes dictionary with securitySensitiveDrawingBuffer set to true.\n" }), "WebGL2RenderingContext": Interface(Interface { inherits: None, mixins: {"WebGL2RenderingContextBase", "WebGLRenderingContextBase"}, members: {}, is_hidden: false, has_class: true, rendering_context: Some("webgl2"), doc_comment: "" }), "WebGL2RenderingContextBase": Mixin(Mixin { members: {"ACTIVE_UNIFORM_BLOCKS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35382" })], "ALREADY_SIGNALED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37146" })], "ANY_SAMPLES_PASSED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35887" })], "ANY_SAMPLES_PASSED_CONSERVATIVE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36202" })], "COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6144" })], "COLOR_ATTACHMENT1": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36065" })], "COLOR_ATTACHMENT10": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36074" })], "COLOR_ATTACHMENT11": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36075" })], "COLOR_ATTACHMENT12": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36076" })], "COLOR_ATTACHMENT13": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36077" })], "COLOR_ATTACHMENT14": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36078" })], "COLOR_ATTACHMENT15": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36079" })], "COLOR_ATTACHMENT2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36066" })], "COLOR_ATTACHMENT3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36067" })], "COLOR_ATTACHMENT4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36068" })], "COLOR_ATTACHMENT5": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36069" })], "COLOR_ATTACHMENT6": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36070" })], "COLOR_ATTACHMENT7": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36071" })], "COLOR_ATTACHMENT8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36072" })], "COLOR_ATTACHMENT9": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36073" })], "COMPARE_REF_TO_TEXTURE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34894" })], "CONDITION_SATISFIED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37148" })], "COPY_READ_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36662" })], "COPY_READ_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36662" })], "COPY_WRITE_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36663" })], "COPY_WRITE_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36663" })], "CURRENT_QUERY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34917" })], "DEPTH": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6145" })], "DEPTH24_STENCIL8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35056" })], "DEPTH32F_STENCIL8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36013" })], "DEPTH_COMPONENT24": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33190" })], "DEPTH_COMPONENT32F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36012" })], "DEPTH_STENCIL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34041" })], "DEPTH_STENCIL_ATTACHMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33306" })], "DRAW_BUFFER0": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34853" })], "DRAW_BUFFER1": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34854" })], "DRAW_BUFFER10": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34863" })], "DRAW_BUFFER11": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34864" })], "DRAW_BUFFER12": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34865" })], "DRAW_BUFFER13": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34866" })], "DRAW_BUFFER14": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34867" })], "DRAW_BUFFER15": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34868" })], "DRAW_BUFFER2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34855" })], "DRAW_BUFFER3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34856" })], "DRAW_BUFFER4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34857" })], "DRAW_BUFFER5": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34858" })], "DRAW_BUFFER6": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34859" })], "DRAW_BUFFER7": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34860" })], "DRAW_BUFFER8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34861" })], "DRAW_BUFFER9": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34862" })], "DRAW_FRAMEBUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36009" })], "DRAW_FRAMEBUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36006" })], "DYNAMIC_COPY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35050" })], "DYNAMIC_READ": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35049" })], "FLOAT_32_UNSIGNED_INT_24_8_REV": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36269" })], "FLOAT_MAT2x3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35685" })], "FLOAT_MAT2x4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35686" })], "FLOAT_MAT3x2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35687" })], "FLOAT_MAT3x4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35688" })], "FLOAT_MAT4x2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35689" })], "FLOAT_MAT4x3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35690" })], "FRAGMENT_SHADER_DERIVATIVE_HINT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35723" })], "FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33301" })], "FRAMEBUFFER_ATTACHMENT_BLUE_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33300" })], "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33296" })], "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33297" })], "FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33302" })], "FRAMEBUFFER_ATTACHMENT_GREEN_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33299" })], "FRAMEBUFFER_ATTACHMENT_RED_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33298" })], "FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33303" })], "FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36052" })], "FRAMEBUFFER_DEFAULT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33304" })], "FRAMEBUFFER_INCOMPLETE_MULTISAMPLE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36182" })], "HALF_FLOAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5131" })], "INTERLEAVED_ATTRIBS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35980" })], "INT_2_10_10_10_REV": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36255" })], "INT_SAMPLER_2D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36298" })], "INT_SAMPLER_2D_ARRAY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36303" })], "INT_SAMPLER_3D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36299" })], "INT_SAMPLER_CUBE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36300" })], "INVALID_INDEX": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "4294967295" })], "MAX": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32776" })], "MAX_3D_TEXTURE_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32883" })], "MAX_ARRAY_TEXTURE_LAYERS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35071" })], "MAX_CLIENT_WAIT_TIMEOUT_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37447" })], "MAX_COLOR_ATTACHMENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36063" })], "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35379" })], "MAX_COMBINED_UNIFORM_BLOCKS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35374" })], "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35377" })], "MAX_DRAW_BUFFERS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34852" })], "MAX_ELEMENTS_INDICES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33001" })], "MAX_ELEMENTS_VERTICES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33000" })], "MAX_ELEMENT_INDEX": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36203" })], "MAX_FRAGMENT_INPUT_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37157" })], "MAX_FRAGMENT_UNIFORM_BLOCKS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35373" })], "MAX_FRAGMENT_UNIFORM_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35657" })], "MAX_PROGRAM_TEXEL_OFFSET": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35077" })], "MAX_SAMPLES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36183" })], "MAX_SERVER_WAIT_TIMEOUT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37137" })], "MAX_TEXTURE_LOD_BIAS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34045" })], "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35978" })], "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35979" })], "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35968" })], "MAX_UNIFORM_BLOCK_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35376" })], "MAX_UNIFORM_BUFFER_BINDINGS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35375" })], "MAX_VARYING_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35659" })], "MAX_VERTEX_OUTPUT_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37154" })], "MAX_VERTEX_UNIFORM_BLOCKS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35371" })], "MAX_VERTEX_UNIFORM_COMPONENTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35658" })], "MIN": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32775" })], "MIN_PROGRAM_TEXEL_OFFSET": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35076" })], "OBJECT_TYPE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37138" })], "PACK_ROW_LENGTH": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3330" })], "PACK_SKIP_PIXELS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3332" })], "PACK_SKIP_ROWS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3331" })], "PIXEL_PACK_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35051" })], "PIXEL_PACK_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35053" })], "PIXEL_UNPACK_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35052" })], "PIXEL_UNPACK_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35055" })], "QUERY_RESULT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34918" })], "QUERY_RESULT_AVAILABLE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34919" })], "R11F_G11F_B10F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35898" })], "R16F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33325" })], "R16I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33331" })], "R16UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33332" })], "R32F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33326" })], "R32I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33333" })], "R32UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33334" })], "R8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33321" })], "R8I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33329" })], "R8UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33330" })], "R8_SNORM": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36756" })], "RASTERIZER_DISCARD": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35977" })], "READ_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3074" })], "READ_FRAMEBUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36008" })], "READ_FRAMEBUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36010" })], "RED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6403" })], "RED_INTEGER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36244" })], "RENDERBUFFER_SAMPLES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36011" })], "RG": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33319" })], "RG16F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33327" })], "RG16I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33337" })], "RG16UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33338" })], "RG32F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33328" })], "RG32I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33339" })], "RG32UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33340" })], "RG8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33323" })], "RG8I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33335" })], "RG8UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33336" })], "RG8_SNORM": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36757" })], "RGB10_A2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32857" })], "RGB10_A2UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36975" })], "RGB16F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34843" })], "RGB16I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36233" })], "RGB16UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36215" })], "RGB32F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34837" })], "RGB32I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36227" })], "RGB32UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36209" })], "RGB8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32849" })], "RGB8I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36239" })], "RGB8UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36221" })], "RGB8_SNORM": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36758" })], "RGB9_E5": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35901" })], "RGBA16F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34842" })], "RGBA16I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36232" })], "RGBA16UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36214" })], "RGBA32F": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34836" })], "RGBA32I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36226" })], "RGBA32UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36208" })], "RGBA8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32856" })], "RGBA8I": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36238" })], "RGBA8UI": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36220" })], "RGBA8_SNORM": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36759" })], "RGBA_INTEGER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36249" })], "RGB_INTEGER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36248" })], "RG_INTEGER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33320" })], "SAMPLER_2D_ARRAY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36289" })], "SAMPLER_2D_ARRAY_SHADOW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36292" })], "SAMPLER_2D_SHADOW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35682" })], "SAMPLER_3D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35679" })], "SAMPLER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35097" })], "SAMPLER_CUBE_SHADOW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36293" })], "SEPARATE_ATTRIBS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35981" })], "SIGNALED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37145" })], "SIGNED_NORMALIZED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36764" })], "SRGB": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35904" })], "SRGB8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35905" })], "SRGB8_ALPHA8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35907" })], "STATIC_COPY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35046" })], "STATIC_READ": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35045" })], "STENCIL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6146" })], "STREAM_COPY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35042" })], "STREAM_READ": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35041" })], "SYNC_CONDITION": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37139" })], "SYNC_FENCE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37142" })], "SYNC_FLAGS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37141" })], "SYNC_FLUSH_COMMANDS_BIT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1" })], "SYNC_GPU_COMMANDS_COMPLETE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37143" })], "SYNC_STATUS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37140" })], "TEXTURE_2D_ARRAY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35866" })], "TEXTURE_3D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32879" })], "TEXTURE_BASE_LEVEL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33084" })], "TEXTURE_BINDING_2D_ARRAY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35869" })], "TEXTURE_BINDING_3D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32874" })], "TEXTURE_COMPARE_FUNC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34893" })], "TEXTURE_COMPARE_MODE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34892" })], "TEXTURE_IMMUTABLE_FORMAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37167" })], "TEXTURE_IMMUTABLE_LEVELS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33503" })], "TEXTURE_MAX_LEVEL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33085" })], "TEXTURE_MAX_LOD": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33083" })], "TEXTURE_MIN_LOD": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33082" })], "TEXTURE_WRAP_R": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32882" })], "TIMEOUT_EXPIRED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37147" })], "TIMEOUT_IGNORED": [Const(Const { type_: Type { kind: Named("GLint64"), optional: false }, value: "-1" })], "TRANSFORM_FEEDBACK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36386" })], "TRANSFORM_FEEDBACK_ACTIVE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36388" })], "TRANSFORM_FEEDBACK_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36389" })], "TRANSFORM_FEEDBACK_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35982" })], "TRANSFORM_FEEDBACK_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35983" })], "TRANSFORM_FEEDBACK_BUFFER_MODE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35967" })], "TRANSFORM_FEEDBACK_BUFFER_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35973" })], "TRANSFORM_FEEDBACK_BUFFER_START": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35972" })], "TRANSFORM_FEEDBACK_PAUSED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36387" })], "TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35976" })], "TRANSFORM_FEEDBACK_VARYINGS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35971" })], "UNIFORM_ARRAY_STRIDE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35388" })], "UNIFORM_BLOCK_ACTIVE_UNIFORMS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35394" })], "UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35395" })], "UNIFORM_BLOCK_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35391" })], "UNIFORM_BLOCK_DATA_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35392" })], "UNIFORM_BLOCK_INDEX": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35386" })], "UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35398" })], "UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35396" })], "UNIFORM_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35345" })], "UNIFORM_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35368" })], "UNIFORM_BUFFER_OFFSET_ALIGNMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35380" })], "UNIFORM_BUFFER_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35370" })], "UNIFORM_BUFFER_START": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35369" })], "UNIFORM_IS_ROW_MAJOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35390" })], "UNIFORM_MATRIX_STRIDE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35389" })], "UNIFORM_OFFSET": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35387" })], "UNIFORM_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35384" })], "UNIFORM_TYPE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35383" })], "UNPACK_IMAGE_HEIGHT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32878" })], "UNPACK_ROW_LENGTH": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3314" })], "UNPACK_SKIP_IMAGES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32877" })], "UNPACK_SKIP_PIXELS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3316" })], "UNPACK_SKIP_ROWS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3315" })], "UNSIGNALED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37144" })], "UNSIGNED_INT_10F_11F_11F_REV": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35899" })], "UNSIGNED_INT_24_8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34042" })], "UNSIGNED_INT_2_10_10_10_REV": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33640" })], "UNSIGNED_INT_5_9_9_9_REV": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35902" })], "UNSIGNED_INT_SAMPLER_2D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36306" })], "UNSIGNED_INT_SAMPLER_2D_ARRAY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36311" })], "UNSIGNED_INT_SAMPLER_3D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36307" })], "UNSIGNED_INT_SAMPLER_CUBE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36308" })], "UNSIGNED_INT_VEC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36294" })], "UNSIGNED_INT_VEC3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36295" })], "UNSIGNED_INT_VEC4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36296" })], "UNSIGNED_NORMALIZED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35863" })], "VERTEX_ARRAY_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34229" })], "VERTEX_ATTRIB_ARRAY_DIVISOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35070" })], "VERTEX_ATTRIB_ARRAY_INTEGER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35069" })], "WAIT_FAILED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37149" })], "beginQuery": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLQuery"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "beginTransformFeedback": [Operation(Operation { args: [Argument { name: "primitiveMode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bindBufferBase": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "buffer", optional: false, type_: Type { kind: Named("WebGLBuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "bindBufferRange": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "buffer", optional: false, type_: Type { kind: Named("WebGLBuffer"), optional: true }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "size", optional: false, type_: Type { kind: Named("GLsizeiptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bindSampler": [Operation(Operation { args: [Argument { name: "unit", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "sampler", optional: false, type_: Type { kind: Named("WebGLSampler"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "bindTransformFeedback": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "tf", optional: false, type_: Type { kind: Named("WebGLTransformFeedback"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "bindVertexArray": [Operation(Operation { args: [Argument { name: "array", optional: false, type_: Type { kind: Named("WebGLVertexArrayObject"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "blitFramebuffer": [Operation(Operation { args: [Argument { name: "srcX0", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "srcY0", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "srcX1", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "srcY1", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "dstX0", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "dstY0", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "dstX1", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "dstY1", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "mask", optional: false, type_: Type { kind: Named("GLbitfield"), optional: false }, variadic: false }, Argument { name: "filter", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bufferData": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "size", optional: false, type_: Type { kind: Named("GLsizeiptr"), optional: false }, variadic: false }, Argument { name: "usage", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: BufferSource, optional: true }, variadic: false }, Argument { name: "usage", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "usage", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "length", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bufferSubData": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "dstByteOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: BufferSource, optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "dstByteOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "length", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clearBufferfi": [Operation(Operation { args: [Argument { name: "buffer", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "drawbuffer", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "stencil", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clearBufferfv": [Operation(Operation { args: [Argument { name: "buffer", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "drawbuffer", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clearBufferiv": [Operation(Operation { args: [Argument { name: "buffer", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "drawbuffer", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clearBufferuiv": [Operation(Operation { args: [Argument { name: "buffer", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "drawbuffer", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Uint32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clientWaitSync": [Operation(Operation { args: [Argument { name: "sync", optional: false, type_: Type { kind: Named("WebGLSync"), optional: false }, variadic: false }, Argument { name: "flags", optional: false, type_: Type { kind: Named("GLbitfield"), optional: false }, variadic: false }, Argument { name: "timeout", optional: false, type_: Type { kind: Named("GLuint64"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("GLenum"), optional: false }), doc_comment: "" })], "compressedTexImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "imageSize", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLengthOverride", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "compressedTexImage3D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "imageSize", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLengthOverride", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "compressedTexSubImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "imageSize", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLengthOverride", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "compressedTexSubImage3D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "zoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "imageSize", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "zoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLengthOverride", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "copyBufferSubData": [Operation(Operation { args: [Argument { name: "readTarget", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "writeTarget", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "readOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "writeOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "size", optional: false, type_: Type { kind: Named("GLsizeiptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "copyTexSubImage3D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "zoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "createQuery": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLQuery"), optional: true }), doc_comment: "" })], "createSampler": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLSampler"), optional: true }), doc_comment: "" })], "createTransformFeedback": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLTransformFeedback"), optional: true }), doc_comment: "" })], "createVertexArray": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLVertexArrayObject"), optional: true }), doc_comment: "" })], "deleteQuery": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLQuery"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteSampler": [Operation(Operation { args: [Argument { name: "sampler", optional: false, type_: Type { kind: Named("WebGLSampler"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteSync": [Operation(Operation { args: [Argument { name: "sync", optional: false, type_: Type { kind: Named("WebGLSync"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteTransformFeedback": [Operation(Operation { args: [Argument { name: "tf", optional: false, type_: Type { kind: Named("WebGLTransformFeedback"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteVertexArray": [Operation(Operation { args: [Argument { name: "vertexArray", optional: false, type_: Type { kind: Named("WebGLVertexArrayObject"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "drawArraysInstanced": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "first", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "count", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "instanceCount", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "drawBuffers": [Operation(Operation { args: [Argument { name: "buffers", optional: false, type_: Type { kind: Sequence(Type { kind: Named("GLenum"), optional: false }), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "drawElementsInstanced": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "count", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "instanceCount", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "drawRangeElements": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "start", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "end", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "count", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "endQuery": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "endTransformFeedback": [Operation(Operation { args: [], return_type: None, doc_comment: "" })], "fenceSync": [Operation(Operation { args: [Argument { name: "condition", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "flags", optional: false, type_: Type { kind: Named("GLbitfield"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLSync"), optional: true }), doc_comment: "" })], "framebufferTextureLayer": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "attachment", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "texture", optional: false, type_: Type { kind: Named("WebGLTexture"), optional: true }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "layer", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "getActiveUniformBlockName": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "uniformBlockIndex", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: Some(Type { kind: String, optional: true }), doc_comment: "" })], "getActiveUniformBlockParameter": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "uniformBlockIndex", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getActiveUniforms": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "uniformIndices", optional: false, type_: Type { kind: Sequence(Type { kind: Named("GLuint"), optional: false }), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getBufferSubData": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcByteOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "dstBuffer", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "dstOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "length", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "getFragDataLocation": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "name", optional: false, type_: Type { kind: String, optional: false }, variadic: false }], return_type: Some(Type { kind: Named("GLint"), optional: false }), doc_comment: "" })], "getIndexedParameter": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getInternalformatParameter": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getQuery": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLQuery"), optional: true }), doc_comment: "" })], "getQueryParameter": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLQuery"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getSamplerParameter": [Operation(Operation { args: [Argument { name: "sampler", optional: false, type_: Type { kind: Named("WebGLSampler"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getSyncParameter": [Operation(Operation { args: [Argument { name: "sync", optional: false, type_: Type { kind: Named("WebGLSync"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getTransformFeedbackVarying": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLActiveInfo"), optional: true }), doc_comment: "" })], "getUniformBlockIndex": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "uniformBlockName", optional: false, type_: Type { kind: String, optional: false }, variadic: false }], return_type: Some(Type { kind: Named("GLuint"), optional: false }), doc_comment: "" })], "getUniformIndices": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "uniformNames", optional: false, type_: Type { kind: Sequence(Type { kind: String, optional: false }), optional: false }, variadic: false }], return_type: Some(Type { kind: Sequence(Type { kind: Named("GLuint"), optional: false }), optional: true }), doc_comment: "" })], "invalidateFramebuffer": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "attachments", optional: false, type_: Type { kind: Sequence(Type { kind: Named("GLenum"), optional: false }), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "invalidateSubFramebuffer": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "attachments", optional: false, type_: Type { kind: Sequence(Type { kind: Named("GLenum"), optional: false }), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "isQuery": [Operation(Operation { args: [Argument { name: "query", optional: false, type_: Type { kind: Named("WebGLQuery"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isSampler": [Operation(Operation { args: [Argument { name: "sampler", optional: false, type_: Type { kind: Named("WebGLSampler"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isSync": [Operation(Operation { args: [Argument { name: "sync", optional: false, type_: Type { kind: Named("WebGLSync"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isTransformFeedback": [Operation(Operation { args: [Argument { name: "tf", optional: false, type_: Type { kind: Named("WebGLTransformFeedback"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isVertexArray": [Operation(Operation { args: [Argument { name: "vertexArray", optional: false, type_: Type { kind: Named("WebGLVertexArrayObject"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "pauseTransformFeedback": [Operation(Operation { args: [], return_type: None, doc_comment: "" })], "readBuffer": [Operation(Operation { args: [Argument { name: "src", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "readPixels": [Operation(Operation { args: [Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "dstData", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "dstData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "dstOffset", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "renderbufferStorageMultisample": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "samples", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "resumeTransformFeedback": [Operation(Operation { args: [], return_type: None, doc_comment: "" })], "samplerParameterf": [Operation(Operation { args: [Argument { name: "sampler", optional: false, type_: Type { kind: Named("WebGLSampler"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "param", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "samplerParameteri": [Operation(Operation { args: [Argument { name: "sampler", optional: false, type_: Type { kind: Named("WebGLSampler"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "param", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pixels", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pboOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texImage3D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pboOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texStorage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "levels", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texStorage3D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "levels", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texSubImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pixels", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pboOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }, Argument { name: "srcOffset", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texSubImage3D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "zoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pboOffset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "zoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "zoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "depth", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcData", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "transformFeedbackVaryings": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "varyings", optional: false, type_: Type { kind: Sequence(Type { kind: String, optional: false }), optional: false }, variadic: false }, Argument { name: "bufferMode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1ui": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v0", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1uiv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Uint32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2ui": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v0", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "v1", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2uiv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Uint32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3ui": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v0", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "v1", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "v2", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3uiv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Uint32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4ui": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v0", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "v1", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "v2", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "v3", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4uiv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Uint32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformBlockBinding": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "uniformBlockIndex", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "uniformBlockBinding", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix2fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix2x3fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix2x4fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix3fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix3x2fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix3x4fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix4fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix4x2fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix4x3fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }, Argument { name: "srcOffset", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "srcLength", optional: true, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribDivisor": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "divisor", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribI4i": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "w", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribI4iv": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribI4ui": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "w", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribI4uiv": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Uint32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribIPointer": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "size", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "stride", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "waitSync": [Operation(Operation { args: [Argument { name: "sync", optional: false, type_: Type { kind: Named("WebGLSync"), optional: false }, variadic: false }, Argument { name: "flags", optional: false, type_: Type { kind: Named("GLbitfield"), optional: false }, variadic: false }, Argument { name: "timeout", optional: false, type_: Type { kind: Named("GLint64"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })]} }), "WebGLActiveInfo": Interface(Interface { inherits: None, mixins: {}, members: {"name": [Attribute(Attribute { type_: Type { kind: String, optional: false }, setter: false, getter: true })], "size": [Attribute(Attribute { type_: Type { kind: Named("GLint"), optional: false }, setter: false, getter: true })], "type": [Attribute(Attribute { type_: Type { kind: Named("GLenum"), optional: false }, setter: false, getter: true })]}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLBuffer": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLContextAttributes": Dictionary(Dictionary { inherits: None, fields: {"alpha": Field { type_: Type { kind: Named("GLboolean"), optional: false } }, "antialias": Field { type_: Type { kind: Named("GLboolean"), optional: false } }, "depth": Field { type_: Type { kind: Named("GLboolean"), optional: false } }, "failIfMajorPerformanceCaveat": Field { type_: Type { kind: Named("GLboolean"), optional: false } }, "powerPreference": Field { type_: Type { kind: Named("WebGLPowerPreference"), optional: false } }, "premultipliedAlpha": Field { type_: Type { kind: Named("GLboolean"), optional: false } }, "preserveDrawingBuffer": Field { type_: Type { kind: Named("GLboolean"), optional: false } }, "securitySensitiveDrawingBuffer": Field { type_: Type { kind: Named("GLboolean"), optional: true } }, "stencil": Field { type_: Type { kind: Named("GLboolean"), optional: false } }}, is_hidden: false }), "WebGLContextEvent": Interface(Interface { inherits: Some("Event"), mixins: {}, members: {"statusMessage": [Attribute(Attribute { type_: Type { kind: String, optional: false }, setter: false, getter: true })]}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLContextEventInit": Dictionary(Dictionary { inherits: Some("EventInit"), fields: {"statusMessage": Field { type_: Type { kind: String, optional: false } }}, is_hidden: true }), "WebGLFramebuffer": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLObject": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: true, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLPowerPreference": Enum(Enum { variants: {"default", "high-performance", "low-power"} }), "WebGLProgram": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLQuery": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLRenderbuffer": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLRenderingContext": Interface(Interface { inherits: None, mixins: {"WebGLRenderingContextBase"}, members: {}, is_hidden: false, has_class: true, rendering_context: Some("webgl"), doc_comment: "" }), "WebGLRenderingContextBase": Mixin(Mixin { members: {"ACTIVE_ATTRIBUTES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35721" })], "ACTIVE_TEXTURE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34016" })], "ACTIVE_UNIFORMS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35718" })], "ALIASED_LINE_WIDTH_RANGE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33902" })], "ALIASED_POINT_SIZE_RANGE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33901" })], "ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6406" })], "ALPHA_BITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3413" })], "ALWAYS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "519" })], "ARRAY_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34962" })], "ARRAY_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34964" })], "ATTACHED_SHADERS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35717" })], "BACK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1029" })], "BLEND": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3042" })], "BLEND_COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32773" })], "BLEND_DST_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32970" })], "BLEND_DST_RGB": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32968" })], "BLEND_EQUATION": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32777" })], "BLEND_EQUATION_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34877" })], "BLEND_EQUATION_RGB": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32777" })], "BLEND_SRC_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32971" })], "BLEND_SRC_RGB": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32969" })], "BLUE_BITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3412" })], "BOOL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35670" })], "BOOL_VEC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35671" })], "BOOL_VEC3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35672" })], "BOOL_VEC4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35673" })], "BROWSER_DEFAULT_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37444" })], "BUFFER_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34660" })], "BUFFER_USAGE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34661" })], "BYTE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5120" })], "CCW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2305" })], "CLAMP_TO_EDGE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33071" })], "COLOR_ATTACHMENT0": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36064" })], "COLOR_BUFFER_BIT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "16384" })], "COLOR_CLEAR_VALUE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3106" })], "COLOR_WRITEMASK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3107" })], "COMPILE_STATUS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35713" })], "COMPRESSED_TEXTURE_FORMATS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34467" })], "CONSTANT_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32771" })], "CONSTANT_COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32769" })], "CONTEXT_LOST_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37442" })], "CULL_FACE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2884" })], "CULL_FACE_MODE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2885" })], "CURRENT_PROGRAM": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35725" })], "CURRENT_VERTEX_ATTRIB": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34342" })], "CW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2304" })], "DECR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "7683" })], "DECR_WRAP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34056" })], "DELETE_STATUS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35712" })], "DEPTH_ATTACHMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36096" })], "DEPTH_BITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3414" })], "DEPTH_BUFFER_BIT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "256" })], "DEPTH_CLEAR_VALUE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2931" })], "DEPTH_COMPONENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6402" })], "DEPTH_COMPONENT16": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33189" })], "DEPTH_FUNC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2932" })], "DEPTH_RANGE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2928" })], "DEPTH_STENCIL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34041" })], "DEPTH_STENCIL_ATTACHMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33306" })], "DEPTH_TEST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2929" })], "DEPTH_WRITEMASK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2930" })], "DITHER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3024" })], "DONT_CARE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "4352" })], "DST_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "772" })], "DST_COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "774" })], "DYNAMIC_DRAW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35048" })], "ELEMENT_ARRAY_BUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34963" })], "ELEMENT_ARRAY_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34965" })], "EQUAL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "514" })], "FASTEST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "4353" })], "FLOAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5126" })], "FLOAT_MAT2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35674" })], "FLOAT_MAT3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35675" })], "FLOAT_MAT4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35676" })], "FLOAT_VEC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35664" })], "FLOAT_VEC3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35665" })], "FLOAT_VEC4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35666" })], "FRAGMENT_SHADER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35632" })], "FRAMEBUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36160" })], "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36049" })], "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36048" })], "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36051" })], "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36050" })], "FRAMEBUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36006" })], "FRAMEBUFFER_COMPLETE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36053" })], "FRAMEBUFFER_INCOMPLETE_ATTACHMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36054" })], "FRAMEBUFFER_INCOMPLETE_DIMENSIONS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36057" })], "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36055" })], "FRAMEBUFFER_UNSUPPORTED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36061" })], "FRONT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1028" })], "FRONT_AND_BACK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1032" })], "FRONT_FACE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2886" })], "FUNC_ADD": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32774" })], "FUNC_REVERSE_SUBTRACT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32779" })], "FUNC_SUBTRACT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32778" })], "GENERATE_MIPMAP_HINT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33170" })], "GEQUAL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "518" })], "GREATER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "516" })], "GREEN_BITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3411" })], "HIGH_FLOAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36338" })], "HIGH_INT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36341" })], "IMPLEMENTATION_COLOR_READ_FORMAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35739" })], "IMPLEMENTATION_COLOR_READ_TYPE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35738" })], "INCR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "7682" })], "INCR_WRAP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34055" })], "INT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5124" })], "INT_VEC2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35667" })], "INT_VEC3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35668" })], "INT_VEC4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35669" })], "INVALID_ENUM": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1280" })], "INVALID_FRAMEBUFFER_OPERATION": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1286" })], "INVALID_OPERATION": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1282" })], "INVALID_VALUE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1281" })], "INVERT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5386" })], "KEEP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "7680" })], "LEQUAL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "515" })], "LESS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "513" })], "LINEAR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "9729" })], "LINEAR_MIPMAP_LINEAR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "9987" })], "LINEAR_MIPMAP_NEAREST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "9985" })], "LINES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1" })], "LINE_LOOP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2" })], "LINE_STRIP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3" })], "LINE_WIDTH": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2849" })], "LINK_STATUS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35714" })], "LOW_FLOAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36336" })], "LOW_INT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36339" })], "LUMINANCE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6409" })], "LUMINANCE_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6410" })], "MAX_COMBINED_TEXTURE_IMAGE_UNITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35661" })], "MAX_CUBE_MAP_TEXTURE_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34076" })], "MAX_FRAGMENT_UNIFORM_VECTORS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36349" })], "MAX_RENDERBUFFER_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34024" })], "MAX_TEXTURE_IMAGE_UNITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34930" })], "MAX_TEXTURE_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3379" })], "MAX_VARYING_VECTORS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36348" })], "MAX_VERTEX_ATTRIBS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34921" })], "MAX_VERTEX_TEXTURE_IMAGE_UNITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35660" })], "MAX_VERTEX_UNIFORM_VECTORS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36347" })], "MAX_VIEWPORT_DIMS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3386" })], "MEDIUM_FLOAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36337" })], "MEDIUM_INT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36340" })], "MIRRORED_REPEAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33648" })], "NEAREST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "9728" })], "NEAREST_MIPMAP_LINEAR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "9986" })], "NEAREST_MIPMAP_NEAREST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "9984" })], "NEVER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "512" })], "NICEST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "4354" })], "NONE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "0" })], "NOTEQUAL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "517" })], "NO_ERROR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "0" })], "ONE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1" })], "ONE_MINUS_CONSTANT_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32772" })], "ONE_MINUS_CONSTANT_COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32770" })], "ONE_MINUS_DST_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "773" })], "ONE_MINUS_DST_COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "775" })], "ONE_MINUS_SRC_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "771" })], "ONE_MINUS_SRC_COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "769" })], "OUT_OF_MEMORY": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1285" })], "PACK_ALIGNMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3333" })], "POINTS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "0" })], "POLYGON_OFFSET_FACTOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32824" })], "POLYGON_OFFSET_FILL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32823" })], "POLYGON_OFFSET_UNITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "10752" })], "RED_BITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3410" })], "RENDERBUFFER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36161" })], "RENDERBUFFER_ALPHA_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36179" })], "RENDERBUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36007" })], "RENDERBUFFER_BLUE_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36178" })], "RENDERBUFFER_DEPTH_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36180" })], "RENDERBUFFER_GREEN_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36177" })], "RENDERBUFFER_HEIGHT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36163" })], "RENDERBUFFER_INTERNAL_FORMAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36164" })], "RENDERBUFFER_RED_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36176" })], "RENDERBUFFER_STENCIL_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36181" })], "RENDERBUFFER_WIDTH": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36162" })], "RENDERER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "7937" })], "REPEAT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "10497" })], "REPLACE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "7681" })], "RGB": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6407" })], "RGB565": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36194" })], "RGB5_A1": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32855" })], "RGBA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6408" })], "RGBA4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32854" })], "SAMPLER_2D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35678" })], "SAMPLER_CUBE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35680" })], "SAMPLES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32937" })], "SAMPLE_ALPHA_TO_COVERAGE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32926" })], "SAMPLE_BUFFERS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32936" })], "SAMPLE_COVERAGE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32928" })], "SAMPLE_COVERAGE_INVERT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32939" })], "SAMPLE_COVERAGE_VALUE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32938" })], "SCISSOR_BOX": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3088" })], "SCISSOR_TEST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3089" })], "SHADER_TYPE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35663" })], "SHADING_LANGUAGE_VERSION": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35724" })], "SHORT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5122" })], "SRC_ALPHA": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "770" })], "SRC_ALPHA_SATURATE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "776" })], "SRC_COLOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "768" })], "STATIC_DRAW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35044" })], "STENCIL_ATTACHMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36128" })], "STENCIL_BACK_FAIL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34817" })], "STENCIL_BACK_FUNC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34816" })], "STENCIL_BACK_PASS_DEPTH_FAIL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34818" })], "STENCIL_BACK_PASS_DEPTH_PASS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34819" })], "STENCIL_BACK_REF": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36003" })], "STENCIL_BACK_VALUE_MASK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36004" })], "STENCIL_BACK_WRITEMASK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36005" })], "STENCIL_BITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3415" })], "STENCIL_BUFFER_BIT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "1024" })], "STENCIL_CLEAR_VALUE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2961" })], "STENCIL_FAIL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2964" })], "STENCIL_FUNC": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2962" })], "STENCIL_INDEX8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "36168" })], "STENCIL_PASS_DEPTH_FAIL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2965" })], "STENCIL_PASS_DEPTH_PASS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2966" })], "STENCIL_REF": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2967" })], "STENCIL_TEST": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2960" })], "STENCIL_VALUE_MASK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2963" })], "STENCIL_WRITEMASK": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2968" })], "STREAM_DRAW": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35040" })], "SUBPIXEL_BITS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3408" })], "TEXTURE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5890" })], "TEXTURE0": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33984" })], "TEXTURE1": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33985" })], "TEXTURE10": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33994" })], "TEXTURE11": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33995" })], "TEXTURE12": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33996" })], "TEXTURE13": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33997" })], "TEXTURE14": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33998" })], "TEXTURE15": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33999" })], "TEXTURE16": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34000" })], "TEXTURE17": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34001" })], "TEXTURE18": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34002" })], "TEXTURE19": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34003" })], "TEXTURE2": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33986" })], "TEXTURE20": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34004" })], "TEXTURE21": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34005" })], "TEXTURE22": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34006" })], "TEXTURE23": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34007" })], "TEXTURE24": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34008" })], "TEXTURE25": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34009" })], "TEXTURE26": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34010" })], "TEXTURE27": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34011" })], "TEXTURE28": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34012" })], "TEXTURE29": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34013" })], "TEXTURE3": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33987" })], "TEXTURE30": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34014" })], "TEXTURE31": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34015" })], "TEXTURE4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33988" })], "TEXTURE5": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33989" })], "TEXTURE6": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33990" })], "TEXTURE7": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33991" })], "TEXTURE8": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33992" })], "TEXTURE9": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33993" })], "TEXTURE_2D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3553" })], "TEXTURE_BINDING_2D": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32873" })], "TEXTURE_BINDING_CUBE_MAP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34068" })], "TEXTURE_CUBE_MAP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34067" })], "TEXTURE_CUBE_MAP_NEGATIVE_X": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34070" })], "TEXTURE_CUBE_MAP_NEGATIVE_Y": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34072" })], "TEXTURE_CUBE_MAP_NEGATIVE_Z": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34074" })], "TEXTURE_CUBE_MAP_POSITIVE_X": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34069" })], "TEXTURE_CUBE_MAP_POSITIVE_Y": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34071" })], "TEXTURE_CUBE_MAP_POSITIVE_Z": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34073" })], "TEXTURE_MAG_FILTER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "10240" })], "TEXTURE_MIN_FILTER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "10241" })], "TEXTURE_WRAP_S": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "10242" })], "TEXTURE_WRAP_T": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "10243" })], "TRIANGLES": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "4" })], "TRIANGLE_FAN": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "6" })], "TRIANGLE_STRIP": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5" })], "UNPACK_ALIGNMENT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "3317" })], "UNPACK_COLORSPACE_CONVERSION_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37443" })], "UNPACK_FLIP_Y_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37440" })], "UNPACK_PREMULTIPLY_ALPHA_WEBGL": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "37441" })], "UNSIGNED_BYTE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5121" })], "UNSIGNED_INT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5125" })], "UNSIGNED_SHORT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "5123" })], "UNSIGNED_SHORT_4_4_4_4": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32819" })], "UNSIGNED_SHORT_5_5_5_1": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "32820" })], "UNSIGNED_SHORT_5_6_5": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "33635" })], "VALIDATE_STATUS": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35715" })], "VENDOR": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "7936" })], "VERSION": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "7938" })], "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34975" })], "VERTEX_ATTRIB_ARRAY_ENABLED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34338" })], "VERTEX_ATTRIB_ARRAY_NORMALIZED": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34922" })], "VERTEX_ATTRIB_ARRAY_POINTER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34373" })], "VERTEX_ATTRIB_ARRAY_SIZE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34339" })], "VERTEX_ATTRIB_ARRAY_STRIDE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34340" })], "VERTEX_ATTRIB_ARRAY_TYPE": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "34341" })], "VERTEX_SHADER": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "35633" })], "VIEWPORT": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "2978" })], "ZERO": [Const(Const { type_: Type { kind: Named("GLenum"), optional: false }, value: "0" })], "activeTexture": [Operation(Operation { args: [Argument { name: "texture", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "attachShader": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bindAttribLocation": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "name", optional: false, type_: Type { kind: String, optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bindBuffer": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "buffer", optional: false, type_: Type { kind: Named("WebGLBuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "bindFramebuffer": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "framebuffer", optional: false, type_: Type { kind: Named("WebGLFramebuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "bindRenderbuffer": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "renderbuffer", optional: false, type_: Type { kind: Named("WebGLRenderbuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "bindTexture": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "texture", optional: false, type_: Type { kind: Named("WebGLTexture"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "blendColor": [Operation(Operation { args: [Argument { name: "red", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "green", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "blue", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "alpha", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "blendEquation": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "blendEquationSeparate": [Operation(Operation { args: [Argument { name: "modeRGB", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "modeAlpha", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "blendFunc": [Operation(Operation { args: [Argument { name: "sfactor", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "dfactor", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "blendFuncSeparate": [Operation(Operation { args: [Argument { name: "srcRGB", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "dstRGB", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "srcAlpha", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "dstAlpha", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bufferData": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "size", optional: false, type_: Type { kind: Named("GLsizeiptr"), optional: false }, variadic: false }, Argument { name: "usage", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: BufferSource, optional: true }, variadic: false }, Argument { name: "usage", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "bufferSubData": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: BufferSource, optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "canvas": [Attribute(Attribute { type_: Type { kind: CanvasElement, optional: false }, setter: false, getter: true })], "checkFramebufferStatus": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("GLenum"), optional: false }), doc_comment: "" })], "clear": [Operation(Operation { args: [Argument { name: "mask", optional: false, type_: Type { kind: Named("GLbitfield"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clearColor": [Operation(Operation { args: [Argument { name: "red", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "green", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "blue", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "alpha", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clearDepth": [Operation(Operation { args: [Argument { name: "depth", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "clearStencil": [Operation(Operation { args: [Argument { name: "s", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "colorMask": [Operation(Operation { args: [Argument { name: "red", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "green", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "blue", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "alpha", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "compileShader": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "compressedTexImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "compressedTexSubImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "data", optional: false, type_: Type { kind: ArrayBufferView, optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "copyTexImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "copyTexSubImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "createBuffer": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLBuffer"), optional: true }), doc_comment: "" })], "createFramebuffer": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLFramebuffer"), optional: true }), doc_comment: "" })], "createProgram": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLProgram"), optional: true }), doc_comment: "" })], "createRenderbuffer": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLRenderbuffer"), optional: true }), doc_comment: "" })], "createShader": [Operation(Operation { args: [Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLShader"), optional: true }), doc_comment: "" })], "createTexture": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLTexture"), optional: true }), doc_comment: "" })], "cullFace": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "deleteBuffer": [Operation(Operation { args: [Argument { name: "buffer", optional: false, type_: Type { kind: Named("WebGLBuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteFramebuffer": [Operation(Operation { args: [Argument { name: "framebuffer", optional: false, type_: Type { kind: Named("WebGLFramebuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteProgram": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteRenderbuffer": [Operation(Operation { args: [Argument { name: "renderbuffer", optional: false, type_: Type { kind: Named("WebGLRenderbuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteShader": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "deleteTexture": [Operation(Operation { args: [Argument { name: "texture", optional: false, type_: Type { kind: Named("WebGLTexture"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "depthFunc": [Operation(Operation { args: [Argument { name: "func", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "depthMask": [Operation(Operation { args: [Argument { name: "flag", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "depthRange": [Operation(Operation { args: [Argument { name: "zNear", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "zFar", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "detachShader": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "disable": [Operation(Operation { args: [Argument { name: "cap", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "disableVertexAttribArray": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "drawArrays": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "first", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "count", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "drawElements": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "count", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "drawingBufferHeight": [Attribute(Attribute { type_: Type { kind: Named("GLsizei"), optional: false }, setter: false, getter: true })], "drawingBufferWidth": [Attribute(Attribute { type_: Type { kind: Named("GLsizei"), optional: false }, setter: false, getter: true })], "enable": [Operation(Operation { args: [Argument { name: "cap", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "enableVertexAttribArray": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "finish": [Operation(Operation { args: [], return_type: None, doc_comment: "" })], "flush": [Operation(Operation { args: [], return_type: None, doc_comment: "" })], "framebufferRenderbuffer": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "attachment", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "renderbuffertarget", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "renderbuffer", optional: false, type_: Type { kind: Named("WebGLRenderbuffer"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "framebufferTexture2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "attachment", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "textarget", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "texture", optional: false, type_: Type { kind: Named("WebGLTexture"), optional: true }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "frontFace": [Operation(Operation { args: [Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "generateMipmap": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "getActiveAttrib": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLActiveInfo"), optional: true }), doc_comment: "" })], "getActiveUniform": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLActiveInfo"), optional: true }), doc_comment: "" })], "getAttachedShaders": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }], return_type: Some(Type { kind: Sequence(Type { kind: Named("WebGLShader"), optional: false }), optional: true }), doc_comment: "" })], "getAttribLocation": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "name", optional: false, type_: Type { kind: String, optional: false }, variadic: false }], return_type: Some(Type { kind: Named("GLint"), optional: false }), doc_comment: "" })], "getBufferParameter": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getContextAttributes": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("WebGLContextAttributes"), optional: true }), doc_comment: "" })], "getError": [Operation(Operation { args: [], return_type: Some(Type { kind: Named("GLenum"), optional: false }), doc_comment: "" })], "getExtension": [Operation(Operation { args: [Argument { name: "name", optional: false, type_: Type { kind: String, optional: false }, variadic: false }], return_type: Some(Type { kind: Object, optional: true }), doc_comment: "" })], "getFramebufferAttachmentParameter": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "attachment", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getParameter": [Operation(Operation { args: [Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getProgramInfoLog": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }], return_type: Some(Type { kind: String, optional: true }), doc_comment: "" })], "getProgramParameter": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getRenderbufferParameter": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getShaderInfoLog": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }], return_type: Some(Type { kind: String, optional: true }), doc_comment: "" })], "getShaderParameter": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getShaderPrecisionFormat": [Operation(Operation { args: [Argument { name: "shadertype", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "precisiontype", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLShaderPrecisionFormat"), optional: true }), doc_comment: "" })], "getShaderSource": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }], return_type: Some(Type { kind: String, optional: true }), doc_comment: "" })], "getSupportedExtensions": [Operation(Operation { args: [], return_type: Some(Type { kind: Sequence(Type { kind: String, optional: false }), optional: true }), doc_comment: "" })], "getTexParameter": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getUniform": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getUniformLocation": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }, Argument { name: "name", optional: false, type_: Type { kind: String, optional: false }, variadic: false }], return_type: Some(Type { kind: Named("WebGLUniformLocation"), optional: true }), doc_comment: "" })], "getVertexAttrib": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Any, optional: false }), doc_comment: "" })], "getVertexAttribOffset": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("GLintptr"), optional: false }), doc_comment: "" })], "hint": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "mode", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "isBuffer": [Operation(Operation { args: [Argument { name: "buffer", optional: false, type_: Type { kind: Named("WebGLBuffer"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isContextLost": [Operation(Operation { args: [], return_type: Some(Type { kind: Primitive(Bool), optional: false }), doc_comment: "" })], "isEnabled": [Operation(Operation { args: [Argument { name: "cap", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isFramebuffer": [Operation(Operation { args: [Argument { name: "framebuffer", optional: false, type_: Type { kind: Named("WebGLFramebuffer"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isProgram": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isRenderbuffer": [Operation(Operation { args: [Argument { name: "renderbuffer", optional: false, type_: Type { kind: Named("WebGLRenderbuffer"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isShader": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "isTexture": [Operation(Operation { args: [Argument { name: "texture", optional: false, type_: Type { kind: Named("WebGLTexture"), optional: true }, variadic: false }], return_type: Some(Type { kind: Named("GLboolean"), optional: false }), doc_comment: "" })], "lineWidth": [Operation(Operation { args: [Argument { name: "width", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "linkProgram": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "pixelStorei": [Operation(Operation { args: [Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "param", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "polygonOffset": [Operation(Operation { args: [Argument { name: "factor", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "units", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "readPixels": [Operation(Operation { args: [Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pixels", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "renderbufferStorage": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "sampleCoverage": [Operation(Operation { args: [Argument { name: "value", optional: false, type_: Type { kind: Named("GLclampf"), optional: false }, variadic: false }, Argument { name: "invert", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "scissor": [Operation(Operation { args: [Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "shaderSource": [Operation(Operation { args: [Argument { name: "shader", optional: false, type_: Type { kind: Named("WebGLShader"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: String, optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "stencilFunc": [Operation(Operation { args: [Argument { name: "func", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "ref", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "mask", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "stencilFuncSeparate": [Operation(Operation { args: [Argument { name: "face", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "func", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "ref", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "mask", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "stencilMask": [Operation(Operation { args: [Argument { name: "mask", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "stencilMaskSeparate": [Operation(Operation { args: [Argument { name: "face", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "mask", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "stencilOp": [Operation(Operation { args: [Argument { name: "fail", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "zfail", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "zpass", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "stencilOpSeparate": [Operation(Operation { args: [Argument { name: "face", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "fail", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "zfail", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "zpass", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "border", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pixels", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "internalformat", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texParameterf": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "param", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texParameteri": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pname", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "param", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "texSubImage2D": [Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "pixels", optional: false, type_: Type { kind: ArrayBufferView, optional: true }, variadic: false }], return_type: None, doc_comment: "" }), Operation(Operation { args: [Argument { name: "target", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "level", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "xoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "yoffset", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "format", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "source", optional: false, type_: Type { kind: Named("TexImageSource"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1f": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1i": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform1iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2f": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2i": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform2iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3f": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3i": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform3iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4f": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "w", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4i": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "w", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniform4iv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "v", optional: false, type_: Type { kind: Named("Int32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix2fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "value", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix3fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "value", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "uniformMatrix4fv": [Operation(Operation { args: [Argument { name: "location", optional: false, type_: Type { kind: Named("WebGLUniformLocation"), optional: true }, variadic: false }, Argument { name: "transpose", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "value", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "useProgram": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: true }, variadic: false }], return_type: None, doc_comment: "" })], "validateProgram": [Operation(Operation { args: [Argument { name: "program", optional: false, type_: Type { kind: Named("WebGLProgram"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib1f": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib1fv": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib2f": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib2fv": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib3f": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib3fv": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib4f": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "x", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "z", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }, Argument { name: "w", optional: false, type_: Type { kind: Named("GLfloat"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttrib4fv": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "values", optional: false, type_: Type { kind: Named("Float32List"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "vertexAttribPointer": [Operation(Operation { args: [Argument { name: "index", optional: false, type_: Type { kind: Named("GLuint"), optional: false }, variadic: false }, Argument { name: "size", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "type", optional: false, type_: Type { kind: Named("GLenum"), optional: false }, variadic: false }, Argument { name: "normalized", optional: false, type_: Type { kind: Named("GLboolean"), optional: false }, variadic: false }, Argument { name: "stride", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "offset", optional: false, type_: Type { kind: Named("GLintptr"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })], "viewport": [Operation(Operation { args: [Argument { name: "x", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "y", optional: false, type_: Type { kind: Named("GLint"), optional: false }, variadic: false }, Argument { name: "width", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }, Argument { name: "height", optional: false, type_: Type { kind: Named("GLsizei"), optional: false }, variadic: false }], return_type: None, doc_comment: "" })]} }), "WebGLSampler": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLShader": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLShaderPrecisionFormat": Interface(Interface { inherits: None, mixins: {}, members: {"precision": [Attribute(Attribute { type_: Type { kind: Named("GLint"), optional: false }, setter: false, getter: true })], "rangeMax": [Attribute(Attribute { type_: Type { kind: Named("GLint"), optional: false }, setter: false, getter: true })], "rangeMin": [Attribute(Attribute { type_: Type { kind: Named("GLint"), optional: false }, setter: false, getter: true })]}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLSync": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLTexture": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLTimerQueryEXT": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "" }), "WebGLTransformFeedback": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLUniformLocation": Interface(Interface { inherits: None, mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLVertexArrayObject": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: true, rendering_context: None, doc_comment: "" }), "WebGLVertexArrayObjectOES": Interface(Interface { inherits: Some("WebGLObject"), mixins: {}, members: {}, is_hidden: false, has_class: false, rendering_context: None, doc_comment: "" })}, extensions: {"ANGLE_instanced_arrays", "EXT_blend_minmax", "EXT_color_buffer_float", "EXT_color_buffer_half_float", "EXT_disjoint_timer_query", "EXT_disjoint_timer_query_webgl2", "EXT_float_blend", "EXT_frag_depth", "EXT_sRGB", "EXT_shader_texture_lod", "EXT_texture_compression_bptc", "EXT_texture_compression_rgtc", "EXT_texture_filter_anisotropic", "KHR_parallel_shader_compile", "OES_element_index_uint", "OES_fbo_render_mipmap", "OES_standard_derivatives", "OES_texture_float", "OES_texture_float_linear", "OES_texture_half_float", "OES_texture_half_float_linear", "OES_vertex_array_object", "WEBGL_color_buffer_float", "WEBGL_compressed_texture_astc", "WEBGL_compressed_texture_etc", "WEBGL_compressed_texture_etc1", "WEBGL_compressed_texture_pvrtc", "WEBGL_compressed_texture_s3tc", "WEBGL_compressed_texture_s3tc_srgb", "WEBGL_debug_renderer_info", "WEBGL_debug_shaders", "WEBGL_depth_texture", "WEBGL_draw_buffers", "WEBGL_lose_context", "WEBGL_multiview", "WEBGL_security_sensitive_resources"} } extern crate stdweb; use self::stdweb::{Reference, Value, UnsafeTypedArray, JsSerialize, InstanceOf}; use self::stdweb::unstable::{TryFrom, TryInto}; use self::stdweb::web::{RenderingContext, TypedArray, ArrayBuffer}; use self::stdweb::web::html_element::CanvasElement; type ConversionError = <Reference as TryFrom<Value>>::Error; pub trait AsTypedArray<'a, T> { type Result: JsSerialize; unsafe fn as_typed_array(self) -> Self::Result; } pub trait AsArrayBufferView<'a> { type Result: JsSerialize; unsafe fn as_array_buffer_view(self) -> Self::Result; } pub trait Extension: TryFrom<Value> { const NAME: &'static str; } macro_rules! define_array { ($elem:ty) => { impl<'a> AsTypedArray<'a, $elem> for &'a TypedArray<$elem> { type Result = Self; unsafe fn as_typed_array(self) -> Self::Result { self } } impl<'a> AsTypedArray<'a, $elem> for &'a [$elem] { type Result = UnsafeTypedArray<'a, $elem>; unsafe fn as_typed_array(self) -> Self::Result { UnsafeTypedArray::new(self) } } impl<'a> AsArrayBufferView<'a> for &'a TypedArray<$elem> { type Result = Self; unsafe fn as_array_buffer_view(self) -> Self::Result { self } } impl<'a> AsArrayBufferView<'a> for &'a [$elem] { type Result = UnsafeTypedArray<'a, $elem>; unsafe fn as_array_buffer_view(self) -> Self::Result { UnsafeTypedArray::new(self) } } } } define_array!(i8); define_array!(u8); define_array!(i16); define_array!(u16); define_array!(i32); define_array!(u32); define_array!(f32); define_array!(f64); pub type Float32List = TypedArray<f32>; pub type GLbitfield = u32; pub type GLboolean = bool; pub type GLbyte = i8; pub type GLclampf = f32; pub type GLenum = u32; pub type GLfloat = f32; pub type GLint = i32; pub type GLint64 = i64; pub type GLintptr = i64; pub type GLshort = i16; pub type GLsizei = i32; pub type GLsizeiptr = i64; pub type GLubyte = u8; pub type GLuint = u32; pub type GLuint64 = u64; pub type GLuint64EXT = u64; pub type GLushort = u16; pub type Int32List = TypedArray<i32>; pub type TexImageSource = Value; pub type Uint32List = TypedArray<u32>; #[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum WebGLPowerPreference { #[serde(rename = "default")] Default, #[serde(rename = "high-performance")] HighPerformance, #[serde(rename = "low-power")] LowPower, } js_deserializable!(WebGLPowerPreference); js_serializable!(WebGLPowerPreference); #[derive(Debug, Clone, Serialize, Deserialize)] pub struct WebGLContextAttributes { alpha: GLboolean, antialias: GLboolean, depth: GLboolean, #[serde(rename = "failIfMajorPerformanceCaveat")] fail_if_major_performance_caveat: GLboolean, #[serde(rename = "powerPreference")] power_preference: WebGLPowerPreference, #[serde(rename = "premultipliedAlpha")] premultiplied_alpha: GLboolean, #[serde(rename = "preserveDrawingBuffer")] preserve_drawing_buffer: GLboolean, #[serde(rename = "securitySensitiveDrawingBuffer", default, skip_serializing_if = "Option::is_none")] security_sensitive_drawing_buffer: Option<GLboolean>, stencil: GLboolean, } js_deserializable!(WebGLContextAttributes); js_serializable!(WebGLContextAttributes); /// Extension /// /// The implementation must validate the indices referenced by drawArraysInstancedANGLE and drawElementsInstancedANGLE similarly to how indices referenced by drawArrays and drawElements are validated according to section [Enabled Vertex Attributes and Range Checking](http://www.khronos.org/registry/webgl/specs/1.0/#ATTRIBS_AND_RANGE_CHECKING) of the WebGL specification. /// /// Although the extension contains ANGLE in the name it may be exposed by any implementation, whether or not the implementation uses the ANGLE library. #[derive(Debug, Clone, ReferenceType)] pub struct ANGLE_instanced_arrays(Reference); impl ANGLE_instanced_arrays { pub const VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum = 35070; pub fn draw_arrays_instanced_angle(&self, mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei) { js!( @(no_return) @{self}.drawArraysInstancedANGLE(@{mode}, @{first}, @{count}, @{primcount}); ); } pub fn draw_elements_instanced_angle(&self, mode: GLenum, count: GLsizei, type_: GLenum, offset: GLintptr, primcount: GLsizei) { js!( @(no_return) @{self}.drawElementsInstancedANGLE(@{mode}, @{count}, @{type_}, @{(offset as f64)}, @{primcount}); ); } pub fn vertex_attrib_divisor_angle(&self, index: GLuint, divisor: GLuint) { js!( @(no_return) @{self}.vertexAttribDivisorANGLE(@{index}, @{divisor}); ); } } impl InstanceOf for ANGLE_instanced_arrays { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// The blendEquation and blendEquationSeparate entry points are extended to accept MIN_EXT and MAX_EXT #[derive(Debug, Clone, ReferenceType)] pub struct EXT_blend_minmax(Reference); impl EXT_blend_minmax { pub const MAX_EXT: GLenum = 32776; pub const MIN_EXT: GLenum = 32775; } impl InstanceOf for EXT_blend_minmax { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// The sized internal format RGB16F is not color-renderable in this extension. This is a difference in functionality compared to the [EXT_color_buffer_half_float](../EXT_color_buffer_half_float) extension. /// /// The following floating-point internal formats become color-renderable: R16F, RG16F, RGBA16F, R32F, RG32F, RGBA32F and R11F_G11F_B10F. A renderbuffer or a texture with a color-renderable internal format can be used as a rendering target by attaching it to a framebuffer object as a color attachment. /// /// Renderbuffers with these internal formats can be created. /// /// The format and type combination RGBA and FLOAT becomes valid for reading from a floating-point color buffer. /// /// Notes: /// /// * Fragment shader outputs to buffers with these internal formats are not clamped. /// * Colors specified with clearColor and blendColor are not clamped when applied to buffers with these internal formats. /// * The format and type combination RGBA and UNSIGNED_BYTE cannot be used for reading from a floating-point color buffer. /// * Multi-sample floating-point color renderbuffers may optionally be supported. Limitations are defined in the [EXT_color_buffer_float](http://www.khronos.org/registry/gles/extensions/EXT/EXT_color_buffer_float.txt) extension. /// * The sized internal format RGB16F is not color-renderable in this extension. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_color_buffer_float(Reference); impl EXT_color_buffer_float { } impl InstanceOf for EXT_color_buffer_float { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// All references to R16F and RG16F types are ignored. /// /// WebGL implementations supporting this extension are required to support rendering to RGBA16F format. /// /// The 16-bit floating-point types RGB16F and RGBA16F become available as color-renderable formats. Renderbuffers can be created in these formats. These and textures created with type = HALF_FLOAT_OES, which will have one of these internal formats, can be attached to framebuffer object color attachments for rendering. Implementations supporting this extension are required to support rendering to RGBA16F format. Applications must check framebuffer completeness to determine if RGB16F is supported. /// /// NOTE: fragment shaders outputs gl_FragColor and gl_FragData[0] will only be clamped and converted when the color buffer is fixed-point and blendColor() and clearColor() will no longer clamp their parameter values on input. Clamping will be applied as necessary at draw time according to the type of color buffer in use. /// /// The format and type combination RGBA and FLOAT becomes valid for reading from a floating-point rendering buffer. Note: RGBA and UNSIGNED_BYTE cannot be used for reading from a floating-point rendering buffer. /// /// The component types of framebuffer object attachments can be queried. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_color_buffer_half_float(Reference); impl EXT_color_buffer_half_float { pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum = 33297; pub const RGB16F_EXT: GLenum = 34843; pub const RGBA16F_EXT: GLenum = 34842; pub const UNSIGNED_NORMALIZED_EXT: GLenum = 35863; } impl InstanceOf for EXT_color_buffer_half_float { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Specifies that queries' results only become available at certain well-defined times. This extension provides a query mechanism that can be used to determine the amount of time it takes to fully complete a set of GL commands, and without stalling the rendering pipeline. It uses the query object mechanisms first introduced in the occlusion query extension, which allow time intervals to be polled asynchronously by the application. This version of the disjoint_timer_query extension is exposed only on on WebGL 1.0 contexts. See the _webgl2 version of the extension for how it is exposed on WebGL 2.0 contexts. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_disjoint_timer_query(Reference); impl EXT_disjoint_timer_query { pub const CURRENT_QUERY_EXT: GLenum = 34917; pub const GPU_DISJOINT_EXT: GLenum = 36795; pub const QUERY_COUNTER_BITS_EXT: GLenum = 34916; pub const QUERY_RESULT_AVAILABLE_EXT: GLenum = 34919; pub const QUERY_RESULT_EXT: GLenum = 34918; pub const TIMESTAMP_EXT: GLenum = 36392; pub const TIME_ELAPSED_EXT: GLenum = 35007; /// target accepts TIME_ELAPSED_EXT. pub fn begin_query_ext(&self, target: GLenum, query: &WebGLTimerQueryEXT) { js!( @(no_return) @{self}.beginQueryEXT(@{target}, @{query}); ); } /// pub fn create_query_ext(&self, ) -> Option<WebGLTimerQueryEXT> { (js! { return @{self}.createQueryEXT(); } ).try_into().ok() } /// pub fn delete_query_ext(&self, query: Option<&WebGLTimerQueryEXT>) { js!( @(no_return) @{self}.deleteQueryEXT(@{query}); ); } /// target accepts TIME_ELAPSED_EXT. pub fn end_query_ext(&self, target: GLenum) { js!( @(no_return) @{self}.endQueryEXT(@{target}); ); } /// target and pname accept the following combinations of parameters. The return type of this method depends on the parameter queried. /// targetpnamereturned type TIME_ELAPSED_EXTCURRENT_QUERYWebGLQuery? TIMESTAMP_EXTCURRENT_QUERYnull TIME_ELAPSED_EXTQUERY_COUNTER_BITS_EXTGLint TIMESTAMP_EXTQUERY_COUNTER_BITS_EXTGLint pub fn get_query_ext(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getQueryEXT(@{target}, @{pname}); } ).try_into().unwrap() } /// pname accepts QUERY_RESULT_EXT or QUERY_RESULT_AVAILABLE_EXT. /// The return type of this method depends on the parameter queried: pnamereturned type QUERY_RESULT_EXTGLuint64EXT QUERY_RESULT_AVAILABLE_EXTboolean /// In order to ensure consistent behavior across platforms, queries' results must only be made available when the user agent's [event loop](http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#event-loops) is not executing a task. In other words: /// /// * A query's result must not be made available until control has returned to the user agent's main loop. /// * Repeatedly fetching a query's QUERY_RESULT_AVAILABLE_EXT parameter in a loop, without returning control to the user agent, must always return the same value. /// /// A query's result may or may not be made available when control returns to the user agent's event loop. It is not guaranteed that using a single setTimeout callback with a delay of 0, or a single requestAnimationFrame callback, will allow sufficient time for the WebGL implementation to supply the query's results. /// /// This change compared to the original extension specification is enforced in order to prevent applications from relying on being able to issue a query and fetch its result in the same frame. In order to ensure best portability among devices and best performance among implementations, applications must expect that queries' results will become available asynchronously. pub fn get_query_object_ext(&self, query: &WebGLTimerQueryEXT, pname: GLenum) -> Value { (js! { return @{self}.getQueryObjectEXT(@{query}, @{pname}); } ).try_into().unwrap() } /// Returns true if the passed WebGLTimerQueryEXT is valid and false otherwise. Returns false if the query's [invalidated flag](http://www.khronos.org/registry/webgl/specs/1.0.1/#webgl-object-invalidated-flag) is set. pub fn is_query_ext(&self, query: Option<&WebGLTimerQueryEXT>) -> bool { (js! { return @{self}.isQueryEXT(@{query}); } ).try_into().unwrap() } /// target accepts TIMESTAMP_EXT. pub fn query_counter_ext(&self, query: &WebGLTimerQueryEXT, target: GLenum) { js!( @(no_return) @{self}.queryCounterEXT(@{query}, @{target}); ); } } impl InstanceOf for EXT_disjoint_timer_query { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Specifies that queries' results only become available at certain well-defined times. This extension provides the same functionality as [EXT_disjoint_timer_query](../EXT_disjoint_timer_query/). The IDL, description, and extension name are specialized for WebGL 2.0, which incorporates query objects into the core specification. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_disjoint_timer_query_webgl2(Reference); impl EXT_disjoint_timer_query_webgl2 { pub const GPU_DISJOINT_EXT: GLenum = 36795; pub const QUERY_COUNTER_BITS_EXT: GLenum = 34916; pub const TIMESTAMP_EXT: GLenum = 36392; pub const TIME_ELAPSED_EXT: GLenum = 35007; /// target accepts TIMESTAMP_EXT. pub fn query_counter_ext(&self, query: &WebGLQuery, target: GLenum) { js!( @(no_return) @{self}.queryCounterEXT(@{query}, @{target}); ); } } impl InstanceOf for EXT_disjoint_timer_query_webgl2 { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// An INVALID_OPERATION error will no longer be raised by drawArrays or drawElements when blending is enabled and the draw buffer has 32-bit floating-point components. Note that in order to create such a draw buffer the [ EXT_color_buffer_float](http://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_float) extension must be enabled. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_float_blend(Reference); impl EXT_float_blend { } impl InstanceOf for EXT_float_blend { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Adds the ability to set the depth value of a fragment from within the fragment shader with the built-in output variable gl_FragDepthEXT. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_frag_depth(Reference); impl EXT_frag_depth { } impl InstanceOf for EXT_frag_depth { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Adds the sRGB support to textures and framebuffer objects. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_sRGB(Reference); impl EXT_sRGB { pub const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum = 33296; pub const SRGB8_ALPHA8_EXT: GLenum = 35907; pub const SRGB_ALPHA_EXT: GLenum = 35906; pub const SRGB_EXT: GLenum = 35904; } impl InstanceOf for EXT_sRGB { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_shader_texture_lod(Reference); impl EXT_shader_texture_lod { } impl InstanceOf for EXT_shader_texture_lod { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the compressed texture format defined in the [ EXT_texture_compression_bptc](https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_compression_bptc.txt) OpenGL ES extension to WebGL. Consult that extension specification for behavioral definitions, including error behaviors. /// /// Sampling from textures in the COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT format performs a color space conversion as specified for SRGB textures in the [EXT_sRGB](https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_sRGB.txt) OpenGL ES extension. Compression format COMPRESSED_RGBA_BPTC_UNORM_EXT, COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT, COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT, and COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the formats from this specification. /// /// If the internalformat is one of the BPTC internal formats from this specification, the byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > ceil(width / 4) * ceil(height / 4) * 16 /// /// If it is not, an INVALID_VALUE error is generated. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_texture_compression_bptc(Reference); impl EXT_texture_compression_bptc { pub const COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum = 36492; pub const COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum = 36494; pub const COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum = 36495; pub const COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum = 36493; } impl InstanceOf for EXT_texture_compression_bptc { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the compressed texture format defined in the [ EXT_texture_compression_rgtc](https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_compression_rgtc.txt) OpenGL extension to WebGL. Consult that extension specification for behavioral definitions, including error behaviors. /// /// Updates of partial tiles detailed in the "Implementation Note" section of the EXT_texture_compression_rgtc specification must be supported in an implementation of this WebGL extension. Compression formats COMPRESSED_RED_RGTC1_EXT, COMPRESSED_SIGNED_RED_RGTC1_EXT, COMPRESSED_RED_GREEN_RGTC2_EXT, and COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the formats from this specification. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RED_RGTC1_EXT COMPRESSED_SIGNED_RED_RGTC1_EXT /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > ceil(width / 4) * ceil(height / 4) * 8 /// /// If it is not, an INVALID_VALUE error is generated. COMPRESSED_RED_GREEN_RGTC2_EXT COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > ceil(width / 4) * ceil(height / 4) * 16 /// /// If it is not, an INVALID_VALUE error is generated. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_texture_compression_rgtc(Reference); impl EXT_texture_compression_rgtc { pub const COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum = 36285; pub const COMPRESSED_RED_RGTC1_EXT: GLenum = 36283; pub const COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum = 36286; pub const COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum = 36284; } impl InstanceOf for EXT_texture_compression_rgtc { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// The getTexParameter, texParameterf and texParameteri entry points' parameter pname accepts the value TEXTURE_MAX_ANISOTROPY_EXT The getParameter entry point parameter pname accepts the value MAX_TEXTURE_MAX_ANISOTROPY_EXT, returning a value of type float. #[derive(Debug, Clone, ReferenceType)] pub struct EXT_texture_filter_anisotropic(Reference); impl EXT_texture_filter_anisotropic { pub const MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum = 34047; pub const TEXTURE_MAX_ANISOTROPY_EXT: GLenum = 34046; } impl InstanceOf for EXT_texture_filter_anisotropic { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } #[derive(Debug, Clone, ReferenceType)] pub struct GLContext(Reference); impl GLContext { pub const ACTIVE_ATTRIBUTES: GLenum = 35721; pub const ACTIVE_TEXTURE: GLenum = 34016; pub const ACTIVE_UNIFORMS: GLenum = 35718; pub const ACTIVE_UNIFORM_BLOCKS: GLenum = 35382; pub const ALIASED_LINE_WIDTH_RANGE: GLenum = 33902; pub const ALIASED_POINT_SIZE_RANGE: GLenum = 33901; pub const ALPHA: GLenum = 6406; pub const ALPHA_BITS: GLenum = 3413; pub const ALREADY_SIGNALED: GLenum = 37146; pub const ALWAYS: GLenum = 519; pub const ANY_SAMPLES_PASSED: GLenum = 35887; pub const ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum = 36202; pub const ARRAY_BUFFER: GLenum = 34962; pub const ARRAY_BUFFER_BINDING: GLenum = 34964; pub const ATTACHED_SHADERS: GLenum = 35717; pub const BACK: GLenum = 1029; pub const BLEND: GLenum = 3042; pub const BLEND_COLOR: GLenum = 32773; pub const BLEND_DST_ALPHA: GLenum = 32970; pub const BLEND_DST_RGB: GLenum = 32968; pub const BLEND_EQUATION: GLenum = 32777; pub const BLEND_EQUATION_ALPHA: GLenum = 34877; pub const BLEND_EQUATION_RGB: GLenum = 32777; pub const BLEND_SRC_ALPHA: GLenum = 32971; pub const BLEND_SRC_RGB: GLenum = 32969; pub const BLUE_BITS: GLenum = 3412; pub const BOOL: GLenum = 35670; pub const BOOL_VEC2: GLenum = 35671; pub const BOOL_VEC3: GLenum = 35672; pub const BOOL_VEC4: GLenum = 35673; pub const BROWSER_DEFAULT_WEBGL: GLenum = 37444; pub const BUFFER_SIZE: GLenum = 34660; pub const BUFFER_USAGE: GLenum = 34661; pub const BYTE: GLenum = 5120; pub const CCW: GLenum = 2305; pub const CLAMP_TO_EDGE: GLenum = 33071; pub const COLOR: GLenum = 6144; pub const COLOR_ATTACHMENT0: GLenum = 36064; pub const COLOR_ATTACHMENT1: GLenum = 36065; pub const COLOR_ATTACHMENT10: GLenum = 36074; pub const COLOR_ATTACHMENT11: GLenum = 36075; pub const COLOR_ATTACHMENT12: GLenum = 36076; pub const COLOR_ATTACHMENT13: GLenum = 36077; pub const COLOR_ATTACHMENT14: GLenum = 36078; pub const COLOR_ATTACHMENT15: GLenum = 36079; pub const COLOR_ATTACHMENT2: GLenum = 36066; pub const COLOR_ATTACHMENT3: GLenum = 36067; pub const COLOR_ATTACHMENT4: GLenum = 36068; pub const COLOR_ATTACHMENT5: GLenum = 36069; pub const COLOR_ATTACHMENT6: GLenum = 36070; pub const COLOR_ATTACHMENT7: GLenum = 36071; pub const COLOR_ATTACHMENT8: GLenum = 36072; pub const COLOR_ATTACHMENT9: GLenum = 36073; pub const COLOR_BUFFER_BIT: GLenum = 16384; pub const COLOR_CLEAR_VALUE: GLenum = 3106; pub const COLOR_WRITEMASK: GLenum = 3107; pub const COMPARE_REF_TO_TEXTURE: GLenum = 34894; pub const COMPILE_STATUS: GLenum = 35713; pub const COMPRESSED_TEXTURE_FORMATS: GLenum = 34467; pub const CONDITION_SATISFIED: GLenum = 37148; pub const CONSTANT_ALPHA: GLenum = 32771; pub const CONSTANT_COLOR: GLenum = 32769; pub const CONTEXT_LOST_WEBGL: GLenum = 37442; pub const COPY_READ_BUFFER: GLenum = 36662; pub const COPY_READ_BUFFER_BINDING: GLenum = 36662; pub const COPY_WRITE_BUFFER: GLenum = 36663; pub const COPY_WRITE_BUFFER_BINDING: GLenum = 36663; pub const CULL_FACE: GLenum = 2884; pub const CULL_FACE_MODE: GLenum = 2885; pub const CURRENT_PROGRAM: GLenum = 35725; pub const CURRENT_QUERY: GLenum = 34917; pub const CURRENT_VERTEX_ATTRIB: GLenum = 34342; pub const CW: GLenum = 2304; pub const DECR: GLenum = 7683; pub const DECR_WRAP: GLenum = 34056; pub const DELETE_STATUS: GLenum = 35712; pub const DEPTH: GLenum = 6145; pub const DEPTH24_STENCIL8: GLenum = 35056; pub const DEPTH32F_STENCIL8: GLenum = 36013; pub const DEPTH_ATTACHMENT: GLenum = 36096; pub const DEPTH_BITS: GLenum = 3414; pub const DEPTH_BUFFER_BIT: GLenum = 256; pub const DEPTH_CLEAR_VALUE: GLenum = 2931; pub const DEPTH_COMPONENT: GLenum = 6402; pub const DEPTH_COMPONENT16: GLenum = 33189; pub const DEPTH_COMPONENT24: GLenum = 33190; pub const DEPTH_COMPONENT32F: GLenum = 36012; pub const DEPTH_FUNC: GLenum = 2932; pub const DEPTH_RANGE: GLenum = 2928; pub const DEPTH_STENCIL: GLenum = 34041; pub const DEPTH_STENCIL_ATTACHMENT: GLenum = 33306; pub const DEPTH_TEST: GLenum = 2929; pub const DEPTH_WRITEMASK: GLenum = 2930; pub const DITHER: GLenum = 3024; pub const DONT_CARE: GLenum = 4352; pub const DRAW_BUFFER0: GLenum = 34853; pub const DRAW_BUFFER1: GLenum = 34854; pub const DRAW_BUFFER10: GLenum = 34863; pub const DRAW_BUFFER11: GLenum = 34864; pub const DRAW_BUFFER12: GLenum = 34865; pub const DRAW_BUFFER13: GLenum = 34866; pub const DRAW_BUFFER14: GLenum = 34867; pub const DRAW_BUFFER15: GLenum = 34868; pub const DRAW_BUFFER2: GLenum = 34855; pub const DRAW_BUFFER3: GLenum = 34856; pub const DRAW_BUFFER4: GLenum = 34857; pub const DRAW_BUFFER5: GLenum = 34858; pub const DRAW_BUFFER6: GLenum = 34859; pub const DRAW_BUFFER7: GLenum = 34860; pub const DRAW_BUFFER8: GLenum = 34861; pub const DRAW_BUFFER9: GLenum = 34862; pub const DRAW_FRAMEBUFFER: GLenum = 36009; pub const DRAW_FRAMEBUFFER_BINDING: GLenum = 36006; pub const DST_ALPHA: GLenum = 772; pub const DST_COLOR: GLenum = 774; pub const DYNAMIC_COPY: GLenum = 35050; pub const DYNAMIC_DRAW: GLenum = 35048; pub const DYNAMIC_READ: GLenum = 35049; pub const ELEMENT_ARRAY_BUFFER: GLenum = 34963; pub const ELEMENT_ARRAY_BUFFER_BINDING: GLenum = 34965; pub const EQUAL: GLenum = 514; pub const FASTEST: GLenum = 4353; pub const FLOAT: GLenum = 5126; pub const FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum = 36269; pub const FLOAT_MAT2: GLenum = 35674; pub const FLOAT_MAT2X3: GLenum = 35685; pub const FLOAT_MAT2X4: GLenum = 35686; pub const FLOAT_MAT3: GLenum = 35675; pub const FLOAT_MAT3X2: GLenum = 35687; pub const FLOAT_MAT3X4: GLenum = 35688; pub const FLOAT_MAT4: GLenum = 35676; pub const FLOAT_MAT4X2: GLenum = 35689; pub const FLOAT_MAT4X3: GLenum = 35690; pub const FLOAT_VEC2: GLenum = 35664; pub const FLOAT_VEC3: GLenum = 35665; pub const FLOAT_VEC4: GLenum = 35666; pub const FRAGMENT_SHADER: GLenum = 35632; pub const FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum = 35723; pub const FRAMEBUFFER: GLenum = 36160; pub const FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum = 33301; pub const FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum = 33300; pub const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum = 33296; pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum = 33297; pub const FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum = 33302; pub const FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum = 33299; pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum = 36049; pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum = 36048; pub const FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum = 33298; pub const FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum = 33303; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum = 36051; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum = 36052; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum = 36050; pub const FRAMEBUFFER_BINDING: GLenum = 36006; pub const FRAMEBUFFER_COMPLETE: GLenum = 36053; pub const FRAMEBUFFER_DEFAULT: GLenum = 33304; pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum = 36054; pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum = 36057; pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum = 36055; pub const FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum = 36182; pub const FRAMEBUFFER_UNSUPPORTED: GLenum = 36061; pub const FRONT: GLenum = 1028; pub const FRONT_AND_BACK: GLenum = 1032; pub const FRONT_FACE: GLenum = 2886; pub const FUNC_ADD: GLenum = 32774; pub const FUNC_REVERSE_SUBTRACT: GLenum = 32779; pub const FUNC_SUBTRACT: GLenum = 32778; pub const GENERATE_MIPMAP_HINT: GLenum = 33170; pub const GEQUAL: GLenum = 518; pub const GREATER: GLenum = 516; pub const GREEN_BITS: GLenum = 3411; pub const HALF_FLOAT: GLenum = 5131; pub const HIGH_FLOAT: GLenum = 36338; pub const HIGH_INT: GLenum = 36341; pub const IMPLEMENTATION_COLOR_READ_FORMAT: GLenum = 35739; pub const IMPLEMENTATION_COLOR_READ_TYPE: GLenum = 35738; pub const INCR: GLenum = 7682; pub const INCR_WRAP: GLenum = 34055; pub const INT: GLenum = 5124; pub const INTERLEAVED_ATTRIBS: GLenum = 35980; pub const INT_2_10_10_10_REV: GLenum = 36255; pub const INT_SAMPLER_2D: GLenum = 36298; pub const INT_SAMPLER_2D_ARRAY: GLenum = 36303; pub const INT_SAMPLER_3D: GLenum = 36299; pub const INT_SAMPLER_CUBE: GLenum = 36300; pub const INT_VEC2: GLenum = 35667; pub const INT_VEC3: GLenum = 35668; pub const INT_VEC4: GLenum = 35669; pub const INVALID_ENUM: GLenum = 1280; pub const INVALID_FRAMEBUFFER_OPERATION: GLenum = 1286; pub const INVALID_INDEX: GLenum = 4294967295; pub const INVALID_OPERATION: GLenum = 1282; pub const INVALID_VALUE: GLenum = 1281; pub const INVERT: GLenum = 5386; pub const KEEP: GLenum = 7680; pub const LEQUAL: GLenum = 515; pub const LESS: GLenum = 513; pub const LINEAR: GLenum = 9729; pub const LINEAR_MIPMAP_LINEAR: GLenum = 9987; pub const LINEAR_MIPMAP_NEAREST: GLenum = 9985; pub const LINES: GLenum = 1; pub const LINE_LOOP: GLenum = 2; pub const LINE_STRIP: GLenum = 3; pub const LINE_WIDTH: GLenum = 2849; pub const LINK_STATUS: GLenum = 35714; pub const LOW_FLOAT: GLenum = 36336; pub const LOW_INT: GLenum = 36339; pub const LUMINANCE: GLenum = 6409; pub const LUMINANCE_ALPHA: GLenum = 6410; pub const MAX: GLenum = 32776; pub const MAX_3D_TEXTURE_SIZE: GLenum = 32883; pub const MAX_ARRAY_TEXTURE_LAYERS: GLenum = 35071; pub const MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum = 37447; pub const MAX_COLOR_ATTACHMENTS: GLenum = 36063; pub const MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum = 35379; pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum = 35661; pub const MAX_COMBINED_UNIFORM_BLOCKS: GLenum = 35374; pub const MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum = 35377; pub const MAX_CUBE_MAP_TEXTURE_SIZE: GLenum = 34076; pub const MAX_DRAW_BUFFERS: GLenum = 34852; pub const MAX_ELEMENTS_INDICES: GLenum = 33001; pub const MAX_ELEMENTS_VERTICES: GLenum = 33000; pub const MAX_ELEMENT_INDEX: GLenum = 36203; pub const MAX_FRAGMENT_INPUT_COMPONENTS: GLenum = 37157; pub const MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum = 35373; pub const MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum = 35657; pub const MAX_FRAGMENT_UNIFORM_VECTORS: GLenum = 36349; pub const MAX_PROGRAM_TEXEL_OFFSET: GLenum = 35077; pub const MAX_RENDERBUFFER_SIZE: GLenum = 34024; pub const MAX_SAMPLES: GLenum = 36183; pub const MAX_SERVER_WAIT_TIMEOUT: GLenum = 37137; pub const MAX_TEXTURE_IMAGE_UNITS: GLenum = 34930; pub const MAX_TEXTURE_LOD_BIAS: GLenum = 34045; pub const MAX_TEXTURE_SIZE: GLenum = 3379; pub const MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum = 35978; pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum = 35979; pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum = 35968; pub const MAX_UNIFORM_BLOCK_SIZE: GLenum = 35376; pub const MAX_UNIFORM_BUFFER_BINDINGS: GLenum = 35375; pub const MAX_VARYING_COMPONENTS: GLenum = 35659; pub const MAX_VARYING_VECTORS: GLenum = 36348; pub const MAX_VERTEX_ATTRIBS: GLenum = 34921; pub const MAX_VERTEX_OUTPUT_COMPONENTS: GLenum = 37154; pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum = 35660; pub const MAX_VERTEX_UNIFORM_BLOCKS: GLenum = 35371; pub const MAX_VERTEX_UNIFORM_COMPONENTS: GLenum = 35658; pub const MAX_VERTEX_UNIFORM_VECTORS: GLenum = 36347; pub const MAX_VIEWPORT_DIMS: GLenum = 3386; pub const MEDIUM_FLOAT: GLenum = 36337; pub const MEDIUM_INT: GLenum = 36340; pub const MIN: GLenum = 32775; pub const MIN_PROGRAM_TEXEL_OFFSET: GLenum = 35076; pub const MIRRORED_REPEAT: GLenum = 33648; pub const NEAREST: GLenum = 9728; pub const NEAREST_MIPMAP_LINEAR: GLenum = 9986; pub const NEAREST_MIPMAP_NEAREST: GLenum = 9984; pub const NEVER: GLenum = 512; pub const NICEST: GLenum = 4354; pub const NONE: GLenum = 0; pub const NOTEQUAL: GLenum = 517; pub const NO_ERROR: GLenum = 0; pub const OBJECT_TYPE: GLenum = 37138; pub const ONE: GLenum = 1; pub const ONE_MINUS_CONSTANT_ALPHA: GLenum = 32772; pub const ONE_MINUS_CONSTANT_COLOR: GLenum = 32770; pub const ONE_MINUS_DST_ALPHA: GLenum = 773; pub const ONE_MINUS_DST_COLOR: GLenum = 775; pub const ONE_MINUS_SRC_ALPHA: GLenum = 771; pub const ONE_MINUS_SRC_COLOR: GLenum = 769; pub const OUT_OF_MEMORY: GLenum = 1285; pub const PACK_ALIGNMENT: GLenum = 3333; pub const PACK_ROW_LENGTH: GLenum = 3330; pub const PACK_SKIP_PIXELS: GLenum = 3332; pub const PACK_SKIP_ROWS: GLenum = 3331; pub const PIXEL_PACK_BUFFER: GLenum = 35051; pub const PIXEL_PACK_BUFFER_BINDING: GLenum = 35053; pub const PIXEL_UNPACK_BUFFER: GLenum = 35052; pub const PIXEL_UNPACK_BUFFER_BINDING: GLenum = 35055; pub const POINTS: GLenum = 0; pub const POLYGON_OFFSET_FACTOR: GLenum = 32824; pub const POLYGON_OFFSET_FILL: GLenum = 32823; pub const POLYGON_OFFSET_UNITS: GLenum = 10752; pub const QUERY_RESULT: GLenum = 34918; pub const QUERY_RESULT_AVAILABLE: GLenum = 34919; pub const R11F_G11F_B10F: GLenum = 35898; pub const R16F: GLenum = 33325; pub const R16I: GLenum = 33331; pub const R16UI: GLenum = 33332; pub const R32F: GLenum = 33326; pub const R32I: GLenum = 33333; pub const R32UI: GLenum = 33334; pub const R8: GLenum = 33321; pub const R8I: GLenum = 33329; pub const R8UI: GLenum = 33330; pub const R8_SNORM: GLenum = 36756; pub const RASTERIZER_DISCARD: GLenum = 35977; pub const READ_BUFFER: GLenum = 3074; pub const READ_FRAMEBUFFER: GLenum = 36008; pub const READ_FRAMEBUFFER_BINDING: GLenum = 36010; pub const RED: GLenum = 6403; pub const RED_BITS: GLenum = 3410; pub const RED_INTEGER: GLenum = 36244; pub const RENDERBUFFER: GLenum = 36161; pub const RENDERBUFFER_ALPHA_SIZE: GLenum = 36179; pub const RENDERBUFFER_BINDING: GLenum = 36007; pub const RENDERBUFFER_BLUE_SIZE: GLenum = 36178; pub const RENDERBUFFER_DEPTH_SIZE: GLenum = 36180; pub const RENDERBUFFER_GREEN_SIZE: GLenum = 36177; pub const RENDERBUFFER_HEIGHT: GLenum = 36163; pub const RENDERBUFFER_INTERNAL_FORMAT: GLenum = 36164; pub const RENDERBUFFER_RED_SIZE: GLenum = 36176; pub const RENDERBUFFER_SAMPLES: GLenum = 36011; pub const RENDERBUFFER_STENCIL_SIZE: GLenum = 36181; pub const RENDERBUFFER_WIDTH: GLenum = 36162; pub const RENDERER: GLenum = 7937; pub const REPEAT: GLenum = 10497; pub const REPLACE: GLenum = 7681; pub const RG: GLenum = 33319; pub const RG16F: GLenum = 33327; pub const RG16I: GLenum = 33337; pub const RG16UI: GLenum = 33338; pub const RG32F: GLenum = 33328; pub const RG32I: GLenum = 33339; pub const RG32UI: GLenum = 33340; pub const RG8: GLenum = 33323; pub const RG8I: GLenum = 33335; pub const RG8UI: GLenum = 33336; pub const RG8_SNORM: GLenum = 36757; pub const RGB: GLenum = 6407; pub const RGB10_A2: GLenum = 32857; pub const RGB10_A2UI: GLenum = 36975; pub const RGB16F: GLenum = 34843; pub const RGB16I: GLenum = 36233; pub const RGB16UI: GLenum = 36215; pub const RGB32F: GLenum = 34837; pub const RGB32I: GLenum = 36227; pub const RGB32UI: GLenum = 36209; pub const RGB565: GLenum = 36194; pub const RGB5_A1: GLenum = 32855; pub const RGB8: GLenum = 32849; pub const RGB8I: GLenum = 36239; pub const RGB8UI: GLenum = 36221; pub const RGB8_SNORM: GLenum = 36758; pub const RGB9_E5: GLenum = 35901; pub const RGBA: GLenum = 6408; pub const RGBA16F: GLenum = 34842; pub const RGBA16I: GLenum = 36232; pub const RGBA16UI: GLenum = 36214; pub const RGBA32F: GLenum = 34836; pub const RGBA32I: GLenum = 36226; pub const RGBA32UI: GLenum = 36208; pub const RGBA4: GLenum = 32854; pub const RGBA8: GLenum = 32856; pub const RGBA8I: GLenum = 36238; pub const RGBA8UI: GLenum = 36220; pub const RGBA8_SNORM: GLenum = 36759; pub const RGBA_INTEGER: GLenum = 36249; pub const RGB_INTEGER: GLenum = 36248; pub const RG_INTEGER: GLenum = 33320; pub const SAMPLER_2D: GLenum = 35678; pub const SAMPLER_2D_ARRAY: GLenum = 36289; pub const SAMPLER_2D_ARRAY_SHADOW: GLenum = 36292; pub const SAMPLER_2D_SHADOW: GLenum = 35682; pub const SAMPLER_3D: GLenum = 35679; pub const SAMPLER_BINDING: GLenum = 35097; pub const SAMPLER_CUBE: GLenum = 35680; pub const SAMPLER_CUBE_SHADOW: GLenum = 36293; pub const SAMPLES: GLenum = 32937; pub const SAMPLE_ALPHA_TO_COVERAGE: GLenum = 32926; pub const SAMPLE_BUFFERS: GLenum = 32936; pub const SAMPLE_COVERAGE: GLenum = 32928; pub const SAMPLE_COVERAGE_INVERT: GLenum = 32939; pub const SAMPLE_COVERAGE_VALUE: GLenum = 32938; pub const SCISSOR_BOX: GLenum = 3088; pub const SCISSOR_TEST: GLenum = 3089; pub const SEPARATE_ATTRIBS: GLenum = 35981; pub const SHADER_TYPE: GLenum = 35663; pub const SHADING_LANGUAGE_VERSION: GLenum = 35724; pub const SHORT: GLenum = 5122; pub const SIGNALED: GLenum = 37145; pub const SIGNED_NORMALIZED: GLenum = 36764; pub const SRC_ALPHA: GLenum = 770; pub const SRC_ALPHA_SATURATE: GLenum = 776; pub const SRC_COLOR: GLenum = 768; pub const SRGB: GLenum = 35904; pub const SRGB8: GLenum = 35905; pub const SRGB8_ALPHA8: GLenum = 35907; pub const STATIC_COPY: GLenum = 35046; pub const STATIC_DRAW: GLenum = 35044; pub const STATIC_READ: GLenum = 35045; pub const STENCIL: GLenum = 6146; pub const STENCIL_ATTACHMENT: GLenum = 36128; pub const STENCIL_BACK_FAIL: GLenum = 34817; pub const STENCIL_BACK_FUNC: GLenum = 34816; pub const STENCIL_BACK_PASS_DEPTH_FAIL: GLenum = 34818; pub const STENCIL_BACK_PASS_DEPTH_PASS: GLenum = 34819; pub const STENCIL_BACK_REF: GLenum = 36003; pub const STENCIL_BACK_VALUE_MASK: GLenum = 36004; pub const STENCIL_BACK_WRITEMASK: GLenum = 36005; pub const STENCIL_BITS: GLenum = 3415; pub const STENCIL_BUFFER_BIT: GLenum = 1024; pub const STENCIL_CLEAR_VALUE: GLenum = 2961; pub const STENCIL_FAIL: GLenum = 2964; pub const STENCIL_FUNC: GLenum = 2962; pub const STENCIL_INDEX8: GLenum = 36168; pub const STENCIL_PASS_DEPTH_FAIL: GLenum = 2965; pub const STENCIL_PASS_DEPTH_PASS: GLenum = 2966; pub const STENCIL_REF: GLenum = 2967; pub const STENCIL_TEST: GLenum = 2960; pub const STENCIL_VALUE_MASK: GLenum = 2963; pub const STENCIL_WRITEMASK: GLenum = 2968; pub const STREAM_COPY: GLenum = 35042; pub const STREAM_DRAW: GLenum = 35040; pub const STREAM_READ: GLenum = 35041; pub const SUBPIXEL_BITS: GLenum = 3408; pub const SYNC_CONDITION: GLenum = 37139; pub const SYNC_FENCE: GLenum = 37142; pub const SYNC_FLAGS: GLenum = 37141; pub const SYNC_FLUSH_COMMANDS_BIT: GLenum = 1; pub const SYNC_GPU_COMMANDS_COMPLETE: GLenum = 37143; pub const SYNC_STATUS: GLenum = 37140; pub const TEXTURE: GLenum = 5890; pub const TEXTURE0: GLenum = 33984; pub const TEXTURE1: GLenum = 33985; pub const TEXTURE10: GLenum = 33994; pub const TEXTURE11: GLenum = 33995; pub const TEXTURE12: GLenum = 33996; pub const TEXTURE13: GLenum = 33997; pub const TEXTURE14: GLenum = 33998; pub const TEXTURE15: GLenum = 33999; pub const TEXTURE16: GLenum = 34000; pub const TEXTURE17: GLenum = 34001; pub const TEXTURE18: GLenum = 34002; pub const TEXTURE19: GLenum = 34003; pub const TEXTURE2: GLenum = 33986; pub const TEXTURE20: GLenum = 34004; pub const TEXTURE21: GLenum = 34005; pub const TEXTURE22: GLenum = 34006; pub const TEXTURE23: GLenum = 34007; pub const TEXTURE24: GLenum = 34008; pub const TEXTURE25: GLenum = 34009; pub const TEXTURE26: GLenum = 34010; pub const TEXTURE27: GLenum = 34011; pub const TEXTURE28: GLenum = 34012; pub const TEXTURE29: GLenum = 34013; pub const TEXTURE3: GLenum = 33987; pub const TEXTURE30: GLenum = 34014; pub const TEXTURE31: GLenum = 34015; pub const TEXTURE4: GLenum = 33988; pub const TEXTURE5: GLenum = 33989; pub const TEXTURE6: GLenum = 33990; pub const TEXTURE7: GLenum = 33991; pub const TEXTURE8: GLenum = 33992; pub const TEXTURE9: GLenum = 33993; pub const TEXTURE_2D: GLenum = 3553; pub const TEXTURE_2D_ARRAY: GLenum = 35866; pub const TEXTURE_3D: GLenum = 32879; pub const TEXTURE_BASE_LEVEL: GLenum = 33084; pub const TEXTURE_BINDING_2D: GLenum = 32873; pub const TEXTURE_BINDING_2D_ARRAY: GLenum = 35869; pub const TEXTURE_BINDING_3D: GLenum = 32874; pub const TEXTURE_BINDING_CUBE_MAP: GLenum = 34068; pub const TEXTURE_COMPARE_FUNC: GLenum = 34893; pub const TEXTURE_COMPARE_MODE: GLenum = 34892; pub const TEXTURE_CUBE_MAP: GLenum = 34067; pub const TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum = 34070; pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum = 34072; pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum = 34074; pub const TEXTURE_CUBE_MAP_POSITIVE_X: GLenum = 34069; pub const TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum = 34071; pub const TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum = 34073; pub const TEXTURE_IMMUTABLE_FORMAT: GLenum = 37167; pub const TEXTURE_IMMUTABLE_LEVELS: GLenum = 33503; pub const TEXTURE_MAG_FILTER: GLenum = 10240; pub const TEXTURE_MAX_LEVEL: GLenum = 33085; pub const TEXTURE_MAX_LOD: GLenum = 33083; pub const TEXTURE_MIN_FILTER: GLenum = 10241; pub const TEXTURE_MIN_LOD: GLenum = 33082; pub const TEXTURE_WRAP_R: GLenum = 32882; pub const TEXTURE_WRAP_S: GLenum = 10242; pub const TEXTURE_WRAP_T: GLenum = 10243; pub const TIMEOUT_EXPIRED: GLenum = 37147; pub const TIMEOUT_IGNORED: GLint64 = -1; pub const TRANSFORM_FEEDBACK: GLenum = 36386; pub const TRANSFORM_FEEDBACK_ACTIVE: GLenum = 36388; pub const TRANSFORM_FEEDBACK_BINDING: GLenum = 36389; pub const TRANSFORM_FEEDBACK_BUFFER: GLenum = 35982; pub const TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum = 35983; pub const TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum = 35967; pub const TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum = 35973; pub const TRANSFORM_FEEDBACK_BUFFER_START: GLenum = 35972; pub const TRANSFORM_FEEDBACK_PAUSED: GLenum = 36387; pub const TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum = 35976; pub const TRANSFORM_FEEDBACK_VARYINGS: GLenum = 35971; pub const TRIANGLES: GLenum = 4; pub const TRIANGLE_FAN: GLenum = 6; pub const TRIANGLE_STRIP: GLenum = 5; pub const UNIFORM_ARRAY_STRIDE: GLenum = 35388; pub const UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum = 35394; pub const UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum = 35395; pub const UNIFORM_BLOCK_BINDING: GLenum = 35391; pub const UNIFORM_BLOCK_DATA_SIZE: GLenum = 35392; pub const UNIFORM_BLOCK_INDEX: GLenum = 35386; pub const UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum = 35398; pub const UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum = 35396; pub const UNIFORM_BUFFER: GLenum = 35345; pub const UNIFORM_BUFFER_BINDING: GLenum = 35368; pub const UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum = 35380; pub const UNIFORM_BUFFER_SIZE: GLenum = 35370; pub const UNIFORM_BUFFER_START: GLenum = 35369; pub const UNIFORM_IS_ROW_MAJOR: GLenum = 35390; pub const UNIFORM_MATRIX_STRIDE: GLenum = 35389; pub const UNIFORM_OFFSET: GLenum = 35387; pub const UNIFORM_SIZE: GLenum = 35384; pub const UNIFORM_TYPE: GLenum = 35383; pub const UNPACK_ALIGNMENT: GLenum = 3317; pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum = 37443; pub const UNPACK_FLIP_Y_WEBGL: GLenum = 37440; pub const UNPACK_IMAGE_HEIGHT: GLenum = 32878; pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum = 37441; pub const UNPACK_ROW_LENGTH: GLenum = 3314; pub const UNPACK_SKIP_IMAGES: GLenum = 32877; pub const UNPACK_SKIP_PIXELS: GLenum = 3316; pub const UNPACK_SKIP_ROWS: GLenum = 3315; pub const UNSIGNALED: GLenum = 37144; pub const UNSIGNED_BYTE: GLenum = 5121; pub const UNSIGNED_INT: GLenum = 5125; pub const UNSIGNED_INT_10F_11F_11F_REV: GLenum = 35899; pub const UNSIGNED_INT_24_8: GLenum = 34042; pub const UNSIGNED_INT_2_10_10_10_REV: GLenum = 33640; pub const UNSIGNED_INT_5_9_9_9_REV: GLenum = 35902; pub const UNSIGNED_INT_SAMPLER_2D: GLenum = 36306; pub const UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum = 36311; pub const UNSIGNED_INT_SAMPLER_3D: GLenum = 36307; pub const UNSIGNED_INT_SAMPLER_CUBE: GLenum = 36308; pub const UNSIGNED_INT_VEC2: GLenum = 36294; pub const UNSIGNED_INT_VEC3: GLenum = 36295; pub const UNSIGNED_INT_VEC4: GLenum = 36296; pub const UNSIGNED_NORMALIZED: GLenum = 35863; pub const UNSIGNED_SHORT: GLenum = 5123; pub const UNSIGNED_SHORT_4_4_4_4: GLenum = 32819; pub const UNSIGNED_SHORT_5_5_5_1: GLenum = 32820; pub const UNSIGNED_SHORT_5_6_5: GLenum = 33635; pub const VALIDATE_STATUS: GLenum = 35715; pub const VENDOR: GLenum = 7936; pub const VERSION: GLenum = 7938; pub const VERTEX_ARRAY_BINDING: GLenum = 34229; pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum = 34975; pub const VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum = 35070; pub const VERTEX_ATTRIB_ARRAY_ENABLED: GLenum = 34338; pub const VERTEX_ATTRIB_ARRAY_INTEGER: GLenum = 35069; pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum = 34922; pub const VERTEX_ATTRIB_ARRAY_POINTER: GLenum = 34373; pub const VERTEX_ATTRIB_ARRAY_SIZE: GLenum = 34339; pub const VERTEX_ATTRIB_ARRAY_STRIDE: GLenum = 34340; pub const VERTEX_ATTRIB_ARRAY_TYPE: GLenum = 34341; pub const VERTEX_SHADER: GLenum = 35633; pub const VIEWPORT: GLenum = 2978; pub const WAIT_FAILED: GLenum = 37149; pub const ZERO: GLenum = 0; pub fn active_texture(&self, texture: GLenum) { js!( @(no_return) @{self}.activeTexture(@{texture}); ); } pub fn attach_shader(&self, program: &WebGLProgram, shader: &WebGLShader) { js!( @(no_return) @{self}.attachShader(@{program}, @{shader}); ); } pub fn begin_query(&self, target: GLenum, query: &WebGLQuery) { js!( @(no_return) @{self}.beginQuery(@{target}, @{query}); ); } pub fn begin_transform_feedback(&self, primitive_mode: GLenum) { js!( @(no_return) @{self}.beginTransformFeedback(@{primitive_mode}); ); } pub fn bind_attrib_location(&self, program: &WebGLProgram, index: GLuint, name: &str) { js!( @(no_return) @{self}.bindAttribLocation(@{program}, @{index}, @{name}); ); } pub fn bind_buffer(&self, target: GLenum, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.bindBuffer(@{target}, @{buffer}); ); } pub fn bind_buffer_base(&self, target: GLenum, index: GLuint, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.bindBufferBase(@{target}, @{index}, @{buffer}); ); } pub fn bind_buffer_range(&self, target: GLenum, index: GLuint, buffer: Option<&WebGLBuffer>, offset: GLintptr, size: GLsizeiptr) { js!( @(no_return) @{self}.bindBufferRange(@{target}, @{index}, @{buffer}, @{(offset as f64)}, @{(size as f64)}); ); } pub fn bind_framebuffer(&self, target: GLenum, framebuffer: Option<&WebGLFramebuffer>) { js!( @(no_return) @{self}.bindFramebuffer(@{target}, @{framebuffer}); ); } pub fn bind_renderbuffer(&self, target: GLenum, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.bindRenderbuffer(@{target}, @{renderbuffer}); ); } pub fn bind_sampler(&self, unit: GLuint, sampler: Option<&WebGLSampler>) { js!( @(no_return) @{self}.bindSampler(@{unit}, @{sampler}); ); } pub fn bind_texture(&self, target: GLenum, texture: Option<&WebGLTexture>) { js!( @(no_return) @{self}.bindTexture(@{target}, @{texture}); ); } pub fn bind_transform_feedback(&self, target: GLenum, tf: Option<&WebGLTransformFeedback>) { js!( @(no_return) @{self}.bindTransformFeedback(@{target}, @{tf}); ); } pub fn bind_vertex_array(&self, array: Option<&WebGLVertexArrayObject>) { js!( @(no_return) @{self}.bindVertexArray(@{array}); ); } pub fn blend_color(&self, red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf) { js!( @(no_return) @{self}.blendColor(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn blend_equation(&self, mode: GLenum) { js!( @(no_return) @{self}.blendEquation(@{mode}); ); } pub fn blend_equation_separate(&self, mode_rgb: GLenum, mode_alpha: GLenum) { js!( @(no_return) @{self}.blendEquationSeparate(@{mode_rgb}, @{mode_alpha}); ); } pub fn blend_func(&self, sfactor: GLenum, dfactor: GLenum) { js!( @(no_return) @{self}.blendFunc(@{sfactor}, @{dfactor}); ); } pub fn blend_func_separate(&self, src_rgb: GLenum, dst_rgb: GLenum, src_alpha: GLenum, dst_alpha: GLenum) { js!( @(no_return) @{self}.blendFuncSeparate(@{src_rgb}, @{dst_rgb}, @{src_alpha}, @{dst_alpha}); ); } pub fn blit_framebuffer(&self, src_x0: GLint, src_y0: GLint, src_x1: GLint, src_y1: GLint, dst_x0: GLint, dst_y0: GLint, dst_x1: GLint, dst_y1: GLint, mask: GLbitfield, filter: GLenum) { js!( @(no_return) @{self}.blitFramebuffer(@{src_x0}, @{src_y0}, @{src_x1}, @{src_y1}, @{dst_x0}, @{dst_y0}, @{dst_x1}, @{dst_y1}, @{mask}, @{filter}); ); } pub fn buffer_data(&self, target: GLenum, size: GLsizeiptr, usage: GLenum) { js!( @(no_return) @{self}.bufferData(@{target}, @{(size as f64)}, @{usage}); ); } pub fn buffer_data_1(&self, target: GLenum, src_data: Option<&ArrayBuffer>, usage: GLenum) { js!( @(no_return) @{self}.bufferData(@{target}, @{src_data}, @{usage}); ); } pub fn buffer_data_2<'a0, T0>(&self, target: GLenum, src_data: T0, usage: GLenum, src_offset: GLuint, length: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.bufferData(@{target}, @{unsafe { src_data.as_array_buffer_view() }}, @{usage}, @{src_offset}, @{length}); ); } pub fn buffer_sub_data(&self, target: GLenum, dst_byte_offset: GLintptr, src_data: &ArrayBuffer) { js!( @(no_return) @{self}.bufferSubData(@{target}, @{(dst_byte_offset as f64)}, @{src_data}); ); } pub fn buffer_sub_data_1<'a0, T0>(&self, target: GLenum, dst_byte_offset: GLintptr, src_data: T0, src_offset: GLuint, length: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.bufferSubData(@{target}, @{(dst_byte_offset as f64)}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{length}); ); } pub fn canvas(&self) -> CanvasElement { (js! { return @{self}.canvas; } ).try_into().unwrap() } pub fn check_framebuffer_status(&self, target: GLenum) -> GLenum { (js! { return @{self}.checkFramebufferStatus(@{target}); } ).try_into().unwrap() } pub fn clear(&self, mask: GLbitfield) { js!( @(no_return) @{self}.clear(@{mask}); ); } pub fn clear_bufferfi(&self, buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint) { js!( @(no_return) @{self}.clearBufferfi(@{buffer}, @{drawbuffer}, @{depth}, @{stencil}); ); } pub fn clear_bufferfv<'a0, T0>(&self, buffer: GLenum, drawbuffer: GLint, values: T0, src_offset: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.clearBufferfv(@{buffer}, @{drawbuffer}, @{unsafe { values.as_typed_array() }}, @{src_offset}); ); } pub fn clear_bufferiv<'a0, T0>(&self, buffer: GLenum, drawbuffer: GLint, values: T0, src_offset: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.clearBufferiv(@{buffer}, @{drawbuffer}, @{unsafe { values.as_typed_array() }}, @{src_offset}); ); } pub fn clear_bufferuiv<'a0, T0>(&self, buffer: GLenum, drawbuffer: GLint, values: T0, src_offset: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.clearBufferuiv(@{buffer}, @{drawbuffer}, @{unsafe { values.as_typed_array() }}, @{src_offset}); ); } pub fn clear_color(&self, red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf) { js!( @(no_return) @{self}.clearColor(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn clear_depth(&self, depth: GLclampf) { js!( @(no_return) @{self}.clearDepth(@{depth}); ); } pub fn clear_stencil(&self, s: GLint) { js!( @(no_return) @{self}.clearStencil(@{s}); ); } pub fn client_wait_sync(&self, sync: &WebGLSync, flags: GLbitfield, timeout: GLuint64) -> GLenum { (js! { return @{self}.clientWaitSync(@{sync}, @{flags}, @{(timeout as f64)}); } ).try_into().unwrap() } pub fn color_mask(&self, red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean) { js!( @(no_return) @{self}.colorMask(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn compile_shader(&self, shader: &WebGLShader) { js!( @(no_return) @{self}.compileShader(@{shader}); ); } pub fn compressed_tex_image2_d(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_image2_d_1<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn compressed_tex_image2_d_2<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: T0) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{unsafe { data.as_array_buffer_view() }}); ); } pub fn compressed_tex_image3_d(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_image3_d_1<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn compressed_tex_sub_image2_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_sub_image2_d_1<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn compressed_tex_sub_image2_d_2<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: T0) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{unsafe { data.as_array_buffer_view() }}); ); } pub fn compressed_tex_sub_image3_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_sub_image3_d_1<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn copy_buffer_sub_data(&self, read_target: GLenum, write_target: GLenum, read_offset: GLintptr, write_offset: GLintptr, size: GLsizeiptr) { js!( @(no_return) @{self}.copyBufferSubData(@{read_target}, @{write_target}, @{(read_offset as f64)}, @{(write_offset as f64)}, @{(size as f64)}); ); } pub fn copy_tex_image2_d(&self, target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint) { js!( @(no_return) @{self}.copyTexImage2D(@{target}, @{level}, @{internalformat}, @{x}, @{y}, @{width}, @{height}, @{border}); ); } pub fn copy_tex_sub_image2_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.copyTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{x}, @{y}, @{width}, @{height}); ); } pub fn copy_tex_sub_image3_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.copyTexSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{x}, @{y}, @{width}, @{height}); ); } pub fn create_buffer(&self, ) -> Option<WebGLBuffer> { (js! { return @{self}.createBuffer(); } ).try_into().ok() } pub fn create_framebuffer(&self, ) -> Option<WebGLFramebuffer> { (js! { return @{self}.createFramebuffer(); } ).try_into().ok() } pub fn create_program(&self, ) -> Option<WebGLProgram> { (js! { return @{self}.createProgram(); } ).try_into().ok() } pub fn create_query(&self, ) -> Option<WebGLQuery> { (js! { return @{self}.createQuery(); } ).try_into().ok() } pub fn create_renderbuffer(&self, ) -> Option<WebGLRenderbuffer> { (js! { return @{self}.createRenderbuffer(); } ).try_into().ok() } pub fn create_sampler(&self, ) -> Option<WebGLSampler> { (js! { return @{self}.createSampler(); } ).try_into().ok() } pub fn create_shader(&self, type_: GLenum) -> Option<WebGLShader> { (js! { return @{self}.createShader(@{type_}); } ).try_into().ok() } pub fn create_texture(&self, ) -> Option<WebGLTexture> { (js! { return @{self}.createTexture(); } ).try_into().ok() } pub fn create_transform_feedback(&self, ) -> Option<WebGLTransformFeedback> { (js! { return @{self}.createTransformFeedback(); } ).try_into().ok() } pub fn create_vertex_array(&self, ) -> Option<WebGLVertexArrayObject> { (js! { return @{self}.createVertexArray(); } ).try_into().ok() } pub fn cull_face(&self, mode: GLenum) { js!( @(no_return) @{self}.cullFace(@{mode}); ); } pub fn delete_buffer(&self, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.deleteBuffer(@{buffer}); ); } pub fn delete_framebuffer(&self, framebuffer: Option<&WebGLFramebuffer>) { js!( @(no_return) @{self}.deleteFramebuffer(@{framebuffer}); ); } pub fn delete_program(&self, program: Option<&WebGLProgram>) { js!( @(no_return) @{self}.deleteProgram(@{program}); ); } pub fn delete_query(&self, query: Option<&WebGLQuery>) { js!( @(no_return) @{self}.deleteQuery(@{query}); ); } pub fn delete_renderbuffer(&self, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.deleteRenderbuffer(@{renderbuffer}); ); } pub fn delete_sampler(&self, sampler: Option<&WebGLSampler>) { js!( @(no_return) @{self}.deleteSampler(@{sampler}); ); } pub fn delete_shader(&self, shader: Option<&WebGLShader>) { js!( @(no_return) @{self}.deleteShader(@{shader}); ); } pub fn delete_sync(&self, sync: Option<&WebGLSync>) { js!( @(no_return) @{self}.deleteSync(@{sync}); ); } pub fn delete_texture(&self, texture: Option<&WebGLTexture>) { js!( @(no_return) @{self}.deleteTexture(@{texture}); ); } pub fn delete_transform_feedback(&self, tf: Option<&WebGLTransformFeedback>) { js!( @(no_return) @{self}.deleteTransformFeedback(@{tf}); ); } pub fn delete_vertex_array(&self, vertex_array: Option<&WebGLVertexArrayObject>) { js!( @(no_return) @{self}.deleteVertexArray(@{vertex_array}); ); } pub fn depth_func(&self, func: GLenum) { js!( @(no_return) @{self}.depthFunc(@{func}); ); } pub fn depth_mask(&self, flag: GLboolean) { js!( @(no_return) @{self}.depthMask(@{flag}); ); } pub fn depth_range(&self, z_near: GLclampf, z_far: GLclampf) { js!( @(no_return) @{self}.depthRange(@{z_near}, @{z_far}); ); } pub fn detach_shader(&self, program: &WebGLProgram, shader: &WebGLShader) { js!( @(no_return) @{self}.detachShader(@{program}, @{shader}); ); } pub fn disable(&self, cap: GLenum) { js!( @(no_return) @{self}.disable(@{cap}); ); } pub fn disable_vertex_attrib_array(&self, index: GLuint) { js!( @(no_return) @{self}.disableVertexAttribArray(@{index}); ); } pub fn draw_arrays(&self, mode: GLenum, first: GLint, count: GLsizei) { js!( @(no_return) @{self}.drawArrays(@{mode}, @{first}, @{count}); ); } pub fn draw_arrays_instanced(&self, mode: GLenum, first: GLint, count: GLsizei, instance_count: GLsizei) { js!( @(no_return) @{self}.drawArraysInstanced(@{mode}, @{first}, @{count}, @{instance_count}); ); } pub fn draw_buffers(&self, buffers: &[GLenum]) { js!( @(no_return) @{self}.drawBuffers(@{buffers}); ); } pub fn draw_elements(&self, mode: GLenum, count: GLsizei, type_: GLenum, offset: GLintptr) { js!( @(no_return) @{self}.drawElements(@{mode}, @{count}, @{type_}, @{(offset as f64)}); ); } pub fn draw_elements_instanced(&self, mode: GLenum, count: GLsizei, type_: GLenum, offset: GLintptr, instance_count: GLsizei) { js!( @(no_return) @{self}.drawElementsInstanced(@{mode}, @{count}, @{type_}, @{(offset as f64)}, @{instance_count}); ); } pub fn draw_range_elements(&self, mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type_: GLenum, offset: GLintptr) { js!( @(no_return) @{self}.drawRangeElements(@{mode}, @{start}, @{end}, @{count}, @{type_}, @{(offset as f64)}); ); } pub fn drawing_buffer_height(&self) -> GLsizei { (js! { return @{self}.drawingBufferHeight; } ).try_into().unwrap() } pub fn drawing_buffer_width(&self) -> GLsizei { (js! { return @{self}.drawingBufferWidth; } ).try_into().unwrap() } pub fn enable(&self, cap: GLenum) { js!( @(no_return) @{self}.enable(@{cap}); ); } pub fn enable_vertex_attrib_array(&self, index: GLuint) { js!( @(no_return) @{self}.enableVertexAttribArray(@{index}); ); } pub fn end_query(&self, target: GLenum) { js!( @(no_return) @{self}.endQuery(@{target}); ); } pub fn end_transform_feedback(&self, ) { js!( @(no_return) @{self}.endTransformFeedback(); ); } pub fn fence_sync(&self, condition: GLenum, flags: GLbitfield) -> Option<WebGLSync> { (js! { return @{self}.fenceSync(@{condition}, @{flags}); } ).try_into().ok() } pub fn finish(&self, ) { js!( @(no_return) @{self}.finish(); ); } pub fn flush(&self, ) { js!( @(no_return) @{self}.flush(); ); } pub fn framebuffer_renderbuffer(&self, target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.framebufferRenderbuffer(@{target}, @{attachment}, @{renderbuffertarget}, @{renderbuffer}); ); } pub fn framebuffer_texture2_d(&self, target: GLenum, attachment: GLenum, textarget: GLenum, texture: Option<&WebGLTexture>, level: GLint) { js!( @(no_return) @{self}.framebufferTexture2D(@{target}, @{attachment}, @{textarget}, @{texture}, @{level}); ); } pub fn framebuffer_texture_layer(&self, target: GLenum, attachment: GLenum, texture: Option<&WebGLTexture>, level: GLint, layer: GLint) { js!( @(no_return) @{self}.framebufferTextureLayer(@{target}, @{attachment}, @{texture}, @{level}, @{layer}); ); } pub fn front_face(&self, mode: GLenum) { js!( @(no_return) @{self}.frontFace(@{mode}); ); } pub fn generate_mipmap(&self, target: GLenum) { js!( @(no_return) @{self}.generateMipmap(@{target}); ); } pub fn get_active_attrib(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getActiveAttrib(@{program}, @{index}); } ).try_into().ok() } pub fn get_active_uniform(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getActiveUniform(@{program}, @{index}); } ).try_into().ok() } pub fn get_active_uniform_block_name(&self, program: &WebGLProgram, uniform_block_index: GLuint) -> Option<String> { (js! { return @{self}.getActiveUniformBlockName(@{program}, @{uniform_block_index}); } ).try_into().ok() } pub fn get_active_uniform_block_parameter(&self, program: &WebGLProgram, uniform_block_index: GLuint, pname: GLenum) -> Value { (js! { return @{self}.getActiveUniformBlockParameter(@{program}, @{uniform_block_index}, @{pname}); } ).try_into().unwrap() } pub fn get_active_uniforms(&self, program: &WebGLProgram, uniform_indices: &[GLuint], pname: GLenum) -> Value { (js! { return @{self}.getActiveUniforms(@{program}, @{uniform_indices}, @{pname}); } ).try_into().unwrap() } pub fn get_attached_shaders(&self, program: &WebGLProgram) -> Option<Vec<WebGLShader>> { (js! { return @{self}.getAttachedShaders(@{program}); } ).try_into().ok() } pub fn get_attrib_location(&self, program: &WebGLProgram, name: &str) -> GLint { (js! { return @{self}.getAttribLocation(@{program}, @{name}); } ).try_into().unwrap() } pub fn get_buffer_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getBufferParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_buffer_sub_data<'a0, T0>(&self, target: GLenum, src_byte_offset: GLintptr, dst_buffer: T0, dst_offset: GLuint, length: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.getBufferSubData(@{target}, @{(src_byte_offset as f64)}, @{unsafe { dst_buffer.as_array_buffer_view() }}, @{dst_offset}, @{length}); ); } pub fn get_context_attributes(&self, ) -> Option<WebGLContextAttributes> { (js! { return @{self}.getContextAttributes(); } ).try_into().ok() } pub fn get_error(&self, ) -> GLenum { (js! { return @{self}.getError(); } ).try_into().unwrap() } pub fn get_extension<E: Extension>(&self) -> Option<E> { (js! { return @{self}.getExtension(@{E::NAME}); } ).try_into().ok() } pub fn get_frag_data_location(&self, program: &WebGLProgram, name: &str) -> GLint { (js! { return @{self}.getFragDataLocation(@{program}, @{name}); } ).try_into().unwrap() } pub fn get_framebuffer_attachment_parameter(&self, target: GLenum, attachment: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getFramebufferAttachmentParameter(@{target}, @{attachment}, @{pname}); } ).try_into().unwrap() } pub fn get_indexed_parameter(&self, target: GLenum, index: GLuint) -> Value { (js! { return @{self}.getIndexedParameter(@{target}, @{index}); } ).try_into().unwrap() } pub fn get_internalformat_parameter(&self, target: GLenum, internalformat: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getInternalformatParameter(@{target}, @{internalformat}, @{pname}); } ).try_into().unwrap() } pub fn get_parameter(&self, pname: GLenum) -> Value { (js! { return @{self}.getParameter(@{pname}); } ).try_into().unwrap() } pub fn get_program_info_log(&self, program: &WebGLProgram) -> Option<String> { (js! { return @{self}.getProgramInfoLog(@{program}); } ).try_into().ok() } pub fn get_program_parameter(&self, program: &WebGLProgram, pname: GLenum) -> Value { (js! { return @{self}.getProgramParameter(@{program}, @{pname}); } ).try_into().unwrap() } pub fn get_query(&self, target: GLenum, pname: GLenum) -> Option<WebGLQuery> { (js! { return @{self}.getQuery(@{target}, @{pname}); } ).try_into().ok() } pub fn get_query_parameter(&self, query: &WebGLQuery, pname: GLenum) -> Value { (js! { return @{self}.getQueryParameter(@{query}, @{pname}); } ).try_into().unwrap() } pub fn get_renderbuffer_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getRenderbufferParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_sampler_parameter(&self, sampler: &WebGLSampler, pname: GLenum) -> Value { (js! { return @{self}.getSamplerParameter(@{sampler}, @{pname}); } ).try_into().unwrap() } pub fn get_shader_info_log(&self, shader: &WebGLShader) -> Option<String> { (js! { return @{self}.getShaderInfoLog(@{shader}); } ).try_into().ok() } pub fn get_shader_parameter(&self, shader: &WebGLShader, pname: GLenum) -> Value { (js! { return @{self}.getShaderParameter(@{shader}, @{pname}); } ).try_into().unwrap() } pub fn get_shader_precision_format(&self, shadertype: GLenum, precisiontype: GLenum) -> Option<WebGLShaderPrecisionFormat> { (js! { return @{self}.getShaderPrecisionFormat(@{shadertype}, @{precisiontype}); } ).try_into().ok() } pub fn get_shader_source(&self, shader: &WebGLShader) -> Option<String> { (js! { return @{self}.getShaderSource(@{shader}); } ).try_into().ok() } pub fn get_supported_extensions(&self, ) -> Option<Vec<String>> { (js! { return @{self}.getSupportedExtensions(); } ).try_into().ok() } pub fn get_sync_parameter(&self, sync: &WebGLSync, pname: GLenum) -> Value { (js! { return @{self}.getSyncParameter(@{sync}, @{pname}); } ).try_into().unwrap() } pub fn get_tex_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getTexParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_transform_feedback_varying(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getTransformFeedbackVarying(@{program}, @{index}); } ).try_into().ok() } pub fn get_uniform(&self, program: &WebGLProgram, location: &WebGLUniformLocation) -> Value { (js! { return @{self}.getUniform(@{program}, @{location}); } ).try_into().unwrap() } pub fn get_uniform_block_index(&self, program: &WebGLProgram, uniform_block_name: &str) -> GLuint { (js! { return @{self}.getUniformBlockIndex(@{program}, @{uniform_block_name}); } ).try_into().unwrap() } pub fn get_uniform_indices(&self, program: &WebGLProgram, uniform_names: &[&str]) -> Option<Vec<GLuint>> { (js! { return @{self}.getUniformIndices(@{program}, @{uniform_names}); } ).try_into().ok() } pub fn get_uniform_location(&self, program: &WebGLProgram, name: &str) -> Option<WebGLUniformLocation> { (js! { return @{self}.getUniformLocation(@{program}, @{name}); } ).try_into().ok() } pub fn get_vertex_attrib(&self, index: GLuint, pname: GLenum) -> Value { (js! { return @{self}.getVertexAttrib(@{index}, @{pname}); } ).try_into().unwrap() } pub fn get_vertex_attrib_offset(&self, index: GLuint, pname: GLenum) -> GLintptr { (js! { return @{self}.getVertexAttribOffset(@{index}, @{pname}); } ).try_into().unwrap() } pub fn hint(&self, target: GLenum, mode: GLenum) { js!( @(no_return) @{self}.hint(@{target}, @{mode}); ); } pub fn invalidate_framebuffer(&self, target: GLenum, attachments: &[GLenum]) { js!( @(no_return) @{self}.invalidateFramebuffer(@{target}, @{attachments}); ); } pub fn invalidate_sub_framebuffer(&self, target: GLenum, attachments: &[GLenum], x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.invalidateSubFramebuffer(@{target}, @{attachments}, @{x}, @{y}, @{width}, @{height}); ); } pub fn is_buffer(&self, buffer: Option<&WebGLBuffer>) -> GLboolean { (js! { return @{self}.isBuffer(@{buffer}); } ).try_into().unwrap() } pub fn is_context_lost(&self, ) -> bool { (js! { return @{self}.isContextLost(); } ).try_into().unwrap() } pub fn is_enabled(&self, cap: GLenum) -> GLboolean { (js! { return @{self}.isEnabled(@{cap}); } ).try_into().unwrap() } pub fn is_framebuffer(&self, framebuffer: Option<&WebGLFramebuffer>) -> GLboolean { (js! { return @{self}.isFramebuffer(@{framebuffer}); } ).try_into().unwrap() } pub fn is_program(&self, program: Option<&WebGLProgram>) -> GLboolean { (js! { return @{self}.isProgram(@{program}); } ).try_into().unwrap() } pub fn is_query(&self, query: Option<&WebGLQuery>) -> GLboolean { (js! { return @{self}.isQuery(@{query}); } ).try_into().unwrap() } pub fn is_renderbuffer(&self, renderbuffer: Option<&WebGLRenderbuffer>) -> GLboolean { (js! { return @{self}.isRenderbuffer(@{renderbuffer}); } ).try_into().unwrap() } pub fn is_sampler(&self, sampler: Option<&WebGLSampler>) -> GLboolean { (js! { return @{self}.isSampler(@{sampler}); } ).try_into().unwrap() } pub fn is_shader(&self, shader: Option<&WebGLShader>) -> GLboolean { (js! { return @{self}.isShader(@{shader}); } ).try_into().unwrap() } pub fn is_sync(&self, sync: Option<&WebGLSync>) -> GLboolean { (js! { return @{self}.isSync(@{sync}); } ).try_into().unwrap() } pub fn is_texture(&self, texture: Option<&WebGLTexture>) -> GLboolean { (js! { return @{self}.isTexture(@{texture}); } ).try_into().unwrap() } pub fn is_transform_feedback(&self, tf: Option<&WebGLTransformFeedback>) -> GLboolean { (js! { return @{self}.isTransformFeedback(@{tf}); } ).try_into().unwrap() } pub fn is_vertex_array(&self, vertex_array: Option<&WebGLVertexArrayObject>) -> GLboolean { (js! { return @{self}.isVertexArray(@{vertex_array}); } ).try_into().unwrap() } pub fn line_width(&self, width: GLfloat) { js!( @(no_return) @{self}.lineWidth(@{width}); ); } pub fn link_program(&self, program: &WebGLProgram) { js!( @(no_return) @{self}.linkProgram(@{program}); ); } pub fn pause_transform_feedback(&self, ) { js!( @(no_return) @{self}.pauseTransformFeedback(); ); } pub fn pixel_storei(&self, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.pixelStorei(@{pname}, @{param}); ); } pub fn polygon_offset(&self, factor: GLfloat, units: GLfloat) { js!( @(no_return) @{self}.polygonOffset(@{factor}, @{units}); ); } pub fn read_buffer(&self, src: GLenum) { js!( @(no_return) @{self}.readBuffer(@{src}); ); } pub fn read_pixels<'a0, T0>(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, dst_data: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.readPixels(@{x}, @{y}, @{width}, @{height}, @{format}, @{type_}, @{dst_data.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn read_pixels_1(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, offset: GLintptr) { js!( @(no_return) @{self}.readPixels(@{x}, @{y}, @{width}, @{height}, @{format}, @{type_}, @{(offset as f64)}); ); } pub fn read_pixels_2<'a0, T0>(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, dst_data: T0, dst_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.readPixels(@{x}, @{y}, @{width}, @{height}, @{format}, @{type_}, @{unsafe { dst_data.as_array_buffer_view() }}, @{dst_offset}); ); } pub fn renderbuffer_storage(&self, target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.renderbufferStorage(@{target}, @{internalformat}, @{width}, @{height}); ); } pub fn renderbuffer_storage_multisample(&self, target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.renderbufferStorageMultisample(@{target}, @{samples}, @{internalformat}, @{width}, @{height}); ); } pub fn resume_transform_feedback(&self, ) { js!( @(no_return) @{self}.resumeTransformFeedback(); ); } pub fn sample_coverage(&self, value: GLclampf, invert: GLboolean) { js!( @(no_return) @{self}.sampleCoverage(@{value}, @{invert}); ); } pub fn sampler_parameterf(&self, sampler: &WebGLSampler, pname: GLenum, param: GLfloat) { js!( @(no_return) @{self}.samplerParameterf(@{sampler}, @{pname}, @{param}); ); } pub fn sampler_parameteri(&self, sampler: &WebGLSampler, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.samplerParameteri(@{sampler}, @{pname}, @{param}); ); } pub fn scissor(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.scissor(@{x}, @{y}, @{width}, @{height}); ); } pub fn shader_source(&self, shader: &WebGLShader, source: &str) { js!( @(no_return) @{self}.shaderSource(@{shader}, @{source}); ); } pub fn stencil_func(&self, func: GLenum, ref_: GLint, mask: GLuint) { js!( @(no_return) @{self}.stencilFunc(@{func}, @{ref_}, @{mask}); ); } pub fn stencil_func_separate(&self, face: GLenum, func: GLenum, ref_: GLint, mask: GLuint) { js!( @(no_return) @{self}.stencilFuncSeparate(@{face}, @{func}, @{ref_}, @{mask}); ); } pub fn stencil_mask(&self, mask: GLuint) { js!( @(no_return) @{self}.stencilMask(@{mask}); ); } pub fn stencil_mask_separate(&self, face: GLenum, mask: GLuint) { js!( @(no_return) @{self}.stencilMaskSeparate(@{face}, @{mask}); ); } pub fn stencil_op(&self, fail: GLenum, zfail: GLenum, zpass: GLenum) { js!( @(no_return) @{self}.stencilOp(@{fail}, @{zfail}, @{zpass}); ); } pub fn stencil_op_separate(&self, face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum) { js!( @(no_return) @{self}.stencilOpSeparate(@{face}, @{fail}, @{zfail}, @{zpass}); ); } pub fn tex_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, pixels: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{pixels.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_image2_d_1<T0>(&self, target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{format}, @{type_}, @{source}); ); } pub fn tex_image2_d_2(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_image2_d_3<T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{source}); ); } pub fn tex_image2_d_4<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, src_data: T0, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}); ); } pub fn tex_image3_d(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_image3_d_1<T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{source}); ); } pub fn tex_image3_d_2<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, src_data: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{src_data.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_image3_d_3<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, src_data: T0, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}); ); } pub fn tex_parameterf(&self, target: GLenum, pname: GLenum, param: GLfloat) { js!( @(no_return) @{self}.texParameterf(@{target}, @{pname}, @{param}); ); } pub fn tex_parameteri(&self, target: GLenum, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.texParameteri(@{target}, @{pname}, @{param}); ); } pub fn tex_storage2_d(&self, target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.texStorage2D(@{target}, @{levels}, @{internalformat}, @{width}, @{height}); ); } pub fn tex_storage3_d(&self, target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei) { js!( @(no_return) @{self}.texStorage3D(@{target}, @{levels}, @{internalformat}, @{width}, @{height}, @{depth}); ); } pub fn tex_sub_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pixels: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{pixels.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_sub_image2_d_1<T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{format}, @{type_}, @{source}); ); } pub fn tex_sub_image2_d_2(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_sub_image2_d_3<T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{source}); ); } pub fn tex_sub_image2_d_4<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, src_data: T0, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}); ); } pub fn tex_sub_image3_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_sub_image3_d_1<T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{type_}, @{source}); ); } pub fn tex_sub_image3_d_2<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type_: GLenum, src_data: Option<T0>, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{type_}, @{src_data.map(|inner| unsafe { inner.as_array_buffer_view() })}, @{src_offset}); ); } pub fn transform_feedback_varyings(&self, program: &WebGLProgram, varyings: &[&str], buffer_mode: GLenum) { js!( @(no_return) @{self}.transformFeedbackVaryings(@{program}, @{varyings}, @{buffer_mode}); ); } pub fn uniform1f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat) { js!( @(no_return) @{self}.uniform1f(@{location}, @{x}); ); } pub fn uniform1fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform1fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform1fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform1fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform1i(&self, location: Option<&WebGLUniformLocation>, x: GLint) { js!( @(no_return) @{self}.uniform1i(@{location}, @{x}); ); } pub fn uniform1iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform1iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform1iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform1iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform1ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint) { js!( @(no_return) @{self}.uniform1ui(@{location}, @{v0}); ); } pub fn uniform1uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform1uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform2f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat) { js!( @(no_return) @{self}.uniform2f(@{location}, @{x}, @{y}); ); } pub fn uniform2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform2fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform2fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform2fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform2i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint) { js!( @(no_return) @{self}.uniform2i(@{location}, @{x}, @{y}); ); } pub fn uniform2iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform2iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform2iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform2iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform2ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint, v1: GLuint) { js!( @(no_return) @{self}.uniform2ui(@{location}, @{v0}, @{v1}); ); } pub fn uniform2uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform2uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform3f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat, z: GLfloat) { js!( @(no_return) @{self}.uniform3f(@{location}, @{x}, @{y}, @{z}); ); } pub fn uniform3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform3fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform3fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform3fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform3i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint, z: GLint) { js!( @(no_return) @{self}.uniform3i(@{location}, @{x}, @{y}, @{z}); ); } pub fn uniform3iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform3iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform3iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform3iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform3ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint, v1: GLuint, v2: GLuint) { js!( @(no_return) @{self}.uniform3ui(@{location}, @{v0}, @{v1}, @{v2}); ); } pub fn uniform3uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform3uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform4f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat) { js!( @(no_return) @{self}.uniform4f(@{location}, @{x}, @{y}, @{z}, @{w}); ); } pub fn uniform4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform4fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform4fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform4fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform4i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint, z: GLint, w: GLint) { js!( @(no_return) @{self}.uniform4i(@{location}, @{x}, @{y}, @{z}, @{w}); ); } pub fn uniform4iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform4iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform4iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform4iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform4ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint) { js!( @(no_return) @{self}.uniform4ui(@{location}, @{v0}, @{v1}, @{v2}, @{v3}); ); } pub fn uniform4uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform4uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_block_binding(&self, program: &WebGLProgram, uniform_block_index: GLuint, uniform_block_binding: GLuint) { js!( @(no_return) @{self}.uniformBlockBinding(@{program}, @{uniform_block_index}, @{uniform_block_binding}); ); } pub fn uniform_matrix2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix2fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix2x3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2x3fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix2x4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2x4fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix3fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix3x2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3x2fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix3x4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3x4fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix4fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix4x2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4x2fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix4x3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4x3fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn use_program(&self, program: Option<&WebGLProgram>) { js!( @(no_return) @{self}.useProgram(@{program}); ); } pub fn validate_program(&self, program: &WebGLProgram) { js!( @(no_return) @{self}.validateProgram(@{program}); ); } pub fn vertex_attrib1f(&self, index: GLuint, x: GLfloat) { js!( @(no_return) @{self}.vertexAttrib1f(@{index}, @{x}); ); } pub fn vertex_attrib1fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib1fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib2f(&self, index: GLuint, x: GLfloat, y: GLfloat) { js!( @(no_return) @{self}.vertexAttrib2f(@{index}, @{x}, @{y}); ); } pub fn vertex_attrib2fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib2fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib3f(&self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat) { js!( @(no_return) @{self}.vertexAttrib3f(@{index}, @{x}, @{y}, @{z}); ); } pub fn vertex_attrib3fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib3fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib4f(&self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat) { js!( @(no_return) @{self}.vertexAttrib4f(@{index}, @{x}, @{y}, @{z}, @{w}); ); } pub fn vertex_attrib4fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib4fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib_divisor(&self, index: GLuint, divisor: GLuint) { js!( @(no_return) @{self}.vertexAttribDivisor(@{index}, @{divisor}); ); } pub fn vertex_attrib_i4i(&self, index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint) { js!( @(no_return) @{self}.vertexAttribI4i(@{index}, @{x}, @{y}, @{z}, @{w}); ); } pub fn vertex_attrib_i4iv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.vertexAttribI4iv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib_i4ui(&self, index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint) { js!( @(no_return) @{self}.vertexAttribI4ui(@{index}, @{x}, @{y}, @{z}, @{w}); ); } pub fn vertex_attrib_i4uiv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.vertexAttribI4uiv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib_i_pointer(&self, index: GLuint, size: GLint, type_: GLenum, stride: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.vertexAttribIPointer(@{index}, @{size}, @{type_}, @{stride}, @{(offset as f64)}); ); } pub fn vertex_attrib_pointer(&self, index: GLuint, size: GLint, type_: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.vertexAttribPointer(@{index}, @{size}, @{type_}, @{normalized}, @{stride}, @{(offset as f64)}); ); } pub fn viewport(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.viewport(@{x}, @{y}, @{width}, @{height}); ); } pub fn wait_sync(&self, sync: &WebGLSync, flags: GLbitfield, timeout: GLint64) { js!( @(no_return) @{self}.waitSync(@{sync}, @{flags}, @{(timeout as f64)}); ); } } impl InstanceOf for GLContext { #[inline] fn instance_of(reference: &Reference) -> bool { js!( return [WebGLRenderingContext, WebGL2RenderingContext].includes(@{{reference}}.constructor); ).try_into().unwrap() } } /// Extension /// /// Shader compilation and program linking may be performed in a separate CPU thread. This extension provides a mechanism for the application to provide a hint to limit the number of threads it wants to be used to compile shaders, as well as a query to determine if the compilation process is complete. #[derive(Debug, Clone, ReferenceType)] pub struct KHR_parallel_shader_compile(Reference); impl KHR_parallel_shader_compile { pub const COMPLETION_STATUS_KHR: GLenum = 37297; pub const MAX_SHADER_COMPILER_THREADS_KHR: GLenum = 37296; pub fn max_shader_compiler_threads_khr(&self, count: GLuint) { js!( @(no_return) @{self}.maxShaderCompilerThreadsKHR(@{count}); ); } } impl InstanceOf for KHR_parallel_shader_compile { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// The drawElements entry point parameter type accepts the value UNSIGNED_INT #[derive(Debug, Clone, ReferenceType)] pub struct OES_element_index_uint(Reference); impl OES_element_index_uint { } impl InstanceOf for OES_element_index_uint { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Any level of a texture can be attached to a framebuffer object. #[derive(Debug, Clone, ReferenceType)] pub struct OES_fbo_render_mipmap(Reference); impl OES_fbo_render_mipmap { } impl InstanceOf for OES_fbo_render_mipmap { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// The hint entry point accepts FRAGMENT_SHADER_DERIVATIVE_HINT_OES as a target and the getParameter entry point accepts it as a pname. #[derive(Debug, Clone, ReferenceType)] pub struct OES_standard_derivatives(Reference); impl OES_standard_derivatives { pub const FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum = 35723; } impl InstanceOf for OES_standard_derivatives { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Optional support for FLOAT textures as FBO attachments. The texImage2D and texSubImage2D entry points taking ArrayBufferView are extended to accept Float32Array with the pixel type FLOAT. The texImage2D and texSubImage2D entry points taking ImageData, HTMLImageElement, HTMLCanvasElement and HTMLVideoElement are extended to accept the pixel type FLOAT. Upon activation of this extension, implementations supporting [WEBGL_color_buffer_float](../WEBGL_color_buffer_float/) shall implicitly enable it. This requirement maintains the historical behavior prior to the differentiation of float renderability from float textures, so as to not break existing content. #[derive(Debug, Clone, ReferenceType)] pub struct OES_texture_float(Reference); impl OES_texture_float { } impl InstanceOf for OES_texture_float { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Expands upon the OES_texture_float extension by allowing support for LINEAR magnification filter and LINEAR, NEAREST_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST and LINEAR_MIPMAP_NEAREST minification filters. #[derive(Debug, Clone, ReferenceType)] pub struct OES_texture_float_linear(Reference); impl OES_texture_float_linear { } impl InstanceOf for OES_texture_float_linear { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Optional support for HALF_FLOAT textures as FBO attachments. The texImage2D and texSubImage2D entry points taking ArrayBufferView are extended to accept Uint16Array with the pixel type HALF_FLOAT_OES. The texImage2D and texSubImage2D entry points taking ImageData, HTMLImageElement, HTMLCanvasElement and HTMLVideoElement are extended to accept the pixel type HALF_FLOAT_OES. Upon activation of this extension, implementations supporting [EXT_color_buffer_half_float](../EXT_color_buffer_half_float/) shall implicitly enable it. This requirement maintains the historical behavior prior to the differentiation of float renderability from float textures, so as to not break existing content. #[derive(Debug, Clone, ReferenceType)] pub struct OES_texture_half_float(Reference); impl OES_texture_half_float { pub const HALF_FLOAT_OES: GLenum = 36193; } impl InstanceOf for OES_texture_half_float { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Expands upon the OES_texture_half_float extension by allowing support for LINEAR magnification filter and LINEAR, NEAREST_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST and LINEAR_MIPMAP_NEAREST minification filters. #[derive(Debug, Clone, ReferenceType)] pub struct OES_texture_half_float_linear(Reference); impl OES_texture_half_float_linear { } impl InstanceOf for OES_texture_half_float_linear { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// #[derive(Debug, Clone, ReferenceType)] pub struct OES_vertex_array_object(Reference); impl OES_vertex_array_object { pub const VERTEX_ARRAY_BINDING_OES: GLenum = 34229; /// pub fn bind_vertex_array_oes(&self, array_object: Option<&WebGLVertexArrayObjectOES>) { js!( @(no_return) @{self}.bindVertexArrayOES(@{array_object}); ); } /// pub fn create_vertex_array_oes(&self, ) -> Option<WebGLVertexArrayObjectOES> { (js! { return @{self}.createVertexArrayOES(); } ).try_into().ok() } /// pub fn delete_vertex_array_oes(&self, array_object: Option<&WebGLVertexArrayObjectOES>) { js!( @(no_return) @{self}.deleteVertexArrayOES(@{array_object}); ); } /// Returns false if the vertex array object's [invalidated flag](../../specs/1.0/#webgl-object-invalidated-flag) is set. pub fn is_vertex_array_oes(&self, array_object: Option<&WebGLVertexArrayObjectOES>) -> GLboolean { (js! { return @{self}.isVertexArrayOES(@{array_object}); } ).try_into().unwrap() } } impl InstanceOf for OES_vertex_array_object { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Adds support for rendering to 32-bit floating-point color buffers. /// /// The 32-bit floating-point type RGBA32F becomes available as a color-renderable format. Renderbuffers can be created in this format. These and textures created with format = RGBA and type = FLOAT as specified in [OES_texture_float](http://www.khronos.org/registry/webgl/extensions/OES_texture_float/), can be attached to framebuffer object color attachments for rendering. /// /// The 32-bit floating-point type RGB32F may also optionally become available as a color-renderable format. These and textures created with format = RGB and type = FLOAT as specified in [OES_texture_float](http://www.khronos.org/registry/webgl/extensions/OES_texture_float/), can be attached to framebuffer object color attachments for rendering. Applications must check framebuffer completeness to determine if an implementation actually supports this format. /// /// NOTE: fragment shaders outputs gl_FragColor and gl_FragData[0] will only be clamped and converted when the color buffer is fixed-point and blendColor() and clearColor() will no longer clamp their parameter values on input. Clamping will be applied as necessary at draw time according to the type of color buffer in use. /// /// The format and type combination RGBA and FLOAT becomes valid for reading from a floating-point rendering buffer. Note: RGBA and UNSIGNED_BYTE cannot be used for reading from a floating-point rendering buffer. /// /// The component types of framebuffer object attachments can be queried. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_color_buffer_float(Reference); impl WEBGL_color_buffer_float { pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum = 33297; pub const RGBA32F_EXT: GLenum = 34836; pub const UNSIGNED_NORMALIZED_EXT: GLenum = 35863; } impl InstanceOf for WEBGL_color_buffer_float { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the compressed texture format defined in the [ KHR_texture_compression_astc_hdr](https://www.opengl.org/registry/specs/KHR/texture_compression_astc_hdr.txt) OpenGL ES extension to WebGL. Consult that extension specification for behavioral definitions, including error behaviors. /// /// ASTC textures may be encoded using either high or low dynamic range, corresponding to an "HDR profile" and "LDR profile". The compression format is designed to be extended, and for new profiles to be added in the future. For this reason, enabling the WebGL extension enables all of the profiles supported by the implementation. The supported profiles may be queried by calling getSupportedProfiles against the extension object. Compression format COMPRESSED_RGBA_ASTC_4x4_KHR, COMPRESSED_RGBA_ASTC_5x4_KHR, COMPRESSED_RGBA_ASTC_5x5_KHR, COMPRESSED_RGBA_ASTC_6x5_KHR, COMPRESSED_RGBA_ASTC_6x6_KHR, COMPRESSED_RGBA_ASTC_8x5_KHR, COMPRESSED_RGBA_ASTC_8x6_KHR, COMPRESSED_RGBA_ASTC_8x8_KHR, COMPRESSED_RGBA_ASTC_10x5_KHR, COMPRESSED_RGBA_ASTC_10x6_KHR, COMPRESSED_RGBA_ASTC_10x8_KHR, COMPRESSED_RGBA_ASTC_10x10_KHR, COMPRESSED_RGBA_ASTC_12x10_KHR, COMPRESSED_RGBA_ASTC_12x12_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR, COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR, and COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the format from this specification. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_4x4_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_5x4_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 4) / 5) * floor((height + 3) / 4) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_5x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 4) / 5) * floor((height + 4) / 5) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_6x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 5) / 6) * floor((height + 4) / 5) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_6x6_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 5) / 6) * floor((height + 5) / 6) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_8x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 7) / 8) * floor((height + 4) / 5) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_8x6_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 7) / 8) * floor((height + 5) / 6) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_8x8_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 7) / 8) * floor((height + 7) / 8) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x5_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 9) / 10) * floor((height + 4) / 5) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x6_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 9) / 10) * floor((height + 5) / 6) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x8_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 9) / 10) * floor((height + 7) / 8) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_10x10_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 9) / 10) * floor((height + 9) / 10) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_12x10_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 11) / 12) * floor((height + 9) / 10) * 16 /// /// If it is not, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGBA_ASTC_12x12_KHR COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > floor((width + 11) / 12) * floor((height + 11) / 12) * 16 /// /// If it is not, an INVALID_VALUE error is generated. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_compressed_texture_astc(Reference); impl WEBGL_compressed_texture_astc { pub const COMPRESSED_RGBA_ASTC_10X10_KHR: GLenum = 37819; pub const COMPRESSED_RGBA_ASTC_10X5_KHR: GLenum = 37816; pub const COMPRESSED_RGBA_ASTC_10X6_KHR: GLenum = 37817; pub const COMPRESSED_RGBA_ASTC_10X8_KHR: GLenum = 37818; pub const COMPRESSED_RGBA_ASTC_12X10_KHR: GLenum = 37820; pub const COMPRESSED_RGBA_ASTC_12X12_KHR: GLenum = 37821; pub const COMPRESSED_RGBA_ASTC_4X4_KHR: GLenum = 37808; pub const COMPRESSED_RGBA_ASTC_5X4_KHR: GLenum = 37809; pub const COMPRESSED_RGBA_ASTC_5X5_KHR: GLenum = 37810; pub const COMPRESSED_RGBA_ASTC_6X5_KHR: GLenum = 37811; pub const COMPRESSED_RGBA_ASTC_6X6_KHR: GLenum = 37812; pub const COMPRESSED_RGBA_ASTC_8X5_KHR: GLenum = 37813; pub const COMPRESSED_RGBA_ASTC_8X6_KHR: GLenum = 37814; pub const COMPRESSED_RGBA_ASTC_8X8_KHR: GLenum = 37815; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X10_KHR: GLenum = 37851; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X5_KHR: GLenum = 37848; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X6_KHR: GLenum = 37849; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X8_KHR: GLenum = 37850; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_12X10_KHR: GLenum = 37852; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_12X12_KHR: GLenum = 37853; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_4X4_KHR: GLenum = 37840; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_5X4_KHR: GLenum = 37841; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_5X5_KHR: GLenum = 37842; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_6X5_KHR: GLenum = 37843; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_6X6_KHR: GLenum = 37844; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X5_KHR: GLenum = 37845; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X6_KHR: GLenum = 37846; pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X8_KHR: GLenum = 37847; /// Returns the names of the ASTC profiles supported by the implementation. As of this writing, valid return values will include "ldr", corresponding to the GL_KHR_texture_compression_astc_ldr extension string; and "hdr", corresponding to the GL_KHR_texture_compression_astc_hdr extension string. More profiles may be added in the future. pub fn get_supported_profiles(&self, ) -> Vec<String> { (js! { return @{self}.getSupportedProfiles(); } ).try_into().unwrap() } } impl InstanceOf for WEBGL_compressed_texture_astc { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the compressed texture formats defined as core in the [ OpenGL ES 3.0](http://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.4.pdf) spec to WebGL. These include the ETC2 and EAC formats, where ETC2 is a superset of ETC1. ETC1 textures can be loaded using the ETC2 token value. All of these formats are in the ETC family. /// /// Browsers should not advertise this extension when the WebGL implementation, or graphics driver, supports these formats by decompressing them. Compression formats COMPRESSED_R11_EAC, COMPRESSED_SIGNED_R11_EAC, COMPRESSED_RG11_EAC, COMPRESSED_SIGNED_RG11_EAC, COMPRESSED_RGB8_ETC2, COMPRESSED_SRGB8_ETC2, COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, COMPRESSED_RGBA8_ETC2_EAC, and COMPRESSED_SRGB8_ALPHA8_ETC2_EAC may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. In WebGL 2.0, they may also be passed to the compressedTexImage3D and compressedTexSubImage3D entry points with the TEXTURE_2D_ARRAY target. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the formats from this specification. For all of the formats, validatedSize (defined for each specific format below) is validated in the following ways: /// /// * **WebGL 1.0 and 2.0**: if the variant of compressedTexImage*D or compressedTexSubImage*D taking ArrayBufferView pixels is called, then the byteLength of the view must be equal to validatedSize, or an INVALID_VALUE error is generated. /// * **WebGL 2.0**: if the variant of compressedTexImage*D or compressedTexSubImage*D taking GLintptr offset is called, and offset + validatedSize is greater than the size of the bound PIXEL_UNPACK_BUFFER, an INVALID_OPERATION error is generated. /// /// COMPRESSED_R11_EAC COMPRESSED_SIGNED_R11_EAC COMPRESSED_RGB8_ETC2 COMPRESSED_SRGB8_ETC2 COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 /// /// validatedSize is computed in the following way: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8 /// COMPRESSED_RG11_EAC COMPRESSED_SIGNED_RG11_EAC COMPRESSED_RGBA8_ETC2_EAC COMPRESSED_SRGB8_ALPHA8_ETC2_EAC /// /// validatedSize is computed in the following way: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16 #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_compressed_texture_etc(Reference); impl WEBGL_compressed_texture_etc { pub const COMPRESSED_R11_EAC: GLenum = 37488; pub const COMPRESSED_RG11_EAC: GLenum = 37490; pub const COMPRESSED_RGB8_ETC2: GLenum = 37492; pub const COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum = 37494; pub const COMPRESSED_RGBA8_ETC2_EAC: GLenum = 37496; pub const COMPRESSED_SIGNED_R11_EAC: GLenum = 37489; pub const COMPRESSED_SIGNED_RG11_EAC: GLenum = 37491; pub const COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum = 37497; pub const COMPRESSED_SRGB8_ETC2: GLenum = 37493; pub const COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum = 37495; } impl InstanceOf for WEBGL_compressed_texture_etc { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the compressed texture format defined in the [ OES_compressed_ETC1_RGB8_texture](http://www.khronos.org/registry/gles/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt) OpenGL ES extension to WebGL. Compression format COMPRESSED_RGB_ETC1_WEBGL may be passed to the compressedTexImage2D entry point. This format correspond to the format defined in the OES_compressed_ETC1_RGB8_texture OpenGL ES extension. Although the enum name is changed, the numeric value is the same. The correspondence is given by this table: WebGL format enum OpenGL format enum Numeric value COMPRESSED_RGB_ETC1_WEBGL ETC1_RGB8_OES 0x8D64 Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the format from this specification. /// /// The following format-specific restrictions must be enforced: COMPRESSED_RGB_ETC1_WEBGL /// /// The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D must be equal to the following number of bytes: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8 /// /// If it is not, an INVALID_VALUE error is generated. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_compressed_texture_etc1(Reference); impl WEBGL_compressed_texture_etc1 { pub const COMPRESSED_RGB_ETC1_WEBGL: GLenum = 36196; } impl InstanceOf for WEBGL_compressed_texture_etc1 { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the compressed texture formats defined in the [ IMG_texture_compression_pvrtc](http://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_compression_pvrtc.txt) OpenGL extension to WebGL. Compression formats COMPRESSED_RGB_PVRTC_4BPPV1_IMG, COMPRESSED_RGB_PVRTC_2BPPV1_IMG, COMPRESSED_RGBA_PVRTC_4BPPV1_IMG, and COMPRESSED_RGBA_PVRTC_2BPPV1_IMG may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the 4 formats from this specification. /// /// The following format-specific restrictions apply to all of the formats described by this extension: /// /// In compressedTexImage2D, the width and height parameters must be powers of two. Otherwise, an INVALID_VALUE error is generated. /// /// In compressedTexSubImage2D, the width and height parameters must be equal to the current values of the existing texture image, and the xoffset and yoffset parameters must be zero. Otherwise, an INVALID_VALUE error is generated. /// /// The following format-specific restrictions must also be enforced: COMPRESSED_RGB_PVRTC_4BPPV1_IMG COMPRESSED_RGBA_PVRTC_4BPPV1_IMG /// /// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > max(width, 8) * max(height, 8) / 2 /// /// If it is not, an INVALID_VALUE error is generated. COMPRESSED_RGB_PVRTC_2BPPV1_IMG COMPRESSED_RGBA_PVRTC_2BPPV1_IMG /// /// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes: /// > max(width, 16) * max(height, 8) / 4 /// /// If it is not, an INVALID_VALUE error is generated. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_compressed_texture_pvrtc(Reference); impl WEBGL_compressed_texture_pvrtc { pub const COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum = 35843; pub const COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum = 35842; pub const COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum = 35841; pub const COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum = 35840; } impl InstanceOf for WEBGL_compressed_texture_pvrtc { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the compressed texture formats defined in the [ EXT_texture_compression_s3tc](http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt) OpenGL extension to WebGL. Compression formats COMPRESSED_RGB_S3TC_DXT1_EXT, COMPRESSED_RGBA_S3TC_DXT1_EXT, COMPRESSED_RGBA_S3TC_DXT3_EXT, and COMPRESSED_RGBA_S3TC_DXT5_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the 4 formats from this specification. /// /// The following format specific restrictions must be enforced: COMPRESSED_RGB_S3TC_DXT1_EXT COMPRESSED_RGBA_S3TC_DXT1_EXT /// /// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8 /// /// If it is not an INVALID_VALUE error is generated. /// /// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4. /// /// If they are not an INVALID_OPERATION error is generated. /// /// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated. COMPRESSED_RGBA_S3TC_DXT3_EXT COMPRESSED_RGBA_S3TC_DXT5_EXT /// /// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16 /// /// If it is not an INVALID_VALUE error is generated. /// /// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4. /// /// If they are not an INVALID_OPERATION error is generated. /// /// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_compressed_texture_s3tc(Reference); impl WEBGL_compressed_texture_s3tc { pub const COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum = 33777; pub const COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum = 33778; pub const COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum = 33779; pub const COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum = 33776; } impl InstanceOf for WEBGL_compressed_texture_s3tc { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the sRGB compressed texture formats defined in the [ EXT_texture_sRGB](https://www.opengl.org/registry/specs/EXT/texture_sRGB.txt) OpenGL extension to WebGL. Compression formats COMPRESSED_SRGB_S3TC_DXT1_EXT, COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, and COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the 4 formats from this specification. /// /// The following format specific restrictions must be enforced: COMPRESSED_SRGB_S3TC_DXT1_EXT COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT /// /// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 8 /// /// If it is not an INVALID_VALUE error is generated. /// /// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4. /// /// If they are not an INVALID_OPERATION error is generated. /// /// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated. COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT /// /// The byteLength of the ArrayBufferView, pixels, passed to either compressedTexImage2D or compressedTexSubImage2D must match the following equation: /// > floor((width + 3) / 4) * floor((height + 3) / 4) * 16 /// /// If it is not an INVALID_VALUE error is generated. /// /// When level equals zero width and height must be a multiple of 4. When level is greater than 0 width and height must be 0, 1, 2 or a multiple of 4. /// /// If they are not an INVALID_OPERATION error is generated. /// /// For compressedTexSubImage2D xoffset and yoffset must be a multiple of 4 and width must be a multiple of 4 or equal to the original width of the level. height must be a multiple of 4 or equal to the original height of the level. If they are not an INVALID_OPERATION error is generated. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_compressed_texture_s3tc_srgb(Reference); impl WEBGL_compressed_texture_s3tc_srgb { pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum = 35917; pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum = 35918; pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum = 35919; pub const COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum = 35916; } impl InstanceOf for WEBGL_compressed_texture_s3tc_srgb { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// WebGL implementations might mask the RENDERER and VENDOR strings of the underlying graphics driver for privacy reasons. This extension exposes new tokens to query this information in a guaranteed manner for debugging purposes. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_debug_renderer_info(Reference); impl WEBGL_debug_renderer_info { pub const UNMASKED_RENDERER_WEBGL: GLenum = 37446; pub const UNMASKED_VENDOR_WEBGL: GLenum = 37445; } impl InstanceOf for WEBGL_debug_renderer_info { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// WebGL uses the GLSL ES 2.0 spec on all platforms, and translates these shaders to the host platform's native language (HLSL, GLSL, and even GLSL ES). For debugging purpose, it is useful to be able to examine the shader after translation. This extension exposes a new function getTranslatedShaderSource for such purposes. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_debug_shaders(Reference); impl WEBGL_debug_shaders { /// If no source has been defined, compileShader() has not been called, or the translation has failed for shader, an empty string is returned; otherwise, return the translated source. pub fn get_translated_shader_source(&self, shader: &WebGLShader) -> String { (js! { return @{self}.getTranslatedShaderSource(@{shader}); } ).try_into().unwrap() } } impl InstanceOf for WEBGL_debug_shaders { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes the [ANGLE_depth_texture](http://angleproject.googlecode.com/svn/trunk/extensions/ANGLE_depth_texture.txt) functionality to WebGL. ANGLE_depth_texture provides a subset of the functionality from the OpenGL ES 2.0 extensions [OES_depth_texture](http://www.khronos.org/registry/gles/extensions/OES/OES_depth_texture.txt) and [OES_packed_depth_stencil](http://www.khronos.org/registry/gles/extensions/OES/OES_packed_depth_stencil.txt), with certain restrictions added for portability reasons. Specifically: /// /// * ANGLE_depth_texture provides both depth and depth/stencil textures. /// * ANGLE_depth_texture does not provide the DEPTH24_STENCIL8_OES renderbuffer internal format from the OES_packed_depth_stencil extension. The core WebGL specification already supports allocation of depth/stencil renderbuffers. /// * ANGLE_depth_texture does not support loading image data via the TexImage or TexSubImage commands. Depth and depth/stencil textures created via this extension can only have their contents specified by rendering to them. /// /// Consult the Errors section below for specific restrictions. The texImage2D entry point is extended to accept the format parameter DEPTH_COMPONENT and DEPTH_STENCIL The texImage2D entry point is extended to accept the internalFormat parameter DEPTH_COMPONENT and DEPTH_STENCIL The texImage2D entry point is extended to accept the type parameter UNSIGNED_SHORT, UNSIGNED_INT, and UNSIGNED_INT_24_8_WEBGL The framebufferTexture2D entry point is extended to accept the target parameter DEPTH_ATTACHMENT and DEPTH_STENCIL_ATTACHMENT The texImage2D entry point is extended to accept ArrayBufferView of type Uint16Array and Uint32Array /// /// The WebGL-specific constraints about [Framebuffer Object Attachments](http://www.khronos.org/registry/webgl/specs/1.0/#FBO_ATTACHMENTS) are extended: /// /// * A texture attached to an FBO's DEPTH_ATTACHMENT attachment point must be allocated with the DEPTH_COMPONENT internal format. /// * A texture attached to the DEPTH_STENCIL_ATTACHMENT attachment point must be allocated with the DEPTH_STENCIL internal format. /// /// In the WebGL API, it is an error to concurrently attach either renderbuffers or textures to the following combinations of attachment points: /// /// * DEPTH_ATTACHMENT + DEPTH_STENCIL_ATTACHMENT /// * STENCIL_ATTACHMENT + DEPTH_STENCIL_ATTACHMENT /// * DEPTH_ATTACHMENT + STENCIL_ATTACHMENT /// /// See the section [Framebuffer Object Attachments](http://www.khronos.org/registry/webgl/specs/1.0/#FBO_ATTACHMENTS) in the WebGL specification for the behavior if these constraints are violated. /// /// As per the OpenGL ES spec, there is no guarantee that the OpenGL ES implementation will use the texture type to determine how to store the depth texture internally. It may choose to downsample the 32-bit depth values to 16-bit or even 24-bit. When a depth or depth/stencil texture is attached to a framebuffer object, calls to getParameter with the DEPTH_BITS and STENCIL_BITS enums return the following: Texture Type DEPTH_BITS (GLint) STENCIL_BITS (GLint) UNSIGNED_SHORT >= 16 0 UNSIGNED_INT >= 16 0 UNSIGNED_INT_24_8_WEBGL >= 24 >= 8 #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_depth_texture(Reference); impl WEBGL_depth_texture { pub const UNSIGNED_INT_24_8_WEBGL: GLenum = 34042; } impl InstanceOf for WEBGL_depth_texture { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// The implementation must support a minimum of 4 color attachments. The value of the MAX_COLOR_ATTACHMENTS_WEBGL parameter must be greater than or equal to that of the MAX_DRAW_BUFFERS_WEBGL parameter. If: /// /// * A framebuffer's color attachments are all textures allocated with format RGBA and type UNSIGNED_BYTE, and /// * The framebuffer has either: /// /// * No depth or stencil attachment /// * A valid DEPTH or DEPTH_STENCIL attachment /// /// Then a call to checkFramebufferStatus against this framebuffer must not return FRAMEBUFFER_UNSUPPORTED. (In other words, the implementation must support the use of RGBA/UNSIGNED_BYTE textures as color attachments, plus either a DEPTH or DEPTH_STENCIL attachment.) Attaching n consecutive color attachments starting at COLOR_ATTACHMENT0_WEBGL, where n is between 1 and MAX_DRAW_BUFFERS_WEBGL, must not return FRAMEBUFFER_UNSUPPORTED from a call to checkFramebufferStatus. In other words, if MAX_DRAW_BUFFERS_WEBGL is 4, then the implementation is required to support the following combinations of color attachments: /// /// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE /// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE /// COLOR_ATTACHMENT1_WEBGL = RGBA/UNSIGNED_BYTE /// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE /// COLOR_ATTACHMENT1_WEBGL = RGBA/UNSIGNED_BYTE /// COLOR_ATTACHMENT2_WEBGL = RGBA/UNSIGNED_BYTE /// * COLOR_ATTACHMENT0_WEBGL = RGBA/UNSIGNED_BYTE /// COLOR_ATTACHMENT1_WEBGL = RGBA/UNSIGNED_BYTE /// COLOR_ATTACHMENT2_WEBGL = RGBA/UNSIGNED_BYTE /// COLOR_ATTACHMENT3_WEBGL = RGBA/UNSIGNED_BYTE /// /// Although the extension name is prefixed with WEBGL the extension must be enabled with the #extension GL_EXT_draw_buffers directive, as shown in the sample code, to use the extension in a shader. Likewise the shading language preprocessor #define GL_EXT_draw_buffers, will be defined to 1 if the extension is supported. The value of gl_MaxDrawBuffers must match MAX_DRAW_BUFFERS_WEBGL from the API if the extension is enabled in a WebGL context; otherwise, the value must be 1. Whether or not the extension is enabled with the #extension GL_EXT_draw_buffers directive in a shader does not affect the value of gl_MaxDrawBuffers. The value of gl_MaxDrawBuffers is a constant in the shader, and is guaranteed to be frozen at program link time. It is implementation-dependent whether it is frozen at shader compile time. (A consequence is that if a program is linked, and later the WEBGL_draw_buffers extension is enabled, the value of gl_MaxDrawBuffers seen by that program will still be 1.) If the WEBGL_draw_buffers extension is enabled, but the fragment shader does not contain the #extension GL_EXT_draw_buffers directive to enable it, then writes to gl_FragColor are only written to COLOR_ATTACHMENT0_WEBGL, and not broadcast to all color attachments. In this scenario, other color attachments are guaranteed to remain untouched. If a fragment shader writes to neither gl_FragColor nor gl_FragData, the values of the fragment colors following shader execution are untouched. If a fragment shader contains the #extension GL_EXT_draw_buffers directive, all gl_FragData variables (from gl_FragData[0] to gl_FragData[MAX_DRAW_BUFFERS_WEBGL - 1]) default to zero if no values are written to them during a shader execution. If an image is attached to more than one color attachment point in a framebuffer, checkFramebufferStatus returns FRAMEBUFFER_UNSUPPORTED. An image can be an individual mip level, or a face of cube map. Adds support for multiple color buffers and color outputs from fragment shaders. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_draw_buffers(Reference); impl WEBGL_draw_buffers { pub const COLOR_ATTACHMENT0_WEBGL: GLenum = 36064; pub const COLOR_ATTACHMENT10_WEBGL: GLenum = 36074; pub const COLOR_ATTACHMENT11_WEBGL: GLenum = 36075; pub const COLOR_ATTACHMENT12_WEBGL: GLenum = 36076; pub const COLOR_ATTACHMENT13_WEBGL: GLenum = 36077; pub const COLOR_ATTACHMENT14_WEBGL: GLenum = 36078; pub const COLOR_ATTACHMENT15_WEBGL: GLenum = 36079; pub const COLOR_ATTACHMENT1_WEBGL: GLenum = 36065; pub const COLOR_ATTACHMENT2_WEBGL: GLenum = 36066; pub const COLOR_ATTACHMENT3_WEBGL: GLenum = 36067; pub const COLOR_ATTACHMENT4_WEBGL: GLenum = 36068; pub const COLOR_ATTACHMENT5_WEBGL: GLenum = 36069; pub const COLOR_ATTACHMENT6_WEBGL: GLenum = 36070; pub const COLOR_ATTACHMENT7_WEBGL: GLenum = 36071; pub const COLOR_ATTACHMENT8_WEBGL: GLenum = 36072; pub const COLOR_ATTACHMENT9_WEBGL: GLenum = 36073; pub const DRAW_BUFFER0_WEBGL: GLenum = 34853; pub const DRAW_BUFFER10_WEBGL: GLenum = 34863; pub const DRAW_BUFFER11_WEBGL: GLenum = 34864; pub const DRAW_BUFFER12_WEBGL: GLenum = 34865; pub const DRAW_BUFFER13_WEBGL: GLenum = 34866; pub const DRAW_BUFFER14_WEBGL: GLenum = 34867; pub const DRAW_BUFFER15_WEBGL: GLenum = 34868; pub const DRAW_BUFFER1_WEBGL: GLenum = 34854; pub const DRAW_BUFFER2_WEBGL: GLenum = 34855; pub const DRAW_BUFFER3_WEBGL: GLenum = 34856; pub const DRAW_BUFFER4_WEBGL: GLenum = 34857; pub const DRAW_BUFFER5_WEBGL: GLenum = 34858; pub const DRAW_BUFFER6_WEBGL: GLenum = 34859; pub const DRAW_BUFFER7_WEBGL: GLenum = 34860; pub const DRAW_BUFFER8_WEBGL: GLenum = 34861; pub const DRAW_BUFFER9_WEBGL: GLenum = 34862; pub const MAX_COLOR_ATTACHMENTS_WEBGL: GLenum = 36063; pub const MAX_DRAW_BUFFERS_WEBGL: GLenum = 34852; pub fn draw_buffers_webgl(&self, buffers: &[GLenum]) { js!( @(no_return) @{self}.drawBuffersWEBGL(@{buffers}); ); } } impl InstanceOf for WEBGL_draw_buffers { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// This extension exposes new functions which simulate losing and restoring the WebGL context, even on platforms where the context can never be lost. Consult the WebGL specification for documentation about the webglcontextlost and webglcontextrestored events. /// /// When this extension is enabled: /// /// * loseContext and restoreContext are allowed to generate INVALID_OPERATION errors even when the context is lost. /// /// Note that this extension is **not** disconnected from the WebGLRenderingContext if that object loses its context as described in "The Context Lost Event" of the WebGL specification, either through use of this API or via actual circumstances such as a system failure. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_lose_context(Reference); impl WEBGL_lose_context { /// When this function is called and the context is not lost, simulate losing the context so as to trigger the steps described in the WebGL spec for handling context lost. The context will remain in the lost state according to the WebGL specification until restoreContext() is called. If the context is already lost when this function is called, generate an INVALID_OPERATION error. /// /// Implementations should destroy the underlying graphics context and all graphics resources when this method is called. This is the recommended mechanism for applications to programmatically halt their use of the WebGL API. pub fn lose_context(&self, ) { js!( @(no_return) @{self}.loseContext(); ); } /// When this function is called while the context is lost, and the conditions defined by the WebGL specification for restoring the context are met, simulate the context being restored so as to trigger the steps described in the WebGL spec for handling the context being restored. If the context is already restored when this function is called, or if the conditions in the WebGL specification for restoring the context are not satisfied, or if the context was not lost via loseContext(), generate an INVALID_OPERATION error. pub fn restore_context(&self, ) { js!( @(no_return) @{self}.restoreContext(); ); } } impl InstanceOf for WEBGL_lose_context { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// Calling framebufferTextureMultiviewWEBGL with a non-null texture parameter that does not identify a 2D array texture generates an INVALID_OPERATION error. The values of baseViewIndex and numViews can result in an error only if the texture parameter is non-null. If baseViewIndex is not the same for all framebuffer attachment points where the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is not NONE the framebuffer is considered incomplete. Calling getFramebufferStatus for a framebuffer in this state returns FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR. Other rules for framebuffer completeness from the OVR_multiview specification also apply. Other web APIs may expose *opaque multiview framebuffers*. Opaque multiview framebuffers are WebGLFramebuffer objects that act as if they have multi-view attachments, but their attachments are not exposed as textures or renderbuffers and can not be changed. Opaque multiview framebuffers may have any combination of color, depth and stencil attachments. Calling framebufferRenderbuffer, framebufferTexture2D, framebufferTextureLayer, framebufferTextureMultiviewWEBGL, or any other call that could change framebuffer attachments with an opaque multiview framebuffer bound to target generates an INVALID_OPERATION error. If an opaque framebuffer is bound to target when calling getFramebufferAttachmentParameter, then attachment must be BACK, DEPTH, or STENCIL. If an opaque framebuffer is bound to target when calling getFramebufferAttachmentParameter, then pname must not be FRAMEBUFFER_ATTACHMENT_OBJECT_NAME. Querying FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR on an opaque multiview framebuffer attachment point that has attachments must return the number of views in the opaque multiview framebuffer. Querying FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR on an opaque multiview framebuffer must return 0. Querying FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE on an opaque multiview framebuffer must return FRAMEBUFFER_DEFAULT. The number of views in an opaque multiview framebuffer may be greater than the maximum number of texture array views (the value of MAX_VIEWS_OVR). Passing an opaque multiview framebuffer to deleteFramebuffer generates an INVALID_OPERATION error. Although the extension name is prefixed with WEBGL the extension must be enabled with the #extension GL_OVR_multiview directive, as shown in the sample code, to use the extension in a shader. Likewise the shading language preprocessor #define GL_OVR_multiview, will be defined to 1 if the extension is supported. This extension relaxes the restriction in OVR_multiview that only gl_Position can depend on ViewID in the vertex shader. With this change, view-dependent outputs like reflection vectors and similar are allowed. When the number of views specified in the active program is one, gl_ViewID_OVR will always evaluate to zero. When a shader written in OpenGL ES shading language version 1.00 enables or requires GL_OVR_multiview with an extension directive, layout is treated as a keyword rather than an identifier, and using a layout qualifier to specify num_views is allowed. Other uses of layout qualifiers are not allowed in OpenGL ES shading language 1.00. In OpenGL ES shading language version 1.00 gl_ViewID_OVR has the type int as opposed to uint. When a timer query is active and the number of views in the current draw framebuffer is greater than one, attempting to draw or calling clear generates an INVALID_OPERATION error. When the number of views in the current draw framebuffer is greater than one and the active program does not declare a number of views, attempting to draw generates an INVALID_OPERATION error. Adds support for rendering into multiple views simultaneously. This is supported for opaque multiview framebuffers starting from WebGL 1.0, and 2D texture arrays starting from WebGL 2.0. When a shader enables, requires, or warns GL_OVR_multiview with an extension directive: /// /// * gl_ViewID_OVR is a built-in input of the type uint. /// /// The GLSL macro GL_OVR_multiview is defined as 1. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_multiview(Reference); impl WEBGL_multiview { pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum = 38450; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum = 38448; pub const FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum = 38451; pub const MAX_VIEWS_OVR: GLenum = 38449; /// pub fn framebuffer_texture_multiview_webgl(&self, target: GLenum, attachment: GLenum, texture: Option<&WebGLTexture>, level: GLint, base_view_index: GLint, num_views: GLsizei) { js!( @(no_return) @{self}.framebufferTextureMultiviewWEBGL(@{target}, @{attachment}, @{texture}, @{level}, @{base_view_index}, @{num_views}); ); } } impl InstanceOf for WEBGL_multiview { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } /// Extension /// /// In the [WebGL API 1.0](../../../specs/1.0/) specification, section [4.2 Origin Restrictions](../../../specs/1.0/#4.2) restricts the following sources for texture upload: /// /// * An image or video element whose origin is not the same as the origin of the Document that contains the WebGLRenderingContext's canvas element. /// * A canvas element whose *origin-clean* flag is set to false. /// /// This extension allows these sources for texture uploads, with some restrictions regarding their uploading and use. /// /// Motivation: /// /// This extension enables the processing of cross-origin resources in WebGL. Additionally, it defines a foundation of concepts that can be used in future extensions to process other types of security sensitive content, including arbitrary HTML content. /// /// For an example of security sensitive content, consider the rendering of an HTML link. The color of the link can indicate its visited or unvisited state. Third parties must not be able to access or infer this information. /// /// Specifically, third parties must not be able read the pixel data of security sensitive content through WebGL or other APIs. Additionally, third parties must not be able to divulge or approximate the pixel data of security sensitive content by timing WebGL operations. /// /// Prior to this extension, WebGL restricted the upload of security sensitive content as a texture for graphical processing. This extension enables the uploading and processing of security sensitive content, with some restrictions. Note that this extension imposes no restrictions on the processing of regular, non-security sensitive content. /// /// To secure a user’s privacy, a WebGL implementation must not leak information about the contents of security sensitive textures through the execution time of its commands. To achieve this, no part of the underlying graphics pipeline may vary in execution time based on the contents of a security sensitive texture. For example, primitive assembly and depth testing must not vary based on the contents of a security sensitive texture. /// /// The vertex shading and fragment shading stages of the graphics pipeline require particular restrictions to keep their execution time independent of the contents of security sensitive textures. Specifically, the contents of a security sensitive texture must only appear in constant-time GLSL operations. A constant-time GLSL operation is an operation whose execution time does not vary based on the values of its operands. This extension will describe how a WebGL implementation can enforce this requirement. /// /// Additionally, this extension attempts to identify non-constant-time GLSL operations. All other GLSL operations are assumed to be constant time in both the WebGL implementation and the underlying GPU implementation. If this assumption is false on a particular implementation, then this extension must be disabled for that implementation. In the future, GPU vendors may be able to provide a mechanism to guarantee that the assumed GLSL operations are in fact constant-time. Definitions /// /// This extension relies on the definition of several constructs in GLSL. These constructs are determined statically, after preprocessing. Regular Sampler Variables and Secure Sampler Variables /// /// S is a regular sampler if an expression dependent on S appears in one or more of the following constructs: /// /// * if statement condition /// * selection operator (?) condition /// * loop condition /// * logical and operator (&&) /// * logical or operator (||) /// * coord, bias, or lod argument in a texture lookup function call /// * assignment to gl_Position /// * assignment to gl_FragDepth /// /// Otherwise, S is a secure sampler. Sampler-Dependent Expressions /// /// An expression is dependent on the sampler S if: /// /// * It contains a texture lookup function call with S as the sampler argument. /// * It contains an expression that is dependent on the sampler S. /// * It contains a variable that is dependent on the sampler S. /// /// Sampler-Dependent Variables /// /// A variable is dependent on the sampler S if: /// /// * It is assigned to an expression dependent on the sampler S. (e.g. If a = b and b is dependent on sampler S, then a is dependent on sampler S.) /// * It is addressed using a sampler-dependent expression in an assignment. (e.g. If a[b] = c and b is dependent on the sampler S, then a is dependent on sampler S.) /// * It is a fragment shader varying and the corresponding vertex shader varying is dependent on the sampler S. /// /// A WebGL implementation can create a dependency graph in its GLSL compiler to implement these GLSL constructs. One closely related implementation is described in a [wiki page](http://code.google.com/p/mvujovic/wiki/ShaderControlFlowAnalysis). Features The WebGLRenderingContext's canvas's *origin-clean* flag is set to false if the context is created with a WebGLContextAttributes dictionary with securitySensitiveDrawingBuffer set to true. #[derive(Debug, Clone, ReferenceType)] pub struct WEBGL_security_sensitive_resources(Reference); impl WEBGL_security_sensitive_resources { /// Behaves like createFramebuffer, except framebuffers created with this function are referred to as security sensitive framebuffers. Framebuffers created with createFramebuffer are referred to as regular framebuffers. pub fn create_security_sensitive_framebuffer(&self, ) -> Option<WebGLFramebuffer> { (js! { return @{self}.createSecuritySensitiveFramebuffer(); } ).try_into().ok() } /// Behaves like createTexture, except textures created with this function are known as security sensitive textures. Textures created with createTexture are known as regular textures. pub fn create_security_sensitive_texture(&self, ) -> Option<WebGLTexture> { (js! { return @{self}.createSecuritySensitiveTexture(); } ).try_into().ok() } } impl InstanceOf for WEBGL_security_sensitive_resources { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGL2RenderingContext")] pub struct WebGL2RenderingContext(Reference); impl WebGL2RenderingContext { pub const ACTIVE_ATTRIBUTES: GLenum = 35721; pub const ACTIVE_TEXTURE: GLenum = 34016; pub const ACTIVE_UNIFORMS: GLenum = 35718; pub const ACTIVE_UNIFORM_BLOCKS: GLenum = 35382; pub const ALIASED_LINE_WIDTH_RANGE: GLenum = 33902; pub const ALIASED_POINT_SIZE_RANGE: GLenum = 33901; pub const ALPHA: GLenum = 6406; pub const ALPHA_BITS: GLenum = 3413; pub const ALREADY_SIGNALED: GLenum = 37146; pub const ALWAYS: GLenum = 519; pub const ANY_SAMPLES_PASSED: GLenum = 35887; pub const ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum = 36202; pub const ARRAY_BUFFER: GLenum = 34962; pub const ARRAY_BUFFER_BINDING: GLenum = 34964; pub const ATTACHED_SHADERS: GLenum = 35717; pub const BACK: GLenum = 1029; pub const BLEND: GLenum = 3042; pub const BLEND_COLOR: GLenum = 32773; pub const BLEND_DST_ALPHA: GLenum = 32970; pub const BLEND_DST_RGB: GLenum = 32968; pub const BLEND_EQUATION: GLenum = 32777; pub const BLEND_EQUATION_ALPHA: GLenum = 34877; pub const BLEND_EQUATION_RGB: GLenum = 32777; pub const BLEND_SRC_ALPHA: GLenum = 32971; pub const BLEND_SRC_RGB: GLenum = 32969; pub const BLUE_BITS: GLenum = 3412; pub const BOOL: GLenum = 35670; pub const BOOL_VEC2: GLenum = 35671; pub const BOOL_VEC3: GLenum = 35672; pub const BOOL_VEC4: GLenum = 35673; pub const BROWSER_DEFAULT_WEBGL: GLenum = 37444; pub const BUFFER_SIZE: GLenum = 34660; pub const BUFFER_USAGE: GLenum = 34661; pub const BYTE: GLenum = 5120; pub const CCW: GLenum = 2305; pub const CLAMP_TO_EDGE: GLenum = 33071; pub const COLOR: GLenum = 6144; pub const COLOR_ATTACHMENT0: GLenum = 36064; pub const COLOR_ATTACHMENT1: GLenum = 36065; pub const COLOR_ATTACHMENT10: GLenum = 36074; pub const COLOR_ATTACHMENT11: GLenum = 36075; pub const COLOR_ATTACHMENT12: GLenum = 36076; pub const COLOR_ATTACHMENT13: GLenum = 36077; pub const COLOR_ATTACHMENT14: GLenum = 36078; pub const COLOR_ATTACHMENT15: GLenum = 36079; pub const COLOR_ATTACHMENT2: GLenum = 36066; pub const COLOR_ATTACHMENT3: GLenum = 36067; pub const COLOR_ATTACHMENT4: GLenum = 36068; pub const COLOR_ATTACHMENT5: GLenum = 36069; pub const COLOR_ATTACHMENT6: GLenum = 36070; pub const COLOR_ATTACHMENT7: GLenum = 36071; pub const COLOR_ATTACHMENT8: GLenum = 36072; pub const COLOR_ATTACHMENT9: GLenum = 36073; pub const COLOR_BUFFER_BIT: GLenum = 16384; pub const COLOR_CLEAR_VALUE: GLenum = 3106; pub const COLOR_WRITEMASK: GLenum = 3107; pub const COMPARE_REF_TO_TEXTURE: GLenum = 34894; pub const COMPILE_STATUS: GLenum = 35713; pub const COMPRESSED_TEXTURE_FORMATS: GLenum = 34467; pub const CONDITION_SATISFIED: GLenum = 37148; pub const CONSTANT_ALPHA: GLenum = 32771; pub const CONSTANT_COLOR: GLenum = 32769; pub const CONTEXT_LOST_WEBGL: GLenum = 37442; pub const COPY_READ_BUFFER: GLenum = 36662; pub const COPY_READ_BUFFER_BINDING: GLenum = 36662; pub const COPY_WRITE_BUFFER: GLenum = 36663; pub const COPY_WRITE_BUFFER_BINDING: GLenum = 36663; pub const CULL_FACE: GLenum = 2884; pub const CULL_FACE_MODE: GLenum = 2885; pub const CURRENT_PROGRAM: GLenum = 35725; pub const CURRENT_QUERY: GLenum = 34917; pub const CURRENT_VERTEX_ATTRIB: GLenum = 34342; pub const CW: GLenum = 2304; pub const DECR: GLenum = 7683; pub const DECR_WRAP: GLenum = 34056; pub const DELETE_STATUS: GLenum = 35712; pub const DEPTH: GLenum = 6145; pub const DEPTH24_STENCIL8: GLenum = 35056; pub const DEPTH32F_STENCIL8: GLenum = 36013; pub const DEPTH_ATTACHMENT: GLenum = 36096; pub const DEPTH_BITS: GLenum = 3414; pub const DEPTH_BUFFER_BIT: GLenum = 256; pub const DEPTH_CLEAR_VALUE: GLenum = 2931; pub const DEPTH_COMPONENT: GLenum = 6402; pub const DEPTH_COMPONENT16: GLenum = 33189; pub const DEPTH_COMPONENT24: GLenum = 33190; pub const DEPTH_COMPONENT32F: GLenum = 36012; pub const DEPTH_FUNC: GLenum = 2932; pub const DEPTH_RANGE: GLenum = 2928; pub const DEPTH_STENCIL: GLenum = 34041; pub const DEPTH_STENCIL_ATTACHMENT: GLenum = 33306; pub const DEPTH_TEST: GLenum = 2929; pub const DEPTH_WRITEMASK: GLenum = 2930; pub const DITHER: GLenum = 3024; pub const DONT_CARE: GLenum = 4352; pub const DRAW_BUFFER0: GLenum = 34853; pub const DRAW_BUFFER1: GLenum = 34854; pub const DRAW_BUFFER10: GLenum = 34863; pub const DRAW_BUFFER11: GLenum = 34864; pub const DRAW_BUFFER12: GLenum = 34865; pub const DRAW_BUFFER13: GLenum = 34866; pub const DRAW_BUFFER14: GLenum = 34867; pub const DRAW_BUFFER15: GLenum = 34868; pub const DRAW_BUFFER2: GLenum = 34855; pub const DRAW_BUFFER3: GLenum = 34856; pub const DRAW_BUFFER4: GLenum = 34857; pub const DRAW_BUFFER5: GLenum = 34858; pub const DRAW_BUFFER6: GLenum = 34859; pub const DRAW_BUFFER7: GLenum = 34860; pub const DRAW_BUFFER8: GLenum = 34861; pub const DRAW_BUFFER9: GLenum = 34862; pub const DRAW_FRAMEBUFFER: GLenum = 36009; pub const DRAW_FRAMEBUFFER_BINDING: GLenum = 36006; pub const DST_ALPHA: GLenum = 772; pub const DST_COLOR: GLenum = 774; pub const DYNAMIC_COPY: GLenum = 35050; pub const DYNAMIC_DRAW: GLenum = 35048; pub const DYNAMIC_READ: GLenum = 35049; pub const ELEMENT_ARRAY_BUFFER: GLenum = 34963; pub const ELEMENT_ARRAY_BUFFER_BINDING: GLenum = 34965; pub const EQUAL: GLenum = 514; pub const FASTEST: GLenum = 4353; pub const FLOAT: GLenum = 5126; pub const FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum = 36269; pub const FLOAT_MAT2: GLenum = 35674; pub const FLOAT_MAT2X3: GLenum = 35685; pub const FLOAT_MAT2X4: GLenum = 35686; pub const FLOAT_MAT3: GLenum = 35675; pub const FLOAT_MAT3X2: GLenum = 35687; pub const FLOAT_MAT3X4: GLenum = 35688; pub const FLOAT_MAT4: GLenum = 35676; pub const FLOAT_MAT4X2: GLenum = 35689; pub const FLOAT_MAT4X3: GLenum = 35690; pub const FLOAT_VEC2: GLenum = 35664; pub const FLOAT_VEC3: GLenum = 35665; pub const FLOAT_VEC4: GLenum = 35666; pub const FRAGMENT_SHADER: GLenum = 35632; pub const FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum = 35723; pub const FRAMEBUFFER: GLenum = 36160; pub const FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum = 33301; pub const FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum = 33300; pub const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum = 33296; pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum = 33297; pub const FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum = 33302; pub const FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum = 33299; pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum = 36049; pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum = 36048; pub const FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum = 33298; pub const FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum = 33303; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum = 36051; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum = 36052; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum = 36050; pub const FRAMEBUFFER_BINDING: GLenum = 36006; pub const FRAMEBUFFER_COMPLETE: GLenum = 36053; pub const FRAMEBUFFER_DEFAULT: GLenum = 33304; pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum = 36054; pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum = 36057; pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum = 36055; pub const FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum = 36182; pub const FRAMEBUFFER_UNSUPPORTED: GLenum = 36061; pub const FRONT: GLenum = 1028; pub const FRONT_AND_BACK: GLenum = 1032; pub const FRONT_FACE: GLenum = 2886; pub const FUNC_ADD: GLenum = 32774; pub const FUNC_REVERSE_SUBTRACT: GLenum = 32779; pub const FUNC_SUBTRACT: GLenum = 32778; pub const GENERATE_MIPMAP_HINT: GLenum = 33170; pub const GEQUAL: GLenum = 518; pub const GREATER: GLenum = 516; pub const GREEN_BITS: GLenum = 3411; pub const HALF_FLOAT: GLenum = 5131; pub const HIGH_FLOAT: GLenum = 36338; pub const HIGH_INT: GLenum = 36341; pub const IMPLEMENTATION_COLOR_READ_FORMAT: GLenum = 35739; pub const IMPLEMENTATION_COLOR_READ_TYPE: GLenum = 35738; pub const INCR: GLenum = 7682; pub const INCR_WRAP: GLenum = 34055; pub const INT: GLenum = 5124; pub const INTERLEAVED_ATTRIBS: GLenum = 35980; pub const INT_2_10_10_10_REV: GLenum = 36255; pub const INT_SAMPLER_2D: GLenum = 36298; pub const INT_SAMPLER_2D_ARRAY: GLenum = 36303; pub const INT_SAMPLER_3D: GLenum = 36299; pub const INT_SAMPLER_CUBE: GLenum = 36300; pub const INT_VEC2: GLenum = 35667; pub const INT_VEC3: GLenum = 35668; pub const INT_VEC4: GLenum = 35669; pub const INVALID_ENUM: GLenum = 1280; pub const INVALID_FRAMEBUFFER_OPERATION: GLenum = 1286; pub const INVALID_INDEX: GLenum = 4294967295; pub const INVALID_OPERATION: GLenum = 1282; pub const INVALID_VALUE: GLenum = 1281; pub const INVERT: GLenum = 5386; pub const KEEP: GLenum = 7680; pub const LEQUAL: GLenum = 515; pub const LESS: GLenum = 513; pub const LINEAR: GLenum = 9729; pub const LINEAR_MIPMAP_LINEAR: GLenum = 9987; pub const LINEAR_MIPMAP_NEAREST: GLenum = 9985; pub const LINES: GLenum = 1; pub const LINE_LOOP: GLenum = 2; pub const LINE_STRIP: GLenum = 3; pub const LINE_WIDTH: GLenum = 2849; pub const LINK_STATUS: GLenum = 35714; pub const LOW_FLOAT: GLenum = 36336; pub const LOW_INT: GLenum = 36339; pub const LUMINANCE: GLenum = 6409; pub const LUMINANCE_ALPHA: GLenum = 6410; pub const MAX: GLenum = 32776; pub const MAX_3D_TEXTURE_SIZE: GLenum = 32883; pub const MAX_ARRAY_TEXTURE_LAYERS: GLenum = 35071; pub const MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum = 37447; pub const MAX_COLOR_ATTACHMENTS: GLenum = 36063; pub const MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum = 35379; pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum = 35661; pub const MAX_COMBINED_UNIFORM_BLOCKS: GLenum = 35374; pub const MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum = 35377; pub const MAX_CUBE_MAP_TEXTURE_SIZE: GLenum = 34076; pub const MAX_DRAW_BUFFERS: GLenum = 34852; pub const MAX_ELEMENTS_INDICES: GLenum = 33001; pub const MAX_ELEMENTS_VERTICES: GLenum = 33000; pub const MAX_ELEMENT_INDEX: GLenum = 36203; pub const MAX_FRAGMENT_INPUT_COMPONENTS: GLenum = 37157; pub const MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum = 35373; pub const MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum = 35657; pub const MAX_FRAGMENT_UNIFORM_VECTORS: GLenum = 36349; pub const MAX_PROGRAM_TEXEL_OFFSET: GLenum = 35077; pub const MAX_RENDERBUFFER_SIZE: GLenum = 34024; pub const MAX_SAMPLES: GLenum = 36183; pub const MAX_SERVER_WAIT_TIMEOUT: GLenum = 37137; pub const MAX_TEXTURE_IMAGE_UNITS: GLenum = 34930; pub const MAX_TEXTURE_LOD_BIAS: GLenum = 34045; pub const MAX_TEXTURE_SIZE: GLenum = 3379; pub const MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum = 35978; pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum = 35979; pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum = 35968; pub const MAX_UNIFORM_BLOCK_SIZE: GLenum = 35376; pub const MAX_UNIFORM_BUFFER_BINDINGS: GLenum = 35375; pub const MAX_VARYING_COMPONENTS: GLenum = 35659; pub const MAX_VARYING_VECTORS: GLenum = 36348; pub const MAX_VERTEX_ATTRIBS: GLenum = 34921; pub const MAX_VERTEX_OUTPUT_COMPONENTS: GLenum = 37154; pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum = 35660; pub const MAX_VERTEX_UNIFORM_BLOCKS: GLenum = 35371; pub const MAX_VERTEX_UNIFORM_COMPONENTS: GLenum = 35658; pub const MAX_VERTEX_UNIFORM_VECTORS: GLenum = 36347; pub const MAX_VIEWPORT_DIMS: GLenum = 3386; pub const MEDIUM_FLOAT: GLenum = 36337; pub const MEDIUM_INT: GLenum = 36340; pub const MIN: GLenum = 32775; pub const MIN_PROGRAM_TEXEL_OFFSET: GLenum = 35076; pub const MIRRORED_REPEAT: GLenum = 33648; pub const NEAREST: GLenum = 9728; pub const NEAREST_MIPMAP_LINEAR: GLenum = 9986; pub const NEAREST_MIPMAP_NEAREST: GLenum = 9984; pub const NEVER: GLenum = 512; pub const NICEST: GLenum = 4354; pub const NONE: GLenum = 0; pub const NOTEQUAL: GLenum = 517; pub const NO_ERROR: GLenum = 0; pub const OBJECT_TYPE: GLenum = 37138; pub const ONE: GLenum = 1; pub const ONE_MINUS_CONSTANT_ALPHA: GLenum = 32772; pub const ONE_MINUS_CONSTANT_COLOR: GLenum = 32770; pub const ONE_MINUS_DST_ALPHA: GLenum = 773; pub const ONE_MINUS_DST_COLOR: GLenum = 775; pub const ONE_MINUS_SRC_ALPHA: GLenum = 771; pub const ONE_MINUS_SRC_COLOR: GLenum = 769; pub const OUT_OF_MEMORY: GLenum = 1285; pub const PACK_ALIGNMENT: GLenum = 3333; pub const PACK_ROW_LENGTH: GLenum = 3330; pub const PACK_SKIP_PIXELS: GLenum = 3332; pub const PACK_SKIP_ROWS: GLenum = 3331; pub const PIXEL_PACK_BUFFER: GLenum = 35051; pub const PIXEL_PACK_BUFFER_BINDING: GLenum = 35053; pub const PIXEL_UNPACK_BUFFER: GLenum = 35052; pub const PIXEL_UNPACK_BUFFER_BINDING: GLenum = 35055; pub const POINTS: GLenum = 0; pub const POLYGON_OFFSET_FACTOR: GLenum = 32824; pub const POLYGON_OFFSET_FILL: GLenum = 32823; pub const POLYGON_OFFSET_UNITS: GLenum = 10752; pub const QUERY_RESULT: GLenum = 34918; pub const QUERY_RESULT_AVAILABLE: GLenum = 34919; pub const R11F_G11F_B10F: GLenum = 35898; pub const R16F: GLenum = 33325; pub const R16I: GLenum = 33331; pub const R16UI: GLenum = 33332; pub const R32F: GLenum = 33326; pub const R32I: GLenum = 33333; pub const R32UI: GLenum = 33334; pub const R8: GLenum = 33321; pub const R8I: GLenum = 33329; pub const R8UI: GLenum = 33330; pub const R8_SNORM: GLenum = 36756; pub const RASTERIZER_DISCARD: GLenum = 35977; pub const READ_BUFFER: GLenum = 3074; pub const READ_FRAMEBUFFER: GLenum = 36008; pub const READ_FRAMEBUFFER_BINDING: GLenum = 36010; pub const RED: GLenum = 6403; pub const RED_BITS: GLenum = 3410; pub const RED_INTEGER: GLenum = 36244; pub const RENDERBUFFER: GLenum = 36161; pub const RENDERBUFFER_ALPHA_SIZE: GLenum = 36179; pub const RENDERBUFFER_BINDING: GLenum = 36007; pub const RENDERBUFFER_BLUE_SIZE: GLenum = 36178; pub const RENDERBUFFER_DEPTH_SIZE: GLenum = 36180; pub const RENDERBUFFER_GREEN_SIZE: GLenum = 36177; pub const RENDERBUFFER_HEIGHT: GLenum = 36163; pub const RENDERBUFFER_INTERNAL_FORMAT: GLenum = 36164; pub const RENDERBUFFER_RED_SIZE: GLenum = 36176; pub const RENDERBUFFER_SAMPLES: GLenum = 36011; pub const RENDERBUFFER_STENCIL_SIZE: GLenum = 36181; pub const RENDERBUFFER_WIDTH: GLenum = 36162; pub const RENDERER: GLenum = 7937; pub const REPEAT: GLenum = 10497; pub const REPLACE: GLenum = 7681; pub const RG: GLenum = 33319; pub const RG16F: GLenum = 33327; pub const RG16I: GLenum = 33337; pub const RG16UI: GLenum = 33338; pub const RG32F: GLenum = 33328; pub const RG32I: GLenum = 33339; pub const RG32UI: GLenum = 33340; pub const RG8: GLenum = 33323; pub const RG8I: GLenum = 33335; pub const RG8UI: GLenum = 33336; pub const RG8_SNORM: GLenum = 36757; pub const RGB: GLenum = 6407; pub const RGB10_A2: GLenum = 32857; pub const RGB10_A2UI: GLenum = 36975; pub const RGB16F: GLenum = 34843; pub const RGB16I: GLenum = 36233; pub const RGB16UI: GLenum = 36215; pub const RGB32F: GLenum = 34837; pub const RGB32I: GLenum = 36227; pub const RGB32UI: GLenum = 36209; pub const RGB565: GLenum = 36194; pub const RGB5_A1: GLenum = 32855; pub const RGB8: GLenum = 32849; pub const RGB8I: GLenum = 36239; pub const RGB8UI: GLenum = 36221; pub const RGB8_SNORM: GLenum = 36758; pub const RGB9_E5: GLenum = 35901; pub const RGBA: GLenum = 6408; pub const RGBA16F: GLenum = 34842; pub const RGBA16I: GLenum = 36232; pub const RGBA16UI: GLenum = 36214; pub const RGBA32F: GLenum = 34836; pub const RGBA32I: GLenum = 36226; pub const RGBA32UI: GLenum = 36208; pub const RGBA4: GLenum = 32854; pub const RGBA8: GLenum = 32856; pub const RGBA8I: GLenum = 36238; pub const RGBA8UI: GLenum = 36220; pub const RGBA8_SNORM: GLenum = 36759; pub const RGBA_INTEGER: GLenum = 36249; pub const RGB_INTEGER: GLenum = 36248; pub const RG_INTEGER: GLenum = 33320; pub const SAMPLER_2D: GLenum = 35678; pub const SAMPLER_2D_ARRAY: GLenum = 36289; pub const SAMPLER_2D_ARRAY_SHADOW: GLenum = 36292; pub const SAMPLER_2D_SHADOW: GLenum = 35682; pub const SAMPLER_3D: GLenum = 35679; pub const SAMPLER_BINDING: GLenum = 35097; pub const SAMPLER_CUBE: GLenum = 35680; pub const SAMPLER_CUBE_SHADOW: GLenum = 36293; pub const SAMPLES: GLenum = 32937; pub const SAMPLE_ALPHA_TO_COVERAGE: GLenum = 32926; pub const SAMPLE_BUFFERS: GLenum = 32936; pub const SAMPLE_COVERAGE: GLenum = 32928; pub const SAMPLE_COVERAGE_INVERT: GLenum = 32939; pub const SAMPLE_COVERAGE_VALUE: GLenum = 32938; pub const SCISSOR_BOX: GLenum = 3088; pub const SCISSOR_TEST: GLenum = 3089; pub const SEPARATE_ATTRIBS: GLenum = 35981; pub const SHADER_TYPE: GLenum = 35663; pub const SHADING_LANGUAGE_VERSION: GLenum = 35724; pub const SHORT: GLenum = 5122; pub const SIGNALED: GLenum = 37145; pub const SIGNED_NORMALIZED: GLenum = 36764; pub const SRC_ALPHA: GLenum = 770; pub const SRC_ALPHA_SATURATE: GLenum = 776; pub const SRC_COLOR: GLenum = 768; pub const SRGB: GLenum = 35904; pub const SRGB8: GLenum = 35905; pub const SRGB8_ALPHA8: GLenum = 35907; pub const STATIC_COPY: GLenum = 35046; pub const STATIC_DRAW: GLenum = 35044; pub const STATIC_READ: GLenum = 35045; pub const STENCIL: GLenum = 6146; pub const STENCIL_ATTACHMENT: GLenum = 36128; pub const STENCIL_BACK_FAIL: GLenum = 34817; pub const STENCIL_BACK_FUNC: GLenum = 34816; pub const STENCIL_BACK_PASS_DEPTH_FAIL: GLenum = 34818; pub const STENCIL_BACK_PASS_DEPTH_PASS: GLenum = 34819; pub const STENCIL_BACK_REF: GLenum = 36003; pub const STENCIL_BACK_VALUE_MASK: GLenum = 36004; pub const STENCIL_BACK_WRITEMASK: GLenum = 36005; pub const STENCIL_BITS: GLenum = 3415; pub const STENCIL_BUFFER_BIT: GLenum = 1024; pub const STENCIL_CLEAR_VALUE: GLenum = 2961; pub const STENCIL_FAIL: GLenum = 2964; pub const STENCIL_FUNC: GLenum = 2962; pub const STENCIL_INDEX8: GLenum = 36168; pub const STENCIL_PASS_DEPTH_FAIL: GLenum = 2965; pub const STENCIL_PASS_DEPTH_PASS: GLenum = 2966; pub const STENCIL_REF: GLenum = 2967; pub const STENCIL_TEST: GLenum = 2960; pub const STENCIL_VALUE_MASK: GLenum = 2963; pub const STENCIL_WRITEMASK: GLenum = 2968; pub const STREAM_COPY: GLenum = 35042; pub const STREAM_DRAW: GLenum = 35040; pub const STREAM_READ: GLenum = 35041; pub const SUBPIXEL_BITS: GLenum = 3408; pub const SYNC_CONDITION: GLenum = 37139; pub const SYNC_FENCE: GLenum = 37142; pub const SYNC_FLAGS: GLenum = 37141; pub const SYNC_FLUSH_COMMANDS_BIT: GLenum = 1; pub const SYNC_GPU_COMMANDS_COMPLETE: GLenum = 37143; pub const SYNC_STATUS: GLenum = 37140; pub const TEXTURE: GLenum = 5890; pub const TEXTURE0: GLenum = 33984; pub const TEXTURE1: GLenum = 33985; pub const TEXTURE10: GLenum = 33994; pub const TEXTURE11: GLenum = 33995; pub const TEXTURE12: GLenum = 33996; pub const TEXTURE13: GLenum = 33997; pub const TEXTURE14: GLenum = 33998; pub const TEXTURE15: GLenum = 33999; pub const TEXTURE16: GLenum = 34000; pub const TEXTURE17: GLenum = 34001; pub const TEXTURE18: GLenum = 34002; pub const TEXTURE19: GLenum = 34003; pub const TEXTURE2: GLenum = 33986; pub const TEXTURE20: GLenum = 34004; pub const TEXTURE21: GLenum = 34005; pub const TEXTURE22: GLenum = 34006; pub const TEXTURE23: GLenum = 34007; pub const TEXTURE24: GLenum = 34008; pub const TEXTURE25: GLenum = 34009; pub const TEXTURE26: GLenum = 34010; pub const TEXTURE27: GLenum = 34011; pub const TEXTURE28: GLenum = 34012; pub const TEXTURE29: GLenum = 34013; pub const TEXTURE3: GLenum = 33987; pub const TEXTURE30: GLenum = 34014; pub const TEXTURE31: GLenum = 34015; pub const TEXTURE4: GLenum = 33988; pub const TEXTURE5: GLenum = 33989; pub const TEXTURE6: GLenum = 33990; pub const TEXTURE7: GLenum = 33991; pub const TEXTURE8: GLenum = 33992; pub const TEXTURE9: GLenum = 33993; pub const TEXTURE_2D: GLenum = 3553; pub const TEXTURE_2D_ARRAY: GLenum = 35866; pub const TEXTURE_3D: GLenum = 32879; pub const TEXTURE_BASE_LEVEL: GLenum = 33084; pub const TEXTURE_BINDING_2D: GLenum = 32873; pub const TEXTURE_BINDING_2D_ARRAY: GLenum = 35869; pub const TEXTURE_BINDING_3D: GLenum = 32874; pub const TEXTURE_BINDING_CUBE_MAP: GLenum = 34068; pub const TEXTURE_COMPARE_FUNC: GLenum = 34893; pub const TEXTURE_COMPARE_MODE: GLenum = 34892; pub const TEXTURE_CUBE_MAP: GLenum = 34067; pub const TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum = 34070; pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum = 34072; pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum = 34074; pub const TEXTURE_CUBE_MAP_POSITIVE_X: GLenum = 34069; pub const TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum = 34071; pub const TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum = 34073; pub const TEXTURE_IMMUTABLE_FORMAT: GLenum = 37167; pub const TEXTURE_IMMUTABLE_LEVELS: GLenum = 33503; pub const TEXTURE_MAG_FILTER: GLenum = 10240; pub const TEXTURE_MAX_LEVEL: GLenum = 33085; pub const TEXTURE_MAX_LOD: GLenum = 33083; pub const TEXTURE_MIN_FILTER: GLenum = 10241; pub const TEXTURE_MIN_LOD: GLenum = 33082; pub const TEXTURE_WRAP_R: GLenum = 32882; pub const TEXTURE_WRAP_S: GLenum = 10242; pub const TEXTURE_WRAP_T: GLenum = 10243; pub const TIMEOUT_EXPIRED: GLenum = 37147; pub const TIMEOUT_IGNORED: GLint64 = -1; pub const TRANSFORM_FEEDBACK: GLenum = 36386; pub const TRANSFORM_FEEDBACK_ACTIVE: GLenum = 36388; pub const TRANSFORM_FEEDBACK_BINDING: GLenum = 36389; pub const TRANSFORM_FEEDBACK_BUFFER: GLenum = 35982; pub const TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum = 35983; pub const TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum = 35967; pub const TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum = 35973; pub const TRANSFORM_FEEDBACK_BUFFER_START: GLenum = 35972; pub const TRANSFORM_FEEDBACK_PAUSED: GLenum = 36387; pub const TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum = 35976; pub const TRANSFORM_FEEDBACK_VARYINGS: GLenum = 35971; pub const TRIANGLES: GLenum = 4; pub const TRIANGLE_FAN: GLenum = 6; pub const TRIANGLE_STRIP: GLenum = 5; pub const UNIFORM_ARRAY_STRIDE: GLenum = 35388; pub const UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum = 35394; pub const UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum = 35395; pub const UNIFORM_BLOCK_BINDING: GLenum = 35391; pub const UNIFORM_BLOCK_DATA_SIZE: GLenum = 35392; pub const UNIFORM_BLOCK_INDEX: GLenum = 35386; pub const UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum = 35398; pub const UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum = 35396; pub const UNIFORM_BUFFER: GLenum = 35345; pub const UNIFORM_BUFFER_BINDING: GLenum = 35368; pub const UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum = 35380; pub const UNIFORM_BUFFER_SIZE: GLenum = 35370; pub const UNIFORM_BUFFER_START: GLenum = 35369; pub const UNIFORM_IS_ROW_MAJOR: GLenum = 35390; pub const UNIFORM_MATRIX_STRIDE: GLenum = 35389; pub const UNIFORM_OFFSET: GLenum = 35387; pub const UNIFORM_SIZE: GLenum = 35384; pub const UNIFORM_TYPE: GLenum = 35383; pub const UNPACK_ALIGNMENT: GLenum = 3317; pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum = 37443; pub const UNPACK_FLIP_Y_WEBGL: GLenum = 37440; pub const UNPACK_IMAGE_HEIGHT: GLenum = 32878; pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum = 37441; pub const UNPACK_ROW_LENGTH: GLenum = 3314; pub const UNPACK_SKIP_IMAGES: GLenum = 32877; pub const UNPACK_SKIP_PIXELS: GLenum = 3316; pub const UNPACK_SKIP_ROWS: GLenum = 3315; pub const UNSIGNALED: GLenum = 37144; pub const UNSIGNED_BYTE: GLenum = 5121; pub const UNSIGNED_INT: GLenum = 5125; pub const UNSIGNED_INT_10F_11F_11F_REV: GLenum = 35899; pub const UNSIGNED_INT_24_8: GLenum = 34042; pub const UNSIGNED_INT_2_10_10_10_REV: GLenum = 33640; pub const UNSIGNED_INT_5_9_9_9_REV: GLenum = 35902; pub const UNSIGNED_INT_SAMPLER_2D: GLenum = 36306; pub const UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum = 36311; pub const UNSIGNED_INT_SAMPLER_3D: GLenum = 36307; pub const UNSIGNED_INT_SAMPLER_CUBE: GLenum = 36308; pub const UNSIGNED_INT_VEC2: GLenum = 36294; pub const UNSIGNED_INT_VEC3: GLenum = 36295; pub const UNSIGNED_INT_VEC4: GLenum = 36296; pub const UNSIGNED_NORMALIZED: GLenum = 35863; pub const UNSIGNED_SHORT: GLenum = 5123; pub const UNSIGNED_SHORT_4_4_4_4: GLenum = 32819; pub const UNSIGNED_SHORT_5_5_5_1: GLenum = 32820; pub const UNSIGNED_SHORT_5_6_5: GLenum = 33635; pub const VALIDATE_STATUS: GLenum = 35715; pub const VENDOR: GLenum = 7936; pub const VERSION: GLenum = 7938; pub const VERTEX_ARRAY_BINDING: GLenum = 34229; pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum = 34975; pub const VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum = 35070; pub const VERTEX_ATTRIB_ARRAY_ENABLED: GLenum = 34338; pub const VERTEX_ATTRIB_ARRAY_INTEGER: GLenum = 35069; pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum = 34922; pub const VERTEX_ATTRIB_ARRAY_POINTER: GLenum = 34373; pub const VERTEX_ATTRIB_ARRAY_SIZE: GLenum = 34339; pub const VERTEX_ATTRIB_ARRAY_STRIDE: GLenum = 34340; pub const VERTEX_ATTRIB_ARRAY_TYPE: GLenum = 34341; pub const VERTEX_SHADER: GLenum = 35633; pub const VIEWPORT: GLenum = 2978; pub const WAIT_FAILED: GLenum = 37149; pub const ZERO: GLenum = 0; pub fn active_texture(&self, texture: GLenum) { js!( @(no_return) @{self}.activeTexture(@{texture}); ); } pub fn attach_shader(&self, program: &WebGLProgram, shader: &WebGLShader) { js!( @(no_return) @{self}.attachShader(@{program}, @{shader}); ); } pub fn begin_query(&self, target: GLenum, query: &WebGLQuery) { js!( @(no_return) @{self}.beginQuery(@{target}, @{query}); ); } pub fn begin_transform_feedback(&self, primitive_mode: GLenum) { js!( @(no_return) @{self}.beginTransformFeedback(@{primitive_mode}); ); } pub fn bind_attrib_location(&self, program: &WebGLProgram, index: GLuint, name: &str) { js!( @(no_return) @{self}.bindAttribLocation(@{program}, @{index}, @{name}); ); } pub fn bind_buffer(&self, target: GLenum, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.bindBuffer(@{target}, @{buffer}); ); } pub fn bind_buffer_base(&self, target: GLenum, index: GLuint, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.bindBufferBase(@{target}, @{index}, @{buffer}); ); } pub fn bind_buffer_range(&self, target: GLenum, index: GLuint, buffer: Option<&WebGLBuffer>, offset: GLintptr, size: GLsizeiptr) { js!( @(no_return) @{self}.bindBufferRange(@{target}, @{index}, @{buffer}, @{(offset as f64)}, @{(size as f64)}); ); } pub fn bind_framebuffer(&self, target: GLenum, framebuffer: Option<&WebGLFramebuffer>) { js!( @(no_return) @{self}.bindFramebuffer(@{target}, @{framebuffer}); ); } pub fn bind_renderbuffer(&self, target: GLenum, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.bindRenderbuffer(@{target}, @{renderbuffer}); ); } pub fn bind_sampler(&self, unit: GLuint, sampler: Option<&WebGLSampler>) { js!( @(no_return) @{self}.bindSampler(@{unit}, @{sampler}); ); } pub fn bind_texture(&self, target: GLenum, texture: Option<&WebGLTexture>) { js!( @(no_return) @{self}.bindTexture(@{target}, @{texture}); ); } pub fn bind_transform_feedback(&self, target: GLenum, tf: Option<&WebGLTransformFeedback>) { js!( @(no_return) @{self}.bindTransformFeedback(@{target}, @{tf}); ); } pub fn bind_vertex_array(&self, array: Option<&WebGLVertexArrayObject>) { js!( @(no_return) @{self}.bindVertexArray(@{array}); ); } pub fn blend_color(&self, red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf) { js!( @(no_return) @{self}.blendColor(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn blend_equation(&self, mode: GLenum) { js!( @(no_return) @{self}.blendEquation(@{mode}); ); } pub fn blend_equation_separate(&self, mode_rgb: GLenum, mode_alpha: GLenum) { js!( @(no_return) @{self}.blendEquationSeparate(@{mode_rgb}, @{mode_alpha}); ); } pub fn blend_func(&self, sfactor: GLenum, dfactor: GLenum) { js!( @(no_return) @{self}.blendFunc(@{sfactor}, @{dfactor}); ); } pub fn blend_func_separate(&self, src_rgb: GLenum, dst_rgb: GLenum, src_alpha: GLenum, dst_alpha: GLenum) { js!( @(no_return) @{self}.blendFuncSeparate(@{src_rgb}, @{dst_rgb}, @{src_alpha}, @{dst_alpha}); ); } pub fn blit_framebuffer(&self, src_x0: GLint, src_y0: GLint, src_x1: GLint, src_y1: GLint, dst_x0: GLint, dst_y0: GLint, dst_x1: GLint, dst_y1: GLint, mask: GLbitfield, filter: GLenum) { js!( @(no_return) @{self}.blitFramebuffer(@{src_x0}, @{src_y0}, @{src_x1}, @{src_y1}, @{dst_x0}, @{dst_y0}, @{dst_x1}, @{dst_y1}, @{mask}, @{filter}); ); } pub fn buffer_data(&self, target: GLenum, size: GLsizeiptr, usage: GLenum) { js!( @(no_return) @{self}.bufferData(@{target}, @{(size as f64)}, @{usage}); ); } pub fn buffer_data_1(&self, target: GLenum, src_data: Option<&ArrayBuffer>, usage: GLenum) { js!( @(no_return) @{self}.bufferData(@{target}, @{src_data}, @{usage}); ); } pub fn buffer_data_2<'a0, T0>(&self, target: GLenum, src_data: T0, usage: GLenum, src_offset: GLuint, length: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.bufferData(@{target}, @{unsafe { src_data.as_array_buffer_view() }}, @{usage}, @{src_offset}, @{length}); ); } pub fn buffer_sub_data(&self, target: GLenum, dst_byte_offset: GLintptr, src_data: &ArrayBuffer) { js!( @(no_return) @{self}.bufferSubData(@{target}, @{(dst_byte_offset as f64)}, @{src_data}); ); } pub fn buffer_sub_data_1<'a0, T0>(&self, target: GLenum, dst_byte_offset: GLintptr, src_data: T0, src_offset: GLuint, length: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.bufferSubData(@{target}, @{(dst_byte_offset as f64)}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{length}); ); } pub fn canvas(&self) -> CanvasElement { (js! { return @{self}.canvas; } ).try_into().unwrap() } pub fn check_framebuffer_status(&self, target: GLenum) -> GLenum { (js! { return @{self}.checkFramebufferStatus(@{target}); } ).try_into().unwrap() } pub fn clear(&self, mask: GLbitfield) { js!( @(no_return) @{self}.clear(@{mask}); ); } pub fn clear_bufferfi(&self, buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint) { js!( @(no_return) @{self}.clearBufferfi(@{buffer}, @{drawbuffer}, @{depth}, @{stencil}); ); } pub fn clear_bufferfv<'a0, T0>(&self, buffer: GLenum, drawbuffer: GLint, values: T0, src_offset: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.clearBufferfv(@{buffer}, @{drawbuffer}, @{unsafe { values.as_typed_array() }}, @{src_offset}); ); } pub fn clear_bufferiv<'a0, T0>(&self, buffer: GLenum, drawbuffer: GLint, values: T0, src_offset: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.clearBufferiv(@{buffer}, @{drawbuffer}, @{unsafe { values.as_typed_array() }}, @{src_offset}); ); } pub fn clear_bufferuiv<'a0, T0>(&self, buffer: GLenum, drawbuffer: GLint, values: T0, src_offset: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.clearBufferuiv(@{buffer}, @{drawbuffer}, @{unsafe { values.as_typed_array() }}, @{src_offset}); ); } pub fn clear_color(&self, red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf) { js!( @(no_return) @{self}.clearColor(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn clear_depth(&self, depth: GLclampf) { js!( @(no_return) @{self}.clearDepth(@{depth}); ); } pub fn clear_stencil(&self, s: GLint) { js!( @(no_return) @{self}.clearStencil(@{s}); ); } pub fn client_wait_sync(&self, sync: &WebGLSync, flags: GLbitfield, timeout: GLuint64) -> GLenum { (js! { return @{self}.clientWaitSync(@{sync}, @{flags}, @{(timeout as f64)}); } ).try_into().unwrap() } pub fn color_mask(&self, red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean) { js!( @(no_return) @{self}.colorMask(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn compile_shader(&self, shader: &WebGLShader) { js!( @(no_return) @{self}.compileShader(@{shader}); ); } pub fn compressed_tex_image2_d(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_image2_d_1<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn compressed_tex_image2_d_2<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: T0) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{unsafe { data.as_array_buffer_view() }}); ); } pub fn compressed_tex_image3_d(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_image3_d_1<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn compressed_tex_sub_image2_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_sub_image2_d_1<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn compressed_tex_sub_image2_d_2<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: T0) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{unsafe { data.as_array_buffer_view() }}); ); } pub fn compressed_tex_sub_image3_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, image_size: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.compressedTexSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{image_size}, @{(offset as f64)}); ); } pub fn compressed_tex_sub_image3_d_1<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, src_data: T0, src_offset: GLuint, src_length_override: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}, @{src_length_override}); ); } pub fn copy_buffer_sub_data(&self, read_target: GLenum, write_target: GLenum, read_offset: GLintptr, write_offset: GLintptr, size: GLsizeiptr) { js!( @(no_return) @{self}.copyBufferSubData(@{read_target}, @{write_target}, @{(read_offset as f64)}, @{(write_offset as f64)}, @{(size as f64)}); ); } pub fn copy_tex_image2_d(&self, target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint) { js!( @(no_return) @{self}.copyTexImage2D(@{target}, @{level}, @{internalformat}, @{x}, @{y}, @{width}, @{height}, @{border}); ); } pub fn copy_tex_sub_image2_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.copyTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{x}, @{y}, @{width}, @{height}); ); } pub fn copy_tex_sub_image3_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.copyTexSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{x}, @{y}, @{width}, @{height}); ); } pub fn create_buffer(&self, ) -> Option<WebGLBuffer> { (js! { return @{self}.createBuffer(); } ).try_into().ok() } pub fn create_framebuffer(&self, ) -> Option<WebGLFramebuffer> { (js! { return @{self}.createFramebuffer(); } ).try_into().ok() } pub fn create_program(&self, ) -> Option<WebGLProgram> { (js! { return @{self}.createProgram(); } ).try_into().ok() } pub fn create_query(&self, ) -> Option<WebGLQuery> { (js! { return @{self}.createQuery(); } ).try_into().ok() } pub fn create_renderbuffer(&self, ) -> Option<WebGLRenderbuffer> { (js! { return @{self}.createRenderbuffer(); } ).try_into().ok() } pub fn create_sampler(&self, ) -> Option<WebGLSampler> { (js! { return @{self}.createSampler(); } ).try_into().ok() } pub fn create_shader(&self, type_: GLenum) -> Option<WebGLShader> { (js! { return @{self}.createShader(@{type_}); } ).try_into().ok() } pub fn create_texture(&self, ) -> Option<WebGLTexture> { (js! { return @{self}.createTexture(); } ).try_into().ok() } pub fn create_transform_feedback(&self, ) -> Option<WebGLTransformFeedback> { (js! { return @{self}.createTransformFeedback(); } ).try_into().ok() } pub fn create_vertex_array(&self, ) -> Option<WebGLVertexArrayObject> { (js! { return @{self}.createVertexArray(); } ).try_into().ok() } pub fn cull_face(&self, mode: GLenum) { js!( @(no_return) @{self}.cullFace(@{mode}); ); } pub fn delete_buffer(&self, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.deleteBuffer(@{buffer}); ); } pub fn delete_framebuffer(&self, framebuffer: Option<&WebGLFramebuffer>) { js!( @(no_return) @{self}.deleteFramebuffer(@{framebuffer}); ); } pub fn delete_program(&self, program: Option<&WebGLProgram>) { js!( @(no_return) @{self}.deleteProgram(@{program}); ); } pub fn delete_query(&self, query: Option<&WebGLQuery>) { js!( @(no_return) @{self}.deleteQuery(@{query}); ); } pub fn delete_renderbuffer(&self, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.deleteRenderbuffer(@{renderbuffer}); ); } pub fn delete_sampler(&self, sampler: Option<&WebGLSampler>) { js!( @(no_return) @{self}.deleteSampler(@{sampler}); ); } pub fn delete_shader(&self, shader: Option<&WebGLShader>) { js!( @(no_return) @{self}.deleteShader(@{shader}); ); } pub fn delete_sync(&self, sync: Option<&WebGLSync>) { js!( @(no_return) @{self}.deleteSync(@{sync}); ); } pub fn delete_texture(&self, texture: Option<&WebGLTexture>) { js!( @(no_return) @{self}.deleteTexture(@{texture}); ); } pub fn delete_transform_feedback(&self, tf: Option<&WebGLTransformFeedback>) { js!( @(no_return) @{self}.deleteTransformFeedback(@{tf}); ); } pub fn delete_vertex_array(&self, vertex_array: Option<&WebGLVertexArrayObject>) { js!( @(no_return) @{self}.deleteVertexArray(@{vertex_array}); ); } pub fn depth_func(&self, func: GLenum) { js!( @(no_return) @{self}.depthFunc(@{func}); ); } pub fn depth_mask(&self, flag: GLboolean) { js!( @(no_return) @{self}.depthMask(@{flag}); ); } pub fn depth_range(&self, z_near: GLclampf, z_far: GLclampf) { js!( @(no_return) @{self}.depthRange(@{z_near}, @{z_far}); ); } pub fn detach_shader(&self, program: &WebGLProgram, shader: &WebGLShader) { js!( @(no_return) @{self}.detachShader(@{program}, @{shader}); ); } pub fn disable(&self, cap: GLenum) { js!( @(no_return) @{self}.disable(@{cap}); ); } pub fn disable_vertex_attrib_array(&self, index: GLuint) { js!( @(no_return) @{self}.disableVertexAttribArray(@{index}); ); } pub fn draw_arrays(&self, mode: GLenum, first: GLint, count: GLsizei) { js!( @(no_return) @{self}.drawArrays(@{mode}, @{first}, @{count}); ); } pub fn draw_arrays_instanced(&self, mode: GLenum, first: GLint, count: GLsizei, instance_count: GLsizei) { js!( @(no_return) @{self}.drawArraysInstanced(@{mode}, @{first}, @{count}, @{instance_count}); ); } pub fn draw_buffers(&self, buffers: &[GLenum]) { js!( @(no_return) @{self}.drawBuffers(@{buffers}); ); } pub fn draw_elements(&self, mode: GLenum, count: GLsizei, type_: GLenum, offset: GLintptr) { js!( @(no_return) @{self}.drawElements(@{mode}, @{count}, @{type_}, @{(offset as f64)}); ); } pub fn draw_elements_instanced(&self, mode: GLenum, count: GLsizei, type_: GLenum, offset: GLintptr, instance_count: GLsizei) { js!( @(no_return) @{self}.drawElementsInstanced(@{mode}, @{count}, @{type_}, @{(offset as f64)}, @{instance_count}); ); } pub fn draw_range_elements(&self, mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type_: GLenum, offset: GLintptr) { js!( @(no_return) @{self}.drawRangeElements(@{mode}, @{start}, @{end}, @{count}, @{type_}, @{(offset as f64)}); ); } pub fn drawing_buffer_height(&self) -> GLsizei { (js! { return @{self}.drawingBufferHeight; } ).try_into().unwrap() } pub fn drawing_buffer_width(&self) -> GLsizei { (js! { return @{self}.drawingBufferWidth; } ).try_into().unwrap() } pub fn enable(&self, cap: GLenum) { js!( @(no_return) @{self}.enable(@{cap}); ); } pub fn enable_vertex_attrib_array(&self, index: GLuint) { js!( @(no_return) @{self}.enableVertexAttribArray(@{index}); ); } pub fn end_query(&self, target: GLenum) { js!( @(no_return) @{self}.endQuery(@{target}); ); } pub fn end_transform_feedback(&self, ) { js!( @(no_return) @{self}.endTransformFeedback(); ); } pub fn fence_sync(&self, condition: GLenum, flags: GLbitfield) -> Option<WebGLSync> { (js! { return @{self}.fenceSync(@{condition}, @{flags}); } ).try_into().ok() } pub fn finish(&self, ) { js!( @(no_return) @{self}.finish(); ); } pub fn flush(&self, ) { js!( @(no_return) @{self}.flush(); ); } pub fn framebuffer_renderbuffer(&self, target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.framebufferRenderbuffer(@{target}, @{attachment}, @{renderbuffertarget}, @{renderbuffer}); ); } pub fn framebuffer_texture2_d(&self, target: GLenum, attachment: GLenum, textarget: GLenum, texture: Option<&WebGLTexture>, level: GLint) { js!( @(no_return) @{self}.framebufferTexture2D(@{target}, @{attachment}, @{textarget}, @{texture}, @{level}); ); } pub fn framebuffer_texture_layer(&self, target: GLenum, attachment: GLenum, texture: Option<&WebGLTexture>, level: GLint, layer: GLint) { js!( @(no_return) @{self}.framebufferTextureLayer(@{target}, @{attachment}, @{texture}, @{level}, @{layer}); ); } pub fn front_face(&self, mode: GLenum) { js!( @(no_return) @{self}.frontFace(@{mode}); ); } pub fn generate_mipmap(&self, target: GLenum) { js!( @(no_return) @{self}.generateMipmap(@{target}); ); } pub fn get_active_attrib(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getActiveAttrib(@{program}, @{index}); } ).try_into().ok() } pub fn get_active_uniform(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getActiveUniform(@{program}, @{index}); } ).try_into().ok() } pub fn get_active_uniform_block_name(&self, program: &WebGLProgram, uniform_block_index: GLuint) -> Option<String> { (js! { return @{self}.getActiveUniformBlockName(@{program}, @{uniform_block_index}); } ).try_into().ok() } pub fn get_active_uniform_block_parameter(&self, program: &WebGLProgram, uniform_block_index: GLuint, pname: GLenum) -> Value { (js! { return @{self}.getActiveUniformBlockParameter(@{program}, @{uniform_block_index}, @{pname}); } ).try_into().unwrap() } pub fn get_active_uniforms(&self, program: &WebGLProgram, uniform_indices: &[GLuint], pname: GLenum) -> Value { (js! { return @{self}.getActiveUniforms(@{program}, @{uniform_indices}, @{pname}); } ).try_into().unwrap() } pub fn get_attached_shaders(&self, program: &WebGLProgram) -> Option<Vec<WebGLShader>> { (js! { return @{self}.getAttachedShaders(@{program}); } ).try_into().ok() } pub fn get_attrib_location(&self, program: &WebGLProgram, name: &str) -> GLint { (js! { return @{self}.getAttribLocation(@{program}, @{name}); } ).try_into().unwrap() } pub fn get_buffer_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getBufferParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_buffer_sub_data<'a0, T0>(&self, target: GLenum, src_byte_offset: GLintptr, dst_buffer: T0, dst_offset: GLuint, length: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.getBufferSubData(@{target}, @{(src_byte_offset as f64)}, @{unsafe { dst_buffer.as_array_buffer_view() }}, @{dst_offset}, @{length}); ); } pub fn get_context_attributes(&self, ) -> Option<WebGLContextAttributes> { (js! { return @{self}.getContextAttributes(); } ).try_into().ok() } pub fn get_error(&self, ) -> GLenum { (js! { return @{self}.getError(); } ).try_into().unwrap() } pub fn get_extension<E: Extension>(&self) -> Option<E> { (js! { return @{self}.getExtension(@{E::NAME}); } ).try_into().ok() } pub fn get_frag_data_location(&self, program: &WebGLProgram, name: &str) -> GLint { (js! { return @{self}.getFragDataLocation(@{program}, @{name}); } ).try_into().unwrap() } pub fn get_framebuffer_attachment_parameter(&self, target: GLenum, attachment: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getFramebufferAttachmentParameter(@{target}, @{attachment}, @{pname}); } ).try_into().unwrap() } pub fn get_indexed_parameter(&self, target: GLenum, index: GLuint) -> Value { (js! { return @{self}.getIndexedParameter(@{target}, @{index}); } ).try_into().unwrap() } pub fn get_internalformat_parameter(&self, target: GLenum, internalformat: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getInternalformatParameter(@{target}, @{internalformat}, @{pname}); } ).try_into().unwrap() } pub fn get_parameter(&self, pname: GLenum) -> Value { (js! { return @{self}.getParameter(@{pname}); } ).try_into().unwrap() } pub fn get_program_info_log(&self, program: &WebGLProgram) -> Option<String> { (js! { return @{self}.getProgramInfoLog(@{program}); } ).try_into().ok() } pub fn get_program_parameter(&self, program: &WebGLProgram, pname: GLenum) -> Value { (js! { return @{self}.getProgramParameter(@{program}, @{pname}); } ).try_into().unwrap() } pub fn get_query(&self, target: GLenum, pname: GLenum) -> Option<WebGLQuery> { (js! { return @{self}.getQuery(@{target}, @{pname}); } ).try_into().ok() } pub fn get_query_parameter(&self, query: &WebGLQuery, pname: GLenum) -> Value { (js! { return @{self}.getQueryParameter(@{query}, @{pname}); } ).try_into().unwrap() } pub fn get_renderbuffer_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getRenderbufferParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_sampler_parameter(&self, sampler: &WebGLSampler, pname: GLenum) -> Value { (js! { return @{self}.getSamplerParameter(@{sampler}, @{pname}); } ).try_into().unwrap() } pub fn get_shader_info_log(&self, shader: &WebGLShader) -> Option<String> { (js! { return @{self}.getShaderInfoLog(@{shader}); } ).try_into().ok() } pub fn get_shader_parameter(&self, shader: &WebGLShader, pname: GLenum) -> Value { (js! { return @{self}.getShaderParameter(@{shader}, @{pname}); } ).try_into().unwrap() } pub fn get_shader_precision_format(&self, shadertype: GLenum, precisiontype: GLenum) -> Option<WebGLShaderPrecisionFormat> { (js! { return @{self}.getShaderPrecisionFormat(@{shadertype}, @{precisiontype}); } ).try_into().ok() } pub fn get_shader_source(&self, shader: &WebGLShader) -> Option<String> { (js! { return @{self}.getShaderSource(@{shader}); } ).try_into().ok() } pub fn get_supported_extensions(&self, ) -> Option<Vec<String>> { (js! { return @{self}.getSupportedExtensions(); } ).try_into().ok() } pub fn get_sync_parameter(&self, sync: &WebGLSync, pname: GLenum) -> Value { (js! { return @{self}.getSyncParameter(@{sync}, @{pname}); } ).try_into().unwrap() } pub fn get_tex_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getTexParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_transform_feedback_varying(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getTransformFeedbackVarying(@{program}, @{index}); } ).try_into().ok() } pub fn get_uniform(&self, program: &WebGLProgram, location: &WebGLUniformLocation) -> Value { (js! { return @{self}.getUniform(@{program}, @{location}); } ).try_into().unwrap() } pub fn get_uniform_block_index(&self, program: &WebGLProgram, uniform_block_name: &str) -> GLuint { (js! { return @{self}.getUniformBlockIndex(@{program}, @{uniform_block_name}); } ).try_into().unwrap() } pub fn get_uniform_indices(&self, program: &WebGLProgram, uniform_names: &[&str]) -> Option<Vec<GLuint>> { (js! { return @{self}.getUniformIndices(@{program}, @{uniform_names}); } ).try_into().ok() } pub fn get_uniform_location(&self, program: &WebGLProgram, name: &str) -> Option<WebGLUniformLocation> { (js! { return @{self}.getUniformLocation(@{program}, @{name}); } ).try_into().ok() } pub fn get_vertex_attrib(&self, index: GLuint, pname: GLenum) -> Value { (js! { return @{self}.getVertexAttrib(@{index}, @{pname}); } ).try_into().unwrap() } pub fn get_vertex_attrib_offset(&self, index: GLuint, pname: GLenum) -> GLintptr { (js! { return @{self}.getVertexAttribOffset(@{index}, @{pname}); } ).try_into().unwrap() } pub fn hint(&self, target: GLenum, mode: GLenum) { js!( @(no_return) @{self}.hint(@{target}, @{mode}); ); } pub fn invalidate_framebuffer(&self, target: GLenum, attachments: &[GLenum]) { js!( @(no_return) @{self}.invalidateFramebuffer(@{target}, @{attachments}); ); } pub fn invalidate_sub_framebuffer(&self, target: GLenum, attachments: &[GLenum], x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.invalidateSubFramebuffer(@{target}, @{attachments}, @{x}, @{y}, @{width}, @{height}); ); } pub fn is_buffer(&self, buffer: Option<&WebGLBuffer>) -> GLboolean { (js! { return @{self}.isBuffer(@{buffer}); } ).try_into().unwrap() } pub fn is_context_lost(&self, ) -> bool { (js! { return @{self}.isContextLost(); } ).try_into().unwrap() } pub fn is_enabled(&self, cap: GLenum) -> GLboolean { (js! { return @{self}.isEnabled(@{cap}); } ).try_into().unwrap() } pub fn is_framebuffer(&self, framebuffer: Option<&WebGLFramebuffer>) -> GLboolean { (js! { return @{self}.isFramebuffer(@{framebuffer}); } ).try_into().unwrap() } pub fn is_program(&self, program: Option<&WebGLProgram>) -> GLboolean { (js! { return @{self}.isProgram(@{program}); } ).try_into().unwrap() } pub fn is_query(&self, query: Option<&WebGLQuery>) -> GLboolean { (js! { return @{self}.isQuery(@{query}); } ).try_into().unwrap() } pub fn is_renderbuffer(&self, renderbuffer: Option<&WebGLRenderbuffer>) -> GLboolean { (js! { return @{self}.isRenderbuffer(@{renderbuffer}); } ).try_into().unwrap() } pub fn is_sampler(&self, sampler: Option<&WebGLSampler>) -> GLboolean { (js! { return @{self}.isSampler(@{sampler}); } ).try_into().unwrap() } pub fn is_shader(&self, shader: Option<&WebGLShader>) -> GLboolean { (js! { return @{self}.isShader(@{shader}); } ).try_into().unwrap() } pub fn is_sync(&self, sync: Option<&WebGLSync>) -> GLboolean { (js! { return @{self}.isSync(@{sync}); } ).try_into().unwrap() } pub fn is_texture(&self, texture: Option<&WebGLTexture>) -> GLboolean { (js! { return @{self}.isTexture(@{texture}); } ).try_into().unwrap() } pub fn is_transform_feedback(&self, tf: Option<&WebGLTransformFeedback>) -> GLboolean { (js! { return @{self}.isTransformFeedback(@{tf}); } ).try_into().unwrap() } pub fn is_vertex_array(&self, vertex_array: Option<&WebGLVertexArrayObject>) -> GLboolean { (js! { return @{self}.isVertexArray(@{vertex_array}); } ).try_into().unwrap() } pub fn line_width(&self, width: GLfloat) { js!( @(no_return) @{self}.lineWidth(@{width}); ); } pub fn link_program(&self, program: &WebGLProgram) { js!( @(no_return) @{self}.linkProgram(@{program}); ); } pub fn pause_transform_feedback(&self, ) { js!( @(no_return) @{self}.pauseTransformFeedback(); ); } pub fn pixel_storei(&self, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.pixelStorei(@{pname}, @{param}); ); } pub fn polygon_offset(&self, factor: GLfloat, units: GLfloat) { js!( @(no_return) @{self}.polygonOffset(@{factor}, @{units}); ); } pub fn read_buffer(&self, src: GLenum) { js!( @(no_return) @{self}.readBuffer(@{src}); ); } pub fn read_pixels<'a0, T0>(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, dst_data: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.readPixels(@{x}, @{y}, @{width}, @{height}, @{format}, @{type_}, @{dst_data.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn read_pixels_1(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, offset: GLintptr) { js!( @(no_return) @{self}.readPixels(@{x}, @{y}, @{width}, @{height}, @{format}, @{type_}, @{(offset as f64)}); ); } pub fn read_pixels_2<'a0, T0>(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, dst_data: T0, dst_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.readPixels(@{x}, @{y}, @{width}, @{height}, @{format}, @{type_}, @{unsafe { dst_data.as_array_buffer_view() }}, @{dst_offset}); ); } pub fn renderbuffer_storage(&self, target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.renderbufferStorage(@{target}, @{internalformat}, @{width}, @{height}); ); } pub fn renderbuffer_storage_multisample(&self, target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.renderbufferStorageMultisample(@{target}, @{samples}, @{internalformat}, @{width}, @{height}); ); } pub fn resume_transform_feedback(&self, ) { js!( @(no_return) @{self}.resumeTransformFeedback(); ); } pub fn sample_coverage(&self, value: GLclampf, invert: GLboolean) { js!( @(no_return) @{self}.sampleCoverage(@{value}, @{invert}); ); } pub fn sampler_parameterf(&self, sampler: &WebGLSampler, pname: GLenum, param: GLfloat) { js!( @(no_return) @{self}.samplerParameterf(@{sampler}, @{pname}, @{param}); ); } pub fn sampler_parameteri(&self, sampler: &WebGLSampler, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.samplerParameteri(@{sampler}, @{pname}, @{param}); ); } pub fn scissor(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.scissor(@{x}, @{y}, @{width}, @{height}); ); } pub fn shader_source(&self, shader: &WebGLShader, source: &str) { js!( @(no_return) @{self}.shaderSource(@{shader}, @{source}); ); } pub fn stencil_func(&self, func: GLenum, ref_: GLint, mask: GLuint) { js!( @(no_return) @{self}.stencilFunc(@{func}, @{ref_}, @{mask}); ); } pub fn stencil_func_separate(&self, face: GLenum, func: GLenum, ref_: GLint, mask: GLuint) { js!( @(no_return) @{self}.stencilFuncSeparate(@{face}, @{func}, @{ref_}, @{mask}); ); } pub fn stencil_mask(&self, mask: GLuint) { js!( @(no_return) @{self}.stencilMask(@{mask}); ); } pub fn stencil_mask_separate(&self, face: GLenum, mask: GLuint) { js!( @(no_return) @{self}.stencilMaskSeparate(@{face}, @{mask}); ); } pub fn stencil_op(&self, fail: GLenum, zfail: GLenum, zpass: GLenum) { js!( @(no_return) @{self}.stencilOp(@{fail}, @{zfail}, @{zpass}); ); } pub fn stencil_op_separate(&self, face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum) { js!( @(no_return) @{self}.stencilOpSeparate(@{face}, @{fail}, @{zfail}, @{zpass}); ); } pub fn tex_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, pixels: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{pixels.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_image2_d_1<T0>(&self, target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{format}, @{type_}, @{source}); ); } pub fn tex_image2_d_2(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_image2_d_3<T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{source}); ); } pub fn tex_image2_d_4<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, src_data: T0, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}); ); } pub fn tex_image3_d(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_image3_d_1<T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{source}); ); } pub fn tex_image3_d_2<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, src_data: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{src_data.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_image3_d_3<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, src_data: T0, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage3D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{depth}, @{border}, @{format}, @{type_}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}); ); } pub fn tex_parameterf(&self, target: GLenum, pname: GLenum, param: GLfloat) { js!( @(no_return) @{self}.texParameterf(@{target}, @{pname}, @{param}); ); } pub fn tex_parameteri(&self, target: GLenum, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.texParameteri(@{target}, @{pname}, @{param}); ); } pub fn tex_storage2_d(&self, target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.texStorage2D(@{target}, @{levels}, @{internalformat}, @{width}, @{height}); ); } pub fn tex_storage3_d(&self, target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei) { js!( @(no_return) @{self}.texStorage3D(@{target}, @{levels}, @{internalformat}, @{width}, @{height}, @{depth}); ); } pub fn tex_sub_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pixels: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{pixels.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_sub_image2_d_1<T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{format}, @{type_}, @{source}); ); } pub fn tex_sub_image2_d_2(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_sub_image2_d_3<T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{source}); ); } pub fn tex_sub_image2_d_4<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, src_data: T0, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{unsafe { src_data.as_array_buffer_view() }}, @{src_offset}); ); } pub fn tex_sub_image3_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type_: GLenum, pbo_offset: GLintptr) { js!( @(no_return) @{self}.texSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{type_}, @{(pbo_offset as f64)}); ); } pub fn tex_sub_image3_d_1<T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{type_}, @{source}); ); } pub fn tex_sub_image3_d_2<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type_: GLenum, src_data: Option<T0>, src_offset: GLuint) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texSubImage3D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{zoffset}, @{width}, @{height}, @{depth}, @{format}, @{type_}, @{src_data.map(|inner| unsafe { inner.as_array_buffer_view() })}, @{src_offset}); ); } pub fn transform_feedback_varyings(&self, program: &WebGLProgram, varyings: &[&str], buffer_mode: GLenum) { js!( @(no_return) @{self}.transformFeedbackVaryings(@{program}, @{varyings}, @{buffer_mode}); ); } pub fn uniform1f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat) { js!( @(no_return) @{self}.uniform1f(@{location}, @{x}); ); } pub fn uniform1fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform1fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform1fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform1fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform1i(&self, location: Option<&WebGLUniformLocation>, x: GLint) { js!( @(no_return) @{self}.uniform1i(@{location}, @{x}); ); } pub fn uniform1iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform1iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform1iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform1iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform1ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint) { js!( @(no_return) @{self}.uniform1ui(@{location}, @{v0}); ); } pub fn uniform1uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform1uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform2f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat) { js!( @(no_return) @{self}.uniform2f(@{location}, @{x}, @{y}); ); } pub fn uniform2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform2fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform2fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform2fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform2i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint) { js!( @(no_return) @{self}.uniform2i(@{location}, @{x}, @{y}); ); } pub fn uniform2iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform2iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform2iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform2iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform2ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint, v1: GLuint) { js!( @(no_return) @{self}.uniform2ui(@{location}, @{v0}, @{v1}); ); } pub fn uniform2uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform2uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform3f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat, z: GLfloat) { js!( @(no_return) @{self}.uniform3f(@{location}, @{x}, @{y}, @{z}); ); } pub fn uniform3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform3fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform3fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform3fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform3i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint, z: GLint) { js!( @(no_return) @{self}.uniform3i(@{location}, @{x}, @{y}, @{z}); ); } pub fn uniform3iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform3iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform3iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform3iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform3ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint, v1: GLuint, v2: GLuint) { js!( @(no_return) @{self}.uniform3ui(@{location}, @{v0}, @{v1}, @{v2}); ); } pub fn uniform3uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform3uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform4f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat) { js!( @(no_return) @{self}.uniform4f(@{location}, @{x}, @{y}, @{z}, @{w}); ); } pub fn uniform4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform4fv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform4fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform4fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform4i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint, z: GLint, w: GLint) { js!( @(no_return) @{self}.uniform4i(@{location}, @{x}, @{y}, @{z}, @{w}); ); } pub fn uniform4iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform4iv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform4iv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform4iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform4ui(&self, location: Option<&WebGLUniformLocation>, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint) { js!( @(no_return) @{self}.uniform4ui(@{location}, @{v0}, @{v1}, @{v2}, @{v3}); ); } pub fn uniform4uiv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.uniform4uiv(@{location}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_block_binding(&self, program: &WebGLProgram, uniform_block_index: GLuint, uniform_block_binding: GLuint) { js!( @(no_return) @{self}.uniformBlockBinding(@{program}, @{uniform_block_index}, @{uniform_block_binding}); ); } pub fn uniform_matrix2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix2fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix2x3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2x3fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix2x4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2x4fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix3fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix3x2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3x2fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix3x4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3x4fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix4fv_1<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix4x2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4x2fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn uniform_matrix4x3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, data: T0, src_offset: GLuint, src_length: GLuint) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4x3fv(@{location}, @{transpose}, @{unsafe { data.as_typed_array() }}, @{src_offset}, @{src_length}); ); } pub fn use_program(&self, program: Option<&WebGLProgram>) { js!( @(no_return) @{self}.useProgram(@{program}); ); } pub fn validate_program(&self, program: &WebGLProgram) { js!( @(no_return) @{self}.validateProgram(@{program}); ); } pub fn vertex_attrib1f(&self, index: GLuint, x: GLfloat) { js!( @(no_return) @{self}.vertexAttrib1f(@{index}, @{x}); ); } pub fn vertex_attrib1fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib1fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib2f(&self, index: GLuint, x: GLfloat, y: GLfloat) { js!( @(no_return) @{self}.vertexAttrib2f(@{index}, @{x}, @{y}); ); } pub fn vertex_attrib2fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib2fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib3f(&self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat) { js!( @(no_return) @{self}.vertexAttrib3f(@{index}, @{x}, @{y}, @{z}); ); } pub fn vertex_attrib3fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib3fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib4f(&self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat) { js!( @(no_return) @{self}.vertexAttrib4f(@{index}, @{x}, @{y}, @{z}, @{w}); ); } pub fn vertex_attrib4fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib4fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib_divisor(&self, index: GLuint, divisor: GLuint) { js!( @(no_return) @{self}.vertexAttribDivisor(@{index}, @{divisor}); ); } pub fn vertex_attrib_i4i(&self, index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint) { js!( @(no_return) @{self}.vertexAttribI4i(@{index}, @{x}, @{y}, @{z}, @{w}); ); } pub fn vertex_attrib_i4iv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.vertexAttribI4iv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib_i4ui(&self, index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint) { js!( @(no_return) @{self}.vertexAttribI4ui(@{index}, @{x}, @{y}, @{z}, @{w}); ); } pub fn vertex_attrib_i4uiv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, u32> { js!( @(no_return) @{self}.vertexAttribI4uiv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib_i_pointer(&self, index: GLuint, size: GLint, type_: GLenum, stride: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.vertexAttribIPointer(@{index}, @{size}, @{type_}, @{stride}, @{(offset as f64)}); ); } pub fn vertex_attrib_pointer(&self, index: GLuint, size: GLint, type_: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.vertexAttribPointer(@{index}, @{size}, @{type_}, @{normalized}, @{stride}, @{(offset as f64)}); ); } pub fn viewport(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.viewport(@{x}, @{y}, @{width}, @{height}); ); } pub fn wait_sync(&self, sync: &WebGLSync, flags: GLbitfield, timeout: GLint64) { js!( @(no_return) @{self}.waitSync(@{sync}, @{flags}, @{(timeout as f64)}); ); } } impl RenderingContext for WebGL2RenderingContext { type Error = ConversionError; fn from_canvas(canvas: &CanvasElement) -> Result<Self, ConversionError> { js!( return @{canvas}.getContext("webgl2"); ).try_into() } } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLActiveInfo")] pub struct WebGLActiveInfo(Reference); impl WebGLActiveInfo { pub fn name(&self) -> String { (js! { return @{self}.name; } ).try_into().unwrap() } pub fn size(&self) -> GLint { (js! { return @{self}.size; } ).try_into().unwrap() } pub fn type_(&self) -> GLenum { (js! { return @{self}.type; } ).try_into().unwrap() } } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLBuffer")] pub struct WebGLBuffer(Reference); impl WebGLBuffer { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLContextEvent")] pub struct WebGLContextEvent(Reference); impl WebGLContextEvent { pub fn status_message(&self) -> String { (js! { return @{self}.statusMessage; } ).try_into().unwrap() } } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLFramebuffer")] pub struct WebGLFramebuffer(Reference); impl WebGLFramebuffer { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLProgram")] pub struct WebGLProgram(Reference); impl WebGLProgram { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLQuery")] pub struct WebGLQuery(Reference); impl WebGLQuery { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLRenderbuffer")] pub struct WebGLRenderbuffer(Reference); impl WebGLRenderbuffer { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLRenderingContext")] pub struct WebGLRenderingContext(Reference); impl WebGLRenderingContext { pub const ACTIVE_ATTRIBUTES: GLenum = 35721; pub const ACTIVE_TEXTURE: GLenum = 34016; pub const ACTIVE_UNIFORMS: GLenum = 35718; pub const ALIASED_LINE_WIDTH_RANGE: GLenum = 33902; pub const ALIASED_POINT_SIZE_RANGE: GLenum = 33901; pub const ALPHA: GLenum = 6406; pub const ALPHA_BITS: GLenum = 3413; pub const ALWAYS: GLenum = 519; pub const ARRAY_BUFFER: GLenum = 34962; pub const ARRAY_BUFFER_BINDING: GLenum = 34964; pub const ATTACHED_SHADERS: GLenum = 35717; pub const BACK: GLenum = 1029; pub const BLEND: GLenum = 3042; pub const BLEND_COLOR: GLenum = 32773; pub const BLEND_DST_ALPHA: GLenum = 32970; pub const BLEND_DST_RGB: GLenum = 32968; pub const BLEND_EQUATION: GLenum = 32777; pub const BLEND_EQUATION_ALPHA: GLenum = 34877; pub const BLEND_EQUATION_RGB: GLenum = 32777; pub const BLEND_SRC_ALPHA: GLenum = 32971; pub const BLEND_SRC_RGB: GLenum = 32969; pub const BLUE_BITS: GLenum = 3412; pub const BOOL: GLenum = 35670; pub const BOOL_VEC2: GLenum = 35671; pub const BOOL_VEC3: GLenum = 35672; pub const BOOL_VEC4: GLenum = 35673; pub const BROWSER_DEFAULT_WEBGL: GLenum = 37444; pub const BUFFER_SIZE: GLenum = 34660; pub const BUFFER_USAGE: GLenum = 34661; pub const BYTE: GLenum = 5120; pub const CCW: GLenum = 2305; pub const CLAMP_TO_EDGE: GLenum = 33071; pub const COLOR_ATTACHMENT0: GLenum = 36064; pub const COLOR_BUFFER_BIT: GLenum = 16384; pub const COLOR_CLEAR_VALUE: GLenum = 3106; pub const COLOR_WRITEMASK: GLenum = 3107; pub const COMPILE_STATUS: GLenum = 35713; pub const COMPRESSED_TEXTURE_FORMATS: GLenum = 34467; pub const CONSTANT_ALPHA: GLenum = 32771; pub const CONSTANT_COLOR: GLenum = 32769; pub const CONTEXT_LOST_WEBGL: GLenum = 37442; pub const CULL_FACE: GLenum = 2884; pub const CULL_FACE_MODE: GLenum = 2885; pub const CURRENT_PROGRAM: GLenum = 35725; pub const CURRENT_VERTEX_ATTRIB: GLenum = 34342; pub const CW: GLenum = 2304; pub const DECR: GLenum = 7683; pub const DECR_WRAP: GLenum = 34056; pub const DELETE_STATUS: GLenum = 35712; pub const DEPTH_ATTACHMENT: GLenum = 36096; pub const DEPTH_BITS: GLenum = 3414; pub const DEPTH_BUFFER_BIT: GLenum = 256; pub const DEPTH_CLEAR_VALUE: GLenum = 2931; pub const DEPTH_COMPONENT: GLenum = 6402; pub const DEPTH_COMPONENT16: GLenum = 33189; pub const DEPTH_FUNC: GLenum = 2932; pub const DEPTH_RANGE: GLenum = 2928; pub const DEPTH_STENCIL: GLenum = 34041; pub const DEPTH_STENCIL_ATTACHMENT: GLenum = 33306; pub const DEPTH_TEST: GLenum = 2929; pub const DEPTH_WRITEMASK: GLenum = 2930; pub const DITHER: GLenum = 3024; pub const DONT_CARE: GLenum = 4352; pub const DST_ALPHA: GLenum = 772; pub const DST_COLOR: GLenum = 774; pub const DYNAMIC_DRAW: GLenum = 35048; pub const ELEMENT_ARRAY_BUFFER: GLenum = 34963; pub const ELEMENT_ARRAY_BUFFER_BINDING: GLenum = 34965; pub const EQUAL: GLenum = 514; pub const FASTEST: GLenum = 4353; pub const FLOAT: GLenum = 5126; pub const FLOAT_MAT2: GLenum = 35674; pub const FLOAT_MAT3: GLenum = 35675; pub const FLOAT_MAT4: GLenum = 35676; pub const FLOAT_VEC2: GLenum = 35664; pub const FLOAT_VEC3: GLenum = 35665; pub const FLOAT_VEC4: GLenum = 35666; pub const FRAGMENT_SHADER: GLenum = 35632; pub const FRAMEBUFFER: GLenum = 36160; pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum = 36049; pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum = 36048; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum = 36051; pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum = 36050; pub const FRAMEBUFFER_BINDING: GLenum = 36006; pub const FRAMEBUFFER_COMPLETE: GLenum = 36053; pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum = 36054; pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum = 36057; pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum = 36055; pub const FRAMEBUFFER_UNSUPPORTED: GLenum = 36061; pub const FRONT: GLenum = 1028; pub const FRONT_AND_BACK: GLenum = 1032; pub const FRONT_FACE: GLenum = 2886; pub const FUNC_ADD: GLenum = 32774; pub const FUNC_REVERSE_SUBTRACT: GLenum = 32779; pub const FUNC_SUBTRACT: GLenum = 32778; pub const GENERATE_MIPMAP_HINT: GLenum = 33170; pub const GEQUAL: GLenum = 518; pub const GREATER: GLenum = 516; pub const GREEN_BITS: GLenum = 3411; pub const HIGH_FLOAT: GLenum = 36338; pub const HIGH_INT: GLenum = 36341; pub const IMPLEMENTATION_COLOR_READ_FORMAT: GLenum = 35739; pub const IMPLEMENTATION_COLOR_READ_TYPE: GLenum = 35738; pub const INCR: GLenum = 7682; pub const INCR_WRAP: GLenum = 34055; pub const INT: GLenum = 5124; pub const INT_VEC2: GLenum = 35667; pub const INT_VEC3: GLenum = 35668; pub const INT_VEC4: GLenum = 35669; pub const INVALID_ENUM: GLenum = 1280; pub const INVALID_FRAMEBUFFER_OPERATION: GLenum = 1286; pub const INVALID_OPERATION: GLenum = 1282; pub const INVALID_VALUE: GLenum = 1281; pub const INVERT: GLenum = 5386; pub const KEEP: GLenum = 7680; pub const LEQUAL: GLenum = 515; pub const LESS: GLenum = 513; pub const LINEAR: GLenum = 9729; pub const LINEAR_MIPMAP_LINEAR: GLenum = 9987; pub const LINEAR_MIPMAP_NEAREST: GLenum = 9985; pub const LINES: GLenum = 1; pub const LINE_LOOP: GLenum = 2; pub const LINE_STRIP: GLenum = 3; pub const LINE_WIDTH: GLenum = 2849; pub const LINK_STATUS: GLenum = 35714; pub const LOW_FLOAT: GLenum = 36336; pub const LOW_INT: GLenum = 36339; pub const LUMINANCE: GLenum = 6409; pub const LUMINANCE_ALPHA: GLenum = 6410; pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum = 35661; pub const MAX_CUBE_MAP_TEXTURE_SIZE: GLenum = 34076; pub const MAX_FRAGMENT_UNIFORM_VECTORS: GLenum = 36349; pub const MAX_RENDERBUFFER_SIZE: GLenum = 34024; pub const MAX_TEXTURE_IMAGE_UNITS: GLenum = 34930; pub const MAX_TEXTURE_SIZE: GLenum = 3379; pub const MAX_VARYING_VECTORS: GLenum = 36348; pub const MAX_VERTEX_ATTRIBS: GLenum = 34921; pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum = 35660; pub const MAX_VERTEX_UNIFORM_VECTORS: GLenum = 36347; pub const MAX_VIEWPORT_DIMS: GLenum = 3386; pub const MEDIUM_FLOAT: GLenum = 36337; pub const MEDIUM_INT: GLenum = 36340; pub const MIRRORED_REPEAT: GLenum = 33648; pub const NEAREST: GLenum = 9728; pub const NEAREST_MIPMAP_LINEAR: GLenum = 9986; pub const NEAREST_MIPMAP_NEAREST: GLenum = 9984; pub const NEVER: GLenum = 512; pub const NICEST: GLenum = 4354; pub const NONE: GLenum = 0; pub const NOTEQUAL: GLenum = 517; pub const NO_ERROR: GLenum = 0; pub const ONE: GLenum = 1; pub const ONE_MINUS_CONSTANT_ALPHA: GLenum = 32772; pub const ONE_MINUS_CONSTANT_COLOR: GLenum = 32770; pub const ONE_MINUS_DST_ALPHA: GLenum = 773; pub const ONE_MINUS_DST_COLOR: GLenum = 775; pub const ONE_MINUS_SRC_ALPHA: GLenum = 771; pub const ONE_MINUS_SRC_COLOR: GLenum = 769; pub const OUT_OF_MEMORY: GLenum = 1285; pub const PACK_ALIGNMENT: GLenum = 3333; pub const POINTS: GLenum = 0; pub const POLYGON_OFFSET_FACTOR: GLenum = 32824; pub const POLYGON_OFFSET_FILL: GLenum = 32823; pub const POLYGON_OFFSET_UNITS: GLenum = 10752; pub const RED_BITS: GLenum = 3410; pub const RENDERBUFFER: GLenum = 36161; pub const RENDERBUFFER_ALPHA_SIZE: GLenum = 36179; pub const RENDERBUFFER_BINDING: GLenum = 36007; pub const RENDERBUFFER_BLUE_SIZE: GLenum = 36178; pub const RENDERBUFFER_DEPTH_SIZE: GLenum = 36180; pub const RENDERBUFFER_GREEN_SIZE: GLenum = 36177; pub const RENDERBUFFER_HEIGHT: GLenum = 36163; pub const RENDERBUFFER_INTERNAL_FORMAT: GLenum = 36164; pub const RENDERBUFFER_RED_SIZE: GLenum = 36176; pub const RENDERBUFFER_STENCIL_SIZE: GLenum = 36181; pub const RENDERBUFFER_WIDTH: GLenum = 36162; pub const RENDERER: GLenum = 7937; pub const REPEAT: GLenum = 10497; pub const REPLACE: GLenum = 7681; pub const RGB: GLenum = 6407; pub const RGB565: GLenum = 36194; pub const RGB5_A1: GLenum = 32855; pub const RGBA: GLenum = 6408; pub const RGBA4: GLenum = 32854; pub const SAMPLER_2D: GLenum = 35678; pub const SAMPLER_CUBE: GLenum = 35680; pub const SAMPLES: GLenum = 32937; pub const SAMPLE_ALPHA_TO_COVERAGE: GLenum = 32926; pub const SAMPLE_BUFFERS: GLenum = 32936; pub const SAMPLE_COVERAGE: GLenum = 32928; pub const SAMPLE_COVERAGE_INVERT: GLenum = 32939; pub const SAMPLE_COVERAGE_VALUE: GLenum = 32938; pub const SCISSOR_BOX: GLenum = 3088; pub const SCISSOR_TEST: GLenum = 3089; pub const SHADER_TYPE: GLenum = 35663; pub const SHADING_LANGUAGE_VERSION: GLenum = 35724; pub const SHORT: GLenum = 5122; pub const SRC_ALPHA: GLenum = 770; pub const SRC_ALPHA_SATURATE: GLenum = 776; pub const SRC_COLOR: GLenum = 768; pub const STATIC_DRAW: GLenum = 35044; pub const STENCIL_ATTACHMENT: GLenum = 36128; pub const STENCIL_BACK_FAIL: GLenum = 34817; pub const STENCIL_BACK_FUNC: GLenum = 34816; pub const STENCIL_BACK_PASS_DEPTH_FAIL: GLenum = 34818; pub const STENCIL_BACK_PASS_DEPTH_PASS: GLenum = 34819; pub const STENCIL_BACK_REF: GLenum = 36003; pub const STENCIL_BACK_VALUE_MASK: GLenum = 36004; pub const STENCIL_BACK_WRITEMASK: GLenum = 36005; pub const STENCIL_BITS: GLenum = 3415; pub const STENCIL_BUFFER_BIT: GLenum = 1024; pub const STENCIL_CLEAR_VALUE: GLenum = 2961; pub const STENCIL_FAIL: GLenum = 2964; pub const STENCIL_FUNC: GLenum = 2962; pub const STENCIL_INDEX8: GLenum = 36168; pub const STENCIL_PASS_DEPTH_FAIL: GLenum = 2965; pub const STENCIL_PASS_DEPTH_PASS: GLenum = 2966; pub const STENCIL_REF: GLenum = 2967; pub const STENCIL_TEST: GLenum = 2960; pub const STENCIL_VALUE_MASK: GLenum = 2963; pub const STENCIL_WRITEMASK: GLenum = 2968; pub const STREAM_DRAW: GLenum = 35040; pub const SUBPIXEL_BITS: GLenum = 3408; pub const TEXTURE: GLenum = 5890; pub const TEXTURE0: GLenum = 33984; pub const TEXTURE1: GLenum = 33985; pub const TEXTURE10: GLenum = 33994; pub const TEXTURE11: GLenum = 33995; pub const TEXTURE12: GLenum = 33996; pub const TEXTURE13: GLenum = 33997; pub const TEXTURE14: GLenum = 33998; pub const TEXTURE15: GLenum = 33999; pub const TEXTURE16: GLenum = 34000; pub const TEXTURE17: GLenum = 34001; pub const TEXTURE18: GLenum = 34002; pub const TEXTURE19: GLenum = 34003; pub const TEXTURE2: GLenum = 33986; pub const TEXTURE20: GLenum = 34004; pub const TEXTURE21: GLenum = 34005; pub const TEXTURE22: GLenum = 34006; pub const TEXTURE23: GLenum = 34007; pub const TEXTURE24: GLenum = 34008; pub const TEXTURE25: GLenum = 34009; pub const TEXTURE26: GLenum = 34010; pub const TEXTURE27: GLenum = 34011; pub const TEXTURE28: GLenum = 34012; pub const TEXTURE29: GLenum = 34013; pub const TEXTURE3: GLenum = 33987; pub const TEXTURE30: GLenum = 34014; pub const TEXTURE31: GLenum = 34015; pub const TEXTURE4: GLenum = 33988; pub const TEXTURE5: GLenum = 33989; pub const TEXTURE6: GLenum = 33990; pub const TEXTURE7: GLenum = 33991; pub const TEXTURE8: GLenum = 33992; pub const TEXTURE9: GLenum = 33993; pub const TEXTURE_2D: GLenum = 3553; pub const TEXTURE_BINDING_2D: GLenum = 32873; pub const TEXTURE_BINDING_CUBE_MAP: GLenum = 34068; pub const TEXTURE_CUBE_MAP: GLenum = 34067; pub const TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum = 34070; pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum = 34072; pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum = 34074; pub const TEXTURE_CUBE_MAP_POSITIVE_X: GLenum = 34069; pub const TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum = 34071; pub const TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum = 34073; pub const TEXTURE_MAG_FILTER: GLenum = 10240; pub const TEXTURE_MIN_FILTER: GLenum = 10241; pub const TEXTURE_WRAP_S: GLenum = 10242; pub const TEXTURE_WRAP_T: GLenum = 10243; pub const TRIANGLES: GLenum = 4; pub const TRIANGLE_FAN: GLenum = 6; pub const TRIANGLE_STRIP: GLenum = 5; pub const UNPACK_ALIGNMENT: GLenum = 3317; pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum = 37443; pub const UNPACK_FLIP_Y_WEBGL: GLenum = 37440; pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum = 37441; pub const UNSIGNED_BYTE: GLenum = 5121; pub const UNSIGNED_INT: GLenum = 5125; pub const UNSIGNED_SHORT: GLenum = 5123; pub const UNSIGNED_SHORT_4_4_4_4: GLenum = 32819; pub const UNSIGNED_SHORT_5_5_5_1: GLenum = 32820; pub const UNSIGNED_SHORT_5_6_5: GLenum = 33635; pub const VALIDATE_STATUS: GLenum = 35715; pub const VENDOR: GLenum = 7936; pub const VERSION: GLenum = 7938; pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum = 34975; pub const VERTEX_ATTRIB_ARRAY_ENABLED: GLenum = 34338; pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum = 34922; pub const VERTEX_ATTRIB_ARRAY_POINTER: GLenum = 34373; pub const VERTEX_ATTRIB_ARRAY_SIZE: GLenum = 34339; pub const VERTEX_ATTRIB_ARRAY_STRIDE: GLenum = 34340; pub const VERTEX_ATTRIB_ARRAY_TYPE: GLenum = 34341; pub const VERTEX_SHADER: GLenum = 35633; pub const VIEWPORT: GLenum = 2978; pub const ZERO: GLenum = 0; pub fn active_texture(&self, texture: GLenum) { js!( @(no_return) @{self}.activeTexture(@{texture}); ); } pub fn attach_shader(&self, program: &WebGLProgram, shader: &WebGLShader) { js!( @(no_return) @{self}.attachShader(@{program}, @{shader}); ); } pub fn bind_attrib_location(&self, program: &WebGLProgram, index: GLuint, name: &str) { js!( @(no_return) @{self}.bindAttribLocation(@{program}, @{index}, @{name}); ); } pub fn bind_buffer(&self, target: GLenum, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.bindBuffer(@{target}, @{buffer}); ); } pub fn bind_framebuffer(&self, target: GLenum, framebuffer: Option<&WebGLFramebuffer>) { js!( @(no_return) @{self}.bindFramebuffer(@{target}, @{framebuffer}); ); } pub fn bind_renderbuffer(&self, target: GLenum, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.bindRenderbuffer(@{target}, @{renderbuffer}); ); } pub fn bind_texture(&self, target: GLenum, texture: Option<&WebGLTexture>) { js!( @(no_return) @{self}.bindTexture(@{target}, @{texture}); ); } pub fn blend_color(&self, red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf) { js!( @(no_return) @{self}.blendColor(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn blend_equation(&self, mode: GLenum) { js!( @(no_return) @{self}.blendEquation(@{mode}); ); } pub fn blend_equation_separate(&self, mode_rgb: GLenum, mode_alpha: GLenum) { js!( @(no_return) @{self}.blendEquationSeparate(@{mode_rgb}, @{mode_alpha}); ); } pub fn blend_func(&self, sfactor: GLenum, dfactor: GLenum) { js!( @(no_return) @{self}.blendFunc(@{sfactor}, @{dfactor}); ); } pub fn blend_func_separate(&self, src_rgb: GLenum, dst_rgb: GLenum, src_alpha: GLenum, dst_alpha: GLenum) { js!( @(no_return) @{self}.blendFuncSeparate(@{src_rgb}, @{dst_rgb}, @{src_alpha}, @{dst_alpha}); ); } pub fn buffer_data(&self, target: GLenum, size: GLsizeiptr, usage: GLenum) { js!( @(no_return) @{self}.bufferData(@{target}, @{(size as f64)}, @{usage}); ); } pub fn buffer_data_1(&self, target: GLenum, data: Option<&ArrayBuffer>, usage: GLenum) { js!( @(no_return) @{self}.bufferData(@{target}, @{data}, @{usage}); ); } pub fn buffer_sub_data(&self, target: GLenum, offset: GLintptr, data: &ArrayBuffer) { js!( @(no_return) @{self}.bufferSubData(@{target}, @{(offset as f64)}, @{data}); ); } pub fn canvas(&self) -> CanvasElement { (js! { return @{self}.canvas; } ).try_into().unwrap() } pub fn check_framebuffer_status(&self, target: GLenum) -> GLenum { (js! { return @{self}.checkFramebufferStatus(@{target}); } ).try_into().unwrap() } pub fn clear(&self, mask: GLbitfield) { js!( @(no_return) @{self}.clear(@{mask}); ); } pub fn clear_color(&self, red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf) { js!( @(no_return) @{self}.clearColor(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn clear_depth(&self, depth: GLclampf) { js!( @(no_return) @{self}.clearDepth(@{depth}); ); } pub fn clear_stencil(&self, s: GLint) { js!( @(no_return) @{self}.clearStencil(@{s}); ); } pub fn color_mask(&self, red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean) { js!( @(no_return) @{self}.colorMask(@{red}, @{green}, @{blue}, @{alpha}); ); } pub fn compile_shader(&self, shader: &WebGLShader) { js!( @(no_return) @{self}.compileShader(@{shader}); ); } pub fn compressed_tex_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: T0) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{unsafe { data.as_array_buffer_view() }}); ); } pub fn compressed_tex_sub_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: T0) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.compressedTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{unsafe { data.as_array_buffer_view() }}); ); } pub fn copy_tex_image2_d(&self, target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint) { js!( @(no_return) @{self}.copyTexImage2D(@{target}, @{level}, @{internalformat}, @{x}, @{y}, @{width}, @{height}, @{border}); ); } pub fn copy_tex_sub_image2_d(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.copyTexSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{x}, @{y}, @{width}, @{height}); ); } pub fn create_buffer(&self, ) -> Option<WebGLBuffer> { (js! { return @{self}.createBuffer(); } ).try_into().ok() } pub fn create_framebuffer(&self, ) -> Option<WebGLFramebuffer> { (js! { return @{self}.createFramebuffer(); } ).try_into().ok() } pub fn create_program(&self, ) -> Option<WebGLProgram> { (js! { return @{self}.createProgram(); } ).try_into().ok() } pub fn create_renderbuffer(&self, ) -> Option<WebGLRenderbuffer> { (js! { return @{self}.createRenderbuffer(); } ).try_into().ok() } pub fn create_shader(&self, type_: GLenum) -> Option<WebGLShader> { (js! { return @{self}.createShader(@{type_}); } ).try_into().ok() } pub fn create_texture(&self, ) -> Option<WebGLTexture> { (js! { return @{self}.createTexture(); } ).try_into().ok() } pub fn cull_face(&self, mode: GLenum) { js!( @(no_return) @{self}.cullFace(@{mode}); ); } pub fn delete_buffer(&self, buffer: Option<&WebGLBuffer>) { js!( @(no_return) @{self}.deleteBuffer(@{buffer}); ); } pub fn delete_framebuffer(&self, framebuffer: Option<&WebGLFramebuffer>) { js!( @(no_return) @{self}.deleteFramebuffer(@{framebuffer}); ); } pub fn delete_program(&self, program: Option<&WebGLProgram>) { js!( @(no_return) @{self}.deleteProgram(@{program}); ); } pub fn delete_renderbuffer(&self, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.deleteRenderbuffer(@{renderbuffer}); ); } pub fn delete_shader(&self, shader: Option<&WebGLShader>) { js!( @(no_return) @{self}.deleteShader(@{shader}); ); } pub fn delete_texture(&self, texture: Option<&WebGLTexture>) { js!( @(no_return) @{self}.deleteTexture(@{texture}); ); } pub fn depth_func(&self, func: GLenum) { js!( @(no_return) @{self}.depthFunc(@{func}); ); } pub fn depth_mask(&self, flag: GLboolean) { js!( @(no_return) @{self}.depthMask(@{flag}); ); } pub fn depth_range(&self, z_near: GLclampf, z_far: GLclampf) { js!( @(no_return) @{self}.depthRange(@{z_near}, @{z_far}); ); } pub fn detach_shader(&self, program: &WebGLProgram, shader: &WebGLShader) { js!( @(no_return) @{self}.detachShader(@{program}, @{shader}); ); } pub fn disable(&self, cap: GLenum) { js!( @(no_return) @{self}.disable(@{cap}); ); } pub fn disable_vertex_attrib_array(&self, index: GLuint) { js!( @(no_return) @{self}.disableVertexAttribArray(@{index}); ); } pub fn draw_arrays(&self, mode: GLenum, first: GLint, count: GLsizei) { js!( @(no_return) @{self}.drawArrays(@{mode}, @{first}, @{count}); ); } pub fn draw_elements(&self, mode: GLenum, count: GLsizei, type_: GLenum, offset: GLintptr) { js!( @(no_return) @{self}.drawElements(@{mode}, @{count}, @{type_}, @{(offset as f64)}); ); } pub fn drawing_buffer_height(&self) -> GLsizei { (js! { return @{self}.drawingBufferHeight; } ).try_into().unwrap() } pub fn drawing_buffer_width(&self) -> GLsizei { (js! { return @{self}.drawingBufferWidth; } ).try_into().unwrap() } pub fn enable(&self, cap: GLenum) { js!( @(no_return) @{self}.enable(@{cap}); ); } pub fn enable_vertex_attrib_array(&self, index: GLuint) { js!( @(no_return) @{self}.enableVertexAttribArray(@{index}); ); } pub fn finish(&self, ) { js!( @(no_return) @{self}.finish(); ); } pub fn flush(&self, ) { js!( @(no_return) @{self}.flush(); ); } pub fn framebuffer_renderbuffer(&self, target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: Option<&WebGLRenderbuffer>) { js!( @(no_return) @{self}.framebufferRenderbuffer(@{target}, @{attachment}, @{renderbuffertarget}, @{renderbuffer}); ); } pub fn framebuffer_texture2_d(&self, target: GLenum, attachment: GLenum, textarget: GLenum, texture: Option<&WebGLTexture>, level: GLint) { js!( @(no_return) @{self}.framebufferTexture2D(@{target}, @{attachment}, @{textarget}, @{texture}, @{level}); ); } pub fn front_face(&self, mode: GLenum) { js!( @(no_return) @{self}.frontFace(@{mode}); ); } pub fn generate_mipmap(&self, target: GLenum) { js!( @(no_return) @{self}.generateMipmap(@{target}); ); } pub fn get_active_attrib(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getActiveAttrib(@{program}, @{index}); } ).try_into().ok() } pub fn get_active_uniform(&self, program: &WebGLProgram, index: GLuint) -> Option<WebGLActiveInfo> { (js! { return @{self}.getActiveUniform(@{program}, @{index}); } ).try_into().ok() } pub fn get_attached_shaders(&self, program: &WebGLProgram) -> Option<Vec<WebGLShader>> { (js! { return @{self}.getAttachedShaders(@{program}); } ).try_into().ok() } pub fn get_attrib_location(&self, program: &WebGLProgram, name: &str) -> GLint { (js! { return @{self}.getAttribLocation(@{program}, @{name}); } ).try_into().unwrap() } pub fn get_buffer_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getBufferParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_context_attributes(&self, ) -> Option<WebGLContextAttributes> { (js! { return @{self}.getContextAttributes(); } ).try_into().ok() } pub fn get_error(&self, ) -> GLenum { (js! { return @{self}.getError(); } ).try_into().unwrap() } pub fn get_extension<E: Extension>(&self) -> Option<E> { (js! { return @{self}.getExtension(@{E::NAME}); } ).try_into().ok() } pub fn get_framebuffer_attachment_parameter(&self, target: GLenum, attachment: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getFramebufferAttachmentParameter(@{target}, @{attachment}, @{pname}); } ).try_into().unwrap() } pub fn get_parameter(&self, pname: GLenum) -> Value { (js! { return @{self}.getParameter(@{pname}); } ).try_into().unwrap() } pub fn get_program_info_log(&self, program: &WebGLProgram) -> Option<String> { (js! { return @{self}.getProgramInfoLog(@{program}); } ).try_into().ok() } pub fn get_program_parameter(&self, program: &WebGLProgram, pname: GLenum) -> Value { (js! { return @{self}.getProgramParameter(@{program}, @{pname}); } ).try_into().unwrap() } pub fn get_renderbuffer_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getRenderbufferParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_shader_info_log(&self, shader: &WebGLShader) -> Option<String> { (js! { return @{self}.getShaderInfoLog(@{shader}); } ).try_into().ok() } pub fn get_shader_parameter(&self, shader: &WebGLShader, pname: GLenum) -> Value { (js! { return @{self}.getShaderParameter(@{shader}, @{pname}); } ).try_into().unwrap() } pub fn get_shader_precision_format(&self, shadertype: GLenum, precisiontype: GLenum) -> Option<WebGLShaderPrecisionFormat> { (js! { return @{self}.getShaderPrecisionFormat(@{shadertype}, @{precisiontype}); } ).try_into().ok() } pub fn get_shader_source(&self, shader: &WebGLShader) -> Option<String> { (js! { return @{self}.getShaderSource(@{shader}); } ).try_into().ok() } pub fn get_supported_extensions(&self, ) -> Option<Vec<String>> { (js! { return @{self}.getSupportedExtensions(); } ).try_into().ok() } pub fn get_tex_parameter(&self, target: GLenum, pname: GLenum) -> Value { (js! { return @{self}.getTexParameter(@{target}, @{pname}); } ).try_into().unwrap() } pub fn get_uniform(&self, program: &WebGLProgram, location: &WebGLUniformLocation) -> Value { (js! { return @{self}.getUniform(@{program}, @{location}); } ).try_into().unwrap() } pub fn get_uniform_location(&self, program: &WebGLProgram, name: &str) -> Option<WebGLUniformLocation> { (js! { return @{self}.getUniformLocation(@{program}, @{name}); } ).try_into().ok() } pub fn get_vertex_attrib(&self, index: GLuint, pname: GLenum) -> Value { (js! { return @{self}.getVertexAttrib(@{index}, @{pname}); } ).try_into().unwrap() } pub fn get_vertex_attrib_offset(&self, index: GLuint, pname: GLenum) -> GLintptr { (js! { return @{self}.getVertexAttribOffset(@{index}, @{pname}); } ).try_into().unwrap() } pub fn hint(&self, target: GLenum, mode: GLenum) { js!( @(no_return) @{self}.hint(@{target}, @{mode}); ); } pub fn is_buffer(&self, buffer: Option<&WebGLBuffer>) -> GLboolean { (js! { return @{self}.isBuffer(@{buffer}); } ).try_into().unwrap() } pub fn is_context_lost(&self, ) -> bool { (js! { return @{self}.isContextLost(); } ).try_into().unwrap() } pub fn is_enabled(&self, cap: GLenum) -> GLboolean { (js! { return @{self}.isEnabled(@{cap}); } ).try_into().unwrap() } pub fn is_framebuffer(&self, framebuffer: Option<&WebGLFramebuffer>) -> GLboolean { (js! { return @{self}.isFramebuffer(@{framebuffer}); } ).try_into().unwrap() } pub fn is_program(&self, program: Option<&WebGLProgram>) -> GLboolean { (js! { return @{self}.isProgram(@{program}); } ).try_into().unwrap() } pub fn is_renderbuffer(&self, renderbuffer: Option<&WebGLRenderbuffer>) -> GLboolean { (js! { return @{self}.isRenderbuffer(@{renderbuffer}); } ).try_into().unwrap() } pub fn is_shader(&self, shader: Option<&WebGLShader>) -> GLboolean { (js! { return @{self}.isShader(@{shader}); } ).try_into().unwrap() } pub fn is_texture(&self, texture: Option<&WebGLTexture>) -> GLboolean { (js! { return @{self}.isTexture(@{texture}); } ).try_into().unwrap() } pub fn line_width(&self, width: GLfloat) { js!( @(no_return) @{self}.lineWidth(@{width}); ); } pub fn link_program(&self, program: &WebGLProgram) { js!( @(no_return) @{self}.linkProgram(@{program}); ); } pub fn pixel_storei(&self, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.pixelStorei(@{pname}, @{param}); ); } pub fn polygon_offset(&self, factor: GLfloat, units: GLfloat) { js!( @(no_return) @{self}.polygonOffset(@{factor}, @{units}); ); } pub fn read_pixels<'a0, T0>(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pixels: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.readPixels(@{x}, @{y}, @{width}, @{height}, @{format}, @{type_}, @{pixels.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn renderbuffer_storage(&self, target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.renderbufferStorage(@{target}, @{internalformat}, @{width}, @{height}); ); } pub fn sample_coverage(&self, value: GLclampf, invert: GLboolean) { js!( @(no_return) @{self}.sampleCoverage(@{value}, @{invert}); ); } pub fn scissor(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.scissor(@{x}, @{y}, @{width}, @{height}); ); } pub fn shader_source(&self, shader: &WebGLShader, source: &str) { js!( @(no_return) @{self}.shaderSource(@{shader}, @{source}); ); } pub fn stencil_func(&self, func: GLenum, ref_: GLint, mask: GLuint) { js!( @(no_return) @{self}.stencilFunc(@{func}, @{ref_}, @{mask}); ); } pub fn stencil_func_separate(&self, face: GLenum, func: GLenum, ref_: GLint, mask: GLuint) { js!( @(no_return) @{self}.stencilFuncSeparate(@{face}, @{func}, @{ref_}, @{mask}); ); } pub fn stencil_mask(&self, mask: GLuint) { js!( @(no_return) @{self}.stencilMask(@{mask}); ); } pub fn stencil_mask_separate(&self, face: GLenum, mask: GLuint) { js!( @(no_return) @{self}.stencilMaskSeparate(@{face}, @{mask}); ); } pub fn stencil_op(&self, fail: GLenum, zfail: GLenum, zpass: GLenum) { js!( @(no_return) @{self}.stencilOp(@{fail}, @{zfail}, @{zpass}); ); } pub fn stencil_op_separate(&self, face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum) { js!( @(no_return) @{self}.stencilOpSeparate(@{face}, @{fail}, @{zfail}, @{zpass}); ); } pub fn tex_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, pixels: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{width}, @{height}, @{border}, @{format}, @{type_}, @{pixels.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_image2_d_1<T0>(&self, target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texImage2D(@{target}, @{level}, @{internalformat}, @{format}, @{type_}, @{source}); ); } pub fn tex_parameterf(&self, target: GLenum, pname: GLenum, param: GLfloat) { js!( @(no_return) @{self}.texParameterf(@{target}, @{pname}, @{param}); ); } pub fn tex_parameteri(&self, target: GLenum, pname: GLenum, param: GLint) { js!( @(no_return) @{self}.texParameteri(@{target}, @{pname}, @{param}); ); } pub fn tex_sub_image2_d<'a0, T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pixels: Option<T0>) where T0: AsArrayBufferView<'a0> { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{width}, @{height}, @{format}, @{type_}, @{pixels.map(|inner| unsafe { inner.as_array_buffer_view() })}); ); } pub fn tex_sub_image2_d_1<T0>(&self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type_: GLenum, source: T0) where T0: JsSerialize { js!( @(no_return) @{self}.texSubImage2D(@{target}, @{level}, @{xoffset}, @{yoffset}, @{format}, @{type_}, @{source}); ); } pub fn uniform1f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat) { js!( @(no_return) @{self}.uniform1f(@{location}, @{x}); ); } pub fn uniform1fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform1fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform1i(&self, location: Option<&WebGLUniformLocation>, x: GLint) { js!( @(no_return) @{self}.uniform1i(@{location}, @{x}); ); } pub fn uniform1iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform1iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform2f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat) { js!( @(no_return) @{self}.uniform2f(@{location}, @{x}, @{y}); ); } pub fn uniform2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform2fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform2i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint) { js!( @(no_return) @{self}.uniform2i(@{location}, @{x}, @{y}); ); } pub fn uniform2iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform2iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform3f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat, z: GLfloat) { js!( @(no_return) @{self}.uniform3f(@{location}, @{x}, @{y}, @{z}); ); } pub fn uniform3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform3fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform3i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint, z: GLint) { js!( @(no_return) @{self}.uniform3i(@{location}, @{x}, @{y}, @{z}); ); } pub fn uniform3iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform3iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform4f(&self, location: Option<&WebGLUniformLocation>, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat) { js!( @(no_return) @{self}.uniform4f(@{location}, @{x}, @{y}, @{z}, @{w}); ); } pub fn uniform4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniform4fv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform4i(&self, location: Option<&WebGLUniformLocation>, x: GLint, y: GLint, z: GLint, w: GLint) { js!( @(no_return) @{self}.uniform4i(@{location}, @{x}, @{y}, @{z}, @{w}); ); } pub fn uniform4iv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, v: T0) where T0: AsTypedArray<'a0, i32> { js!( @(no_return) @{self}.uniform4iv(@{location}, @{unsafe { v.as_typed_array() }}); ); } pub fn uniform_matrix2fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix2fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix3fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix3fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn uniform_matrix4fv<'a0, T0>(&self, location: Option<&WebGLUniformLocation>, transpose: GLboolean, value: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.uniformMatrix4fv(@{location}, @{transpose}, @{unsafe { value.as_typed_array() }}); ); } pub fn use_program(&self, program: Option<&WebGLProgram>) { js!( @(no_return) @{self}.useProgram(@{program}); ); } pub fn validate_program(&self, program: &WebGLProgram) { js!( @(no_return) @{self}.validateProgram(@{program}); ); } pub fn vertex_attrib1f(&self, index: GLuint, x: GLfloat) { js!( @(no_return) @{self}.vertexAttrib1f(@{index}, @{x}); ); } pub fn vertex_attrib1fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib1fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib2f(&self, index: GLuint, x: GLfloat, y: GLfloat) { js!( @(no_return) @{self}.vertexAttrib2f(@{index}, @{x}, @{y}); ); } pub fn vertex_attrib2fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib2fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib3f(&self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat) { js!( @(no_return) @{self}.vertexAttrib3f(@{index}, @{x}, @{y}, @{z}); ); } pub fn vertex_attrib3fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib3fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib4f(&self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat) { js!( @(no_return) @{self}.vertexAttrib4f(@{index}, @{x}, @{y}, @{z}, @{w}); ); } pub fn vertex_attrib4fv<'a0, T0>(&self, index: GLuint, values: T0) where T0: AsTypedArray<'a0, f32> { js!( @(no_return) @{self}.vertexAttrib4fv(@{index}, @{unsafe { values.as_typed_array() }}); ); } pub fn vertex_attrib_pointer(&self, index: GLuint, size: GLint, type_: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr) { js!( @(no_return) @{self}.vertexAttribPointer(@{index}, @{size}, @{type_}, @{normalized}, @{stride}, @{(offset as f64)}); ); } pub fn viewport(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei) { js!( @(no_return) @{self}.viewport(@{x}, @{y}, @{width}, @{height}); ); } } impl RenderingContext for WebGLRenderingContext { type Error = ConversionError; fn from_canvas(canvas: &CanvasElement) -> Result<Self, ConversionError> { js!( return @{canvas}.getContext("webgl"); ).try_into() } } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLSampler")] pub struct WebGLSampler(Reference); impl WebGLSampler { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLShader")] pub struct WebGLShader(Reference); impl WebGLShader { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLShaderPrecisionFormat")] pub struct WebGLShaderPrecisionFormat(Reference); impl WebGLShaderPrecisionFormat { pub fn precision(&self) -> GLint { (js! { return @{self}.precision; } ).try_into().unwrap() } pub fn range_max(&self) -> GLint { (js! { return @{self}.rangeMax; } ).try_into().unwrap() } pub fn range_min(&self) -> GLint { (js! { return @{self}.rangeMin; } ).try_into().unwrap() } } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLSync")] pub struct WebGLSync(Reference); impl WebGLSync { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLTexture")] pub struct WebGLTexture(Reference); impl WebGLTexture { } #[derive(Debug, Clone, ReferenceType)] pub struct WebGLTimerQueryEXT(Reference); impl WebGLTimerQueryEXT { } impl InstanceOf for WebGLTimerQueryEXT { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLTransformFeedback")] pub struct WebGLTransformFeedback(Reference); impl WebGLTransformFeedback { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLUniformLocation")] pub struct WebGLUniformLocation(Reference); impl WebGLUniformLocation { } #[derive(Debug, Clone, ReferenceType)] #[reference(instance_of = "WebGLVertexArrayObject")] pub struct WebGLVertexArrayObject(Reference); impl WebGLVertexArrayObject { } #[derive(Debug, Clone, ReferenceType)] pub struct WebGLVertexArrayObjectOES(Reference); impl WebGLVertexArrayObjectOES { } impl InstanceOf for WebGLVertexArrayObjectOES { #[inline] fn instance_of(_reference: &Reference) -> bool { js!( return true; ).try_into().unwrap() } } impl Extension for ANGLE_instanced_arrays { const NAME: &'static str = "ANGLE_instanced_arrays"; } impl Extension for EXT_blend_minmax { const NAME: &'static str = "EXT_blend_minmax"; } impl Extension for EXT_color_buffer_float { const NAME: &'static str = "EXT_color_buffer_float"; } impl Extension for EXT_color_buffer_half_float { const NAME: &'static str = "EXT_color_buffer_half_float"; } impl Extension for EXT_disjoint_timer_query { const NAME: &'static str = "EXT_disjoint_timer_query"; } impl Extension for EXT_disjoint_timer_query_webgl2 { const NAME: &'static str = "EXT_disjoint_timer_query_webgl2"; } impl Extension for EXT_float_blend { const NAME: &'static str = "EXT_float_blend"; } impl Extension for EXT_frag_depth { const NAME: &'static str = "EXT_frag_depth"; } impl Extension for EXT_sRGB { const NAME: &'static str = "EXT_sRGB"; } impl Extension for EXT_shader_texture_lod { const NAME: &'static str = "EXT_shader_texture_lod"; } impl Extension for EXT_texture_compression_bptc { const NAME: &'static str = "EXT_texture_compression_bptc"; } impl Extension for EXT_texture_compression_rgtc { const NAME: &'static str = "EXT_texture_compression_rgtc"; } impl Extension for EXT_texture_filter_anisotropic { const NAME: &'static str = "EXT_texture_filter_anisotropic"; } impl Extension for KHR_parallel_shader_compile { const NAME: &'static str = "KHR_parallel_shader_compile"; } impl Extension for OES_element_index_uint { const NAME: &'static str = "OES_element_index_uint"; } impl Extension for OES_fbo_render_mipmap { const NAME: &'static str = "OES_fbo_render_mipmap"; } impl Extension for OES_standard_derivatives { const NAME: &'static str = "OES_standard_derivatives"; } impl Extension for OES_texture_float { const NAME: &'static str = "OES_texture_float"; } impl Extension for OES_texture_float_linear { const NAME: &'static str = "OES_texture_float_linear"; } impl Extension for OES_texture_half_float { const NAME: &'static str = "OES_texture_half_float"; } impl Extension for OES_texture_half_float_linear { const NAME: &'static str = "OES_texture_half_float_linear"; } impl Extension for OES_vertex_array_object { const NAME: &'static str = "OES_vertex_array_object"; } impl Extension for WEBGL_color_buffer_float { const NAME: &'static str = "WEBGL_color_buffer_float"; } impl Extension for WEBGL_compressed_texture_astc { const NAME: &'static str = "WEBGL_compressed_texture_astc"; } impl Extension for WEBGL_compressed_texture_etc { const NAME: &'static str = "WEBGL_compressed_texture_etc"; } impl Extension for WEBGL_compressed_texture_etc1 { const NAME: &'static str = "WEBGL_compressed_texture_etc1"; } impl Extension for WEBGL_compressed_texture_pvrtc { const NAME: &'static str = "WEBGL_compressed_texture_pvrtc"; } impl Extension for WEBGL_compressed_texture_s3tc { const NAME: &'static str = "WEBGL_compressed_texture_s3tc"; } impl Extension for WEBGL_compressed_texture_s3tc_srgb { const NAME: &'static str = "WEBGL_compressed_texture_s3tc_srgb"; } impl Extension for WEBGL_debug_renderer_info { const NAME: &'static str = "WEBGL_debug_renderer_info"; } impl Extension for WEBGL_debug_shaders { const NAME: &'static str = "WEBGL_debug_shaders"; } impl Extension for WEBGL_depth_texture { const NAME: &'static str = "WEBGL_depth_texture"; } impl Extension for WEBGL_draw_buffers { const NAME: &'static str = "WEBGL_draw_buffers"; } impl Extension for WEBGL_lose_context { const NAME: &'static str = "WEBGL_lose_context"; } impl Extension for WEBGL_multiview { const NAME: &'static str = "WEBGL_multiview"; } impl Extension for WEBGL_security_sensitive_resources { const NAME: &'static str = "WEBGL_security_sensitive_resources"; }