/usr/include/wine/windows/d3d11.idl is in libwine-dev 3.0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* Copyright 2010 Rico Schüller
* Copyright 2013 Austin English
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "oaidl.idl";
import "ocidl.idl";
import "dxgi.idl";
import "d3dcommon.idl";
typedef D3D_PRIMITIVE D3D11_PRIMITIVE;
typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY;
typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION;
typedef RECT D3D11_RECT;
interface ID3D11Device;
interface ID3D11ClassLinkage;
interface ID3D11Resource;
interface ID3D11VideoProcessorInputView;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64;
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4;
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1;
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1;
const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1;
const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1;
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128;
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1;
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1;
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128;
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1;
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16;
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1;
const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1;
const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16;
const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32;
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4;
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096;
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3;
const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3;
const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10;
const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10;
const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8;
const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7;
const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256;
const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64;
const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240;
const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68;
const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224;
const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72;
const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208;
const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76;
const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192;
const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84;
const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176;
const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92;
const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160;
const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100;
const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144;
const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112;
const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128;
const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128;
const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112;
const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144;
const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96;
const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168;
const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80;
const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204;
const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64;
const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256;
const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48;
const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340;
const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32;
const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512;
const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16;
const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768;
const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1;
const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256;
const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768;
const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X = 768;
const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y = 768;
const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT = 1;
const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535;
const UINT D3D11_CS_TGSM_REGISTER_COUNT = 8192;
const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST = 1;
const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1;
const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1;
const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024;
const UINT D3D11_CS_THREAD_GROUP_MAX_X = 1024;
const UINT D3D11_CS_THREAD_GROUP_MAX_Y = 1024;
const UINT D3D11_CS_THREAD_GROUP_MAX_Z = 64;
const UINT D3D11_CS_THREAD_GROUP_MIN_X = 1;
const UINT D3D11_CS_THREAD_GROUP_MIN_Y = 1;
const UINT D3D11_CS_THREAD_GROUP_MIN_Z = 1;
const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384;
const UINT D3D11_DEFAULT_DEPTH_BIAS = 0;
cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16;
cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0;
const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff;
const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0;
const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0;
const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0;
const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0;
cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff;
const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0;
const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff;
const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0;
const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0;
cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0;
const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0;
const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0;
cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8;
const UINT D3D11_MAX_MAXANISOTROPY = 16;
const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32;
const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767;
const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768;
const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15;
const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16;
const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff;
const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff;
const UINT D3D11_SHADER_MAJOR_VERSION = 5;
const UINT D3D11_SHADER_MAX_INSTANCES = 65535;
const UINT D3D11_SHADER_MAX_INTERFACES = 253;
const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096;
const UINT D3D11_SHADER_MAX_TYPES = 65535;
const UINT D3D11_SHADER_MINOR_VERSION = 0;
const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32;
const UINT D3D11_OMAC_SIZE = 16;
const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1;
const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8;
const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1;
const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1;
const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xffffffff;
const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0;
const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xffffffff;
const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4;
const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32;
const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2;
const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1;
cpp_quote("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.0f)")
const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1;
const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1;
const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4;
const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8;
cpp_quote("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT (0.5f)")
const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16;
const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096;
const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27;
const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096;
const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32;
const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32;
const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384;
const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024;
const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096;
const UINT D3D11_REQ_MAXANISOTROPY = 16;
const UINT D3D11_REQ_MIP_LEVELS = 15;
const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048;
const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096;
const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384;
const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128;
cpp_quote("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM (0.25f)")
const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048;
const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20;
const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096;
const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048;
const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384;
const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384;
const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048;
const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384;
const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0;
const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0;
const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5;
const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512;
const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4;
const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff;
const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff;
const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128;
const UINT D3D11_SO_STREAM_COUNT = 4;
const UINT D3D11_SPEC_DATE_DAY = 16;
const UINT D3D11_SPEC_DATE_MONTH = 05;
const UINT D3D11_SPEC_DATE_YEAR = 2011;
cpp_quote("#define D3D11_SPEC_VERSION (1.07)")
cpp_quote("#define D3D11_SRGB_GAMMA (2.2f)")
cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)")
cpp_quote("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)")
cpp_quote("#define D3D11_SRGB_TO_FLOAT_EXPONENT (2.4f)")
cpp_quote("#define D3D11_SRGB_TO_FLOAT_OFFSET (0.055f)")
cpp_quote("#define D3D11_SRGB_TO_FLOAT_THRESHOLD (0.04045f)")
cpp_quote("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)")
const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32;
const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64;
const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4;
const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128;
const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32;
const UINT D3D11_STANDARD_VECTOR_SIZE = 4;
const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32;
const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_DEFAULT {};")
cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
cpp_quote("#endif")
typedef enum D3D11_BLEND
{
D3D11_BLEND_ZERO = 1,
D3D11_BLEND_ONE = 2,
D3D11_BLEND_SRC_COLOR = 3,
D3D11_BLEND_INV_SRC_COLOR = 4,
D3D11_BLEND_SRC_ALPHA = 5,
D3D11_BLEND_INV_SRC_ALPHA = 6,
D3D11_BLEND_DEST_ALPHA = 7,
D3D11_BLEND_INV_DEST_ALPHA = 8,
D3D11_BLEND_DEST_COLOR = 9,
D3D11_BLEND_INV_DEST_COLOR = 10,
D3D11_BLEND_SRC_ALPHA_SAT = 11,
D3D11_BLEND_BLEND_FACTOR = 14,
D3D11_BLEND_INV_BLEND_FACTOR = 15,
D3D11_BLEND_SRC1_COLOR = 16,
D3D11_BLEND_INV_SRC1_COLOR = 17,
D3D11_BLEND_SRC1_ALPHA = 18,
D3D11_BLEND_INV_SRC1_ALPHA = 19,
} D3D11_BLEND;
typedef enum D3D11_BLEND_OP
{
D3D11_BLEND_OP_ADD = 1,
D3D11_BLEND_OP_SUBTRACT,
D3D11_BLEND_OP_REV_SUBTRACT,
D3D11_BLEND_OP_MIN,
D3D11_BLEND_OP_MAX
} D3D11_BLEND_OP;
typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE
{
D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0,
D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1,
D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2,
D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3,
D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4,
D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5,
D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6,
D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7,
D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8,
} D3D11_VIDEO_DECODER_BUFFER_TYPE;
typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
{
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0,
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1,
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2,
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3,
} D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;
typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
{
D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0,
D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1,
D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2,
} D3D11_VIDEO_PROCESSOR_OUTPUT_RATE;
typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
{
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0,
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1,
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2,
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3,
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4,
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5,
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7,
} D3D11_VIDEO_PROCESSOR_STEREO_FORMAT;
typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
{
D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0,
D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1,
D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2,
} D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE;
typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
{
D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0,
D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1,
D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
} D3D11_VIDEO_PROCESSOR_ROTATION;
typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
{
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x02,
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x04,
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x08,
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20,
} D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS
{
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x00000001,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x00000002,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x00000004,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x00000008,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x00000010,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x00000020,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x00000040,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x00000080,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x00000100,
D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000,
} D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS;
typedef enum D3D11_CONTENT_PROTECTION_CAPS
{
D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001,
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002,
D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004,
D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008,
D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010,
D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020,
D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040,
D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080,
D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100,
D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200,
D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400,
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800,
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000,
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000,
D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000,
} D3D11_CONTENT_PROTECTION_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE
{
D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0x00000000,
D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 0x00000001,
D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 0x00000002,
} D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE;
typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE
{
D3D11_PROCESSIDTYPE_UNKNOWN = 0x00000000,
D3D11_PROCESSIDTYPE_DWM = 0x00000001,
D3D11_PROCESSIDTYPE_HANDLE = 0x00000002,
} D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE;
typedef enum D3D11_BUS_TYPE
{
D3D11_BUS_TYPE_OTHER = 0x00000000,
D3D11_BUS_TYPE_PCI = 0x00000001,
D3D11_BUS_TYPE_PCIX = 0x00000002,
D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003,
D3D11_BUS_TYPE_AGP = 0x00000004,
D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000,
D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000,
D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000,
D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000,
D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000,
D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000,
} D3D11_BUS_TYPE;
typedef struct D3D11_BOX
{
UINT left;
UINT top;
UINT front;
UINT right;
UINT bottom;
UINT back;
} D3D11_BOX;
typedef struct D3D11_BUFFER_RTV
{
union
{
UINT FirstElement;
UINT ElementOffset;
};
union
{
UINT NumElements;
UINT ElementWidth;
};
} D3D11_BUFFER_RTV;
typedef struct D3D11_BUFFER_SRV
{
union
{
UINT FirstElement;
UINT ElementOffset;
};
union
{
UINT NumElements;
UINT ElementWidth;
};
} D3D11_BUFFER_SRV;
typedef struct D3D11_BUFFER_UAV
{
UINT FirstElement;
UINT NumElements;
UINT Flags;
} D3D11_BUFFER_UAV;
typedef struct D3D11_BUFFEREX_SRV
{
UINT FirstElement;
UINT NumElements;
UINT Flags;
} D3D11_BUFFEREX_SRV;
typedef struct D3D11_CLASS_INSTANCE_DESC
{
UINT InstanceId;
UINT InstanceIndex;
UINT TypeId;
UINT ConstantBuffer;
UINT BaseConstantBufferOffset;
UINT BaseTexture;
UINT BaseSampler;
BOOL Created;
} D3D11_CLASS_INSTANCE_DESC;
typedef enum D3D11_COMPARISON_FUNC
{
D3D11_COMPARISON_NEVER = 1,
D3D11_COMPARISON_LESS,
D3D11_COMPARISON_EQUAL,
D3D11_COMPARISON_LESS_EQUAL,
D3D11_COMPARISON_GREATER,
D3D11_COMPARISON_NOT_EQUAL,
D3D11_COMPARISON_GREATER_EQUAL,
D3D11_COMPARISON_ALWAYS
} D3D11_COMPARISON_FUNC;
typedef enum D3D11_COUNTER
{
D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
} D3D11_COUNTER;
typedef struct D3D11_COUNTER_DESC
{
D3D11_COUNTER Counter;
UINT MiscFlags;
} D3D11_COUNTER_DESC;
typedef struct D3D11_COUNTER_INFO
{
D3D11_COUNTER LastDeviceDependentCounter;
UINT NumSimultaneousCounters;
UINT8 NumDetectableParallelUnits;
} D3D11_COUNTER_INFO;
typedef enum D3D11_COUNTER_TYPE
{
D3D11_COUNTER_TYPE_FLOAT32,
D3D11_COUNTER_TYPE_UINT16,
D3D11_COUNTER_TYPE_UINT32,
D3D11_COUNTER_TYPE_UINT64,
} D3D11_COUNTER_TYPE;
typedef enum D3D11_CULL_MODE
{
D3D11_CULL_NONE = 1,
D3D11_CULL_FRONT,
D3D11_CULL_BACK
} D3D11_CULL_MODE;
typedef enum D3D11_DEPTH_WRITE_MASK
{
D3D11_DEPTH_WRITE_MASK_ZERO,
D3D11_DEPTH_WRITE_MASK_ALL,
} D3D11_DEPTH_WRITE_MASK;
typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS
{
D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe,
} D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
typedef enum D3D11_DEVICE_CONTEXT_TYPE
{
D3D11_DEVICE_CONTEXT_IMMEDIATE,
D3D11_DEVICE_CONTEXT_DEFERRED,
} D3D11_DEVICE_CONTEXT_TYPE;
typedef enum D3D11_DSV_DIMENSION
{
D3D11_DSV_DIMENSION_UNKNOWN,
D3D11_DSV_DIMENSION_TEXTURE1D,
D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
D3D11_DSV_DIMENSION_TEXTURE2D,
D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
D3D11_DSV_DIMENSION_TEXTURE2DMS,
D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
} D3D11_DSV_DIMENSION;
typedef enum D3D11_FEATURE
{
D3D11_FEATURE_THREADING,
D3D11_FEATURE_DOUBLES,
D3D11_FEATURE_FORMAT_SUPPORT,
D3D11_FEATURE_FORMAT_SUPPORT2,
D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS,
D3D11_FEATURE_D3D11_OPTIONS,
D3D11_FEATURE_ARCHITECTURE_INFO,
D3D11_FEATURE_D3D9_OPTIONS,
D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT,
D3D11_FEATURE_D3D9_SHADOW_SUPPORT,
D3D11_FEATURE_D3D11_OPTIONS1,
D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT,
D3D11_FEATURE_MARKER_SUPPORT,
D3D11_FEATURE_D3D9_OPTIONS1,
D3D11_FEATURE_D3D11_OPTIONS2,
D3D11_FEATURE_D3D11_OPTIONS3,
D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT,
D3D11_FEATURE_D3D11_OPTIONS4,
D3D11_FEATURE_SHADER_CACHE,
} D3D11_FEATURE;
typedef struct D3D11_FEATURE_DATA_THREADING
{
BOOL DriverConcurrentCreates;
BOOL DriverCommandLists;
} D3D11_FEATURE_DATA_THREADING;
typedef struct D3D11_FEATURE_DATA_DOUBLES
{
BOOL DoublePrecisionFloatShaderOps;
} D3D11_FEATURE_DATA_DOUBLES;
typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT
{
DXGI_FORMAT InFormat;
UINT OutFormatSupport;
} D3D11_FEATURE_DATA_FORMAT_SUPPORT;
typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2
{
DXGI_FORMAT InFormat;
UINT OutFormatSupport2;
} D3D11_FEATURE_DATA_FORMAT_SUPPORT2;
typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS
{
BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x;
} D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS;
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS
{
BOOL OutputMergerLogicOp;
BOOL UAVOnlyRenderingForcedSampleCount;
BOOL DiscardAPIsSeenByDriver;
BOOL FlagsForUpdateAndCopySeenByDriver;
BOOL ClearView;
BOOL CopyWithOverlap;
BOOL ConstantBufferPartialUpdate;
BOOL ConstantBufferOffsetting;
BOOL MapNoOverwriteOnDynamicConstantBuffer;
BOOL MapNoOverwriteOnDynamicBufferSRV;
BOOL MultisampleRTVWithForcedSampleCountOne;
BOOL SAD4ShaderInstructions;
BOOL ExtendedDoublesShaderInstructions;
BOOL ExtendedResourceSharing;
} D3D11_FEATURE_DATA_D3D11_OPTIONS;
typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO
{
BOOL TileBasedDeferredRenderer;
} D3D11_FEATURE_DATA_ARCHITECTURE_INFO;
typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS
{
BOOL FullNonPow2TextureSupport;
} D3D11_FEATURE_DATA_D3D9_OPTIONS;
typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
{
BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter;
} D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT;
typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT
{
D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1,
D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2,
} D3D11_SHADER_MIN_PRECISION_SUPPORT;
typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
{
UINT PixelShaderMinPrecision;
UINT AllOtherShaderStagesMinPrecision;
} D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT;
typedef enum D3D11_TILED_RESOURCES_TIER
{
D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0x0,
D3D11_TILED_RESOURCES_TIER_1 = 0x1,
D3D11_TILED_RESOURCES_TIER_2 = 0x2,
D3D11_TILED_RESOURCES_TIER_3 = 0x3,
} D3D11_TILED_RESOURCES_TIER;
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1
{
D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
BOOL MinMaxFiltering;
BOOL ClearViewAlsoSupportsDepthOnlyFormats;
BOOL MapOnDefaultBuffers;
} D3D11_FEATURE_DATA_D3D11_OPTIONS1;
typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
{
BOOL SimpleInstancingSupported;
} D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT;
typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT
{
BOOL Profile;
} D3D11_FEATURE_DATA_MARKER_SUPPORT;
typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1
{
BOOL FullNonPow2TextureSupported;
BOOL DepthAsTextureWithLessEqualComparisonFilterSupported;
BOOL SimpleInstancingSupported;
BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported;
} D3D11_FEATURE_DATA_D3D9_OPTIONS1;
typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER
{
D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0x0,
D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 0x1,
D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 0x2,
D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 0x3,
} D3D11_CONSERVATIVE_RASTERIZATION_TIER;
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2
{
BOOL PSSpecifiedStencilRefSupported;
BOOL TypedUAVLoadAdditionalFormats;
BOOL ROVsSupported;
D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
D3D11_TILED_RESOURCES_TIER TiledResourcesTier;
BOOL MapOnDefaultTextures;
BOOL StandardSwizzle;
BOOL UnifiedMemoryArchitecture;
} D3D11_FEATURE_DATA_D3D11_OPTIONS2;
typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3
{
BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer;
} D3D11_FEATURE_DATA_D3D11_OPTIONS3;
typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
{
UINT MaxGPUVirtualAddressBitsPerResource;
UINT MaxGPUVirtualAddressBitsPerProcess;
} D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS
{
D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0,
D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1,
D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2,
} D3D11_SHADER_CACHE_SUPPORT_FLAGS;
typedef struct D3D11_FEATURE_DATA_SHADER_CACHE
{
UINT SupportFlags;
} D3D11_FEATURE_DATA_SHADER_CACHE;
typedef enum D3D11_FILL_MODE
{
D3D11_FILL_WIREFRAME = 2,
D3D11_FILL_SOLID
} D3D11_FILL_MODE;
typedef enum D3D11_FILTER_TYPE
{
D3D11_FILTER_TYPE_POINT = 0,
D3D11_FILTER_TYPE_LINEAR = 1
} D3D11_FILTER_TYPE;
const UINT D3D11_MIN_FILTER_SHIFT = 4;
const UINT D3D11_MAG_FILTER_SHIFT = 2;
const UINT D3D11_MIP_FILTER_SHIFT = 0;
const UINT D3D11_FILTER_TYPE_MASK = 0x00000003;
const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080;
const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040;
cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
typedef enum D3D11_FILTER
{
D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01,
D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04,
D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05,
D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
D3D11_FILTER_ANISOTROPIC = 0x55,
D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
} D3D11_FILTER;
typedef enum D3D11_DSV_FLAG
{
D3D11_DSV_READ_ONLY_DEPTH = 0x1,
D3D11_DSV_READ_ONLY_STENCIL = 0x2,
} D3D11_DSV_FLAG;
typedef enum D3D11_BUFFEREX_SRV_FLAG
{
D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1,
} D3D11_BUFFEREX_SRV_FLAG;
typedef enum D3D11_UAV_FLAG
{
D3D11_BUFFER_UAV_FLAG_RAW = 0x1,
D3D11_BUFFER_UAV_FLAG_APPEND = 0x2,
D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4,
} D3D11_UAV_FLAG;
typedef enum D3D11_INPUT_CLASSIFICATION
{
D3D11_INPUT_PER_VERTEX_DATA,
D3D11_INPUT_PER_INSTANCE_DATA,
} D3D11_INPUT_CLASSIFICATION;
const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff;
typedef struct D3D11_INPUT_ELEMENT_DESC
{
LPCSTR SemanticName;
UINT SemanticIndex;
DXGI_FORMAT Format;
UINT InputSlot;
UINT AlignedByteOffset;
D3D11_INPUT_CLASSIFICATION InputSlotClass;
UINT InstanceDataStepRate;
} D3D11_INPUT_ELEMENT_DESC;
typedef enum D3D11_MAP
{
D3D11_MAP_READ = 1,
D3D11_MAP_WRITE,
D3D11_MAP_READ_WRITE,
D3D11_MAP_WRITE_DISCARD,
D3D11_MAP_WRITE_NO_OVERWRITE
} D3D11_MAP;
typedef enum D3D11_MAP_FLAG
{
D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000
} D3D11_MAP_FLAG;
typedef struct D3D11_QUERY_DATA_SO_STATISTICS
{
UINT64 NumPrimitivesWritten;
UINT64 PrimitivesStorageNeeded;
} D3D11_QUERY_DATA_SO_STATISTICS;
typedef struct D3D11_MAPPED_SUBRESOURCE
{
void *pData;
UINT RowPitch;
UINT DepthPitch;
} D3D11_MAPPED_SUBRESOURCE;
typedef enum D3D11_QUERY
{
D3D11_QUERY_EVENT,
D3D11_QUERY_OCCLUSION,
D3D11_QUERY_TIMESTAMP,
D3D11_QUERY_TIMESTAMP_DISJOINT,
D3D11_QUERY_PIPELINE_STATISTICS,
D3D11_QUERY_OCCLUSION_PREDICATE,
D3D11_QUERY_SO_STATISTICS,
D3D11_QUERY_SO_OVERFLOW_PREDICATE,
D3D11_QUERY_SO_STATISTICS_STREAM0,
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0,
D3D11_QUERY_SO_STATISTICS_STREAM1,
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1,
D3D11_QUERY_SO_STATISTICS_STREAM2,
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2,
D3D11_QUERY_SO_STATISTICS_STREAM3,
D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3,
} D3D11_QUERY;
typedef enum D3D11_QUERY_MISC_FLAG
{
D3D11_QUERY_MISC_PREDICATEHINT = 0x1,
} D3D11_QUERY_MISC_FLAG;
typedef enum D3D11_ASYNC_GETDATA_FLAG
{
D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
} D3D11_ASYNC_GETDATA_FLAG;
typedef enum D3D11_RESOURCE_MISC_FLAG
{
D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
} D3D11_RESOURCE_MISC_FLAG;
typedef struct D3D11_QUERY_DESC
{
D3D11_QUERY Query;
UINT MiscFlags;
} D3D11_QUERY_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
cpp_quote(" CD3D11_QUERY_DESC() {}")
cpp_quote(" ~CD3D11_QUERY_DESC() {}")
cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
cpp_quote(" Query = query;")
cpp_quote(" MiscFlags = misc_flags;")
cpp_quote(" }")
cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
cpp_quote(" return *this;")
cpp_quote(" }")
cpp_quote("};")
cpp_quote("#endif")
typedef struct D3D11_RASTERIZER_DESC
{
D3D11_FILL_MODE FillMode;
D3D11_CULL_MODE CullMode;
BOOL FrontCounterClockwise;
INT DepthBias;
FLOAT DepthBiasClamp;
FLOAT SlopeScaledDepthBias;
BOOL DepthClipEnable;
BOOL ScissorEnable;
BOOL MultisampleEnable;
BOOL AntialiasedLineEnable;
} D3D11_RASTERIZER_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
cpp_quote(" FillMode = D3D11_FILL_SOLID;")
cpp_quote(" CullMode = D3D11_CULL_BACK;")
cpp_quote(" FrontCounterClockwise = FALSE;")
cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
cpp_quote(" DepthClipEnable = TRUE;")
cpp_quote(" ScissorEnable = FALSE;")
cpp_quote(" MultisampleEnable = FALSE;")
cpp_quote(" AntialiasedLineEnable = FALSE;")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
cpp_quote(" FillMode = fillMode;")
cpp_quote(" CullMode = cullMode;")
cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
cpp_quote(" DepthBias = depthBias;")
cpp_quote(" DepthBiasClamp = depthBiasClamp;")
cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
cpp_quote(" DepthClipEnable = depthClipEnable;")
cpp_quote(" ScissorEnable = scissorEnable;")
cpp_quote(" MultisampleEnable = multisampleEnable;")
cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
cpp_quote(" }")
cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
cpp_quote("};")
cpp_quote("#endif")
typedef enum D3D11_RESOURCE_DIMENSION
{
D3D11_RESOURCE_DIMENSION_UNKNOWN,
D3D11_RESOURCE_DIMENSION_BUFFER,
D3D11_RESOURCE_DIMENSION_TEXTURE1D,
D3D11_RESOURCE_DIMENSION_TEXTURE2D,
D3D11_RESOURCE_DIMENSION_TEXTURE3D,
} D3D11_RESOURCE_DIMENSION;
typedef enum D3D11_RTV_DIMENSION
{
D3D11_RTV_DIMENSION_UNKNOWN,
D3D11_RTV_DIMENSION_BUFFER,
D3D11_RTV_DIMENSION_TEXTURE1D,
D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
D3D11_RTV_DIMENSION_TEXTURE2D,
D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
D3D11_RTV_DIMENSION_TEXTURE2DMS,
D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
D3D11_RTV_DIMENSION_TEXTURE3D,
} D3D11_RTV_DIMENSION;
typedef struct D3D11_SO_DECLARATION_ENTRY
{
UINT Stream;
LPCSTR SemanticName;
UINT SemanticIndex;
BYTE StartComponent;
BYTE ComponentCount;
BYTE OutputSlot;
} D3D11_SO_DECLARATION_ENTRY;
typedef enum D3D11_STENCIL_OP
{
D3D11_STENCIL_OP_KEEP = 1,
D3D11_STENCIL_OP_ZERO,
D3D11_STENCIL_OP_REPLACE,
D3D11_STENCIL_OP_INCR_SAT,
D3D11_STENCIL_OP_DECR_SAT,
D3D11_STENCIL_OP_INVERT,
D3D11_STENCIL_OP_INCR,
D3D11_STENCIL_OP_DECR
} D3D11_STENCIL_OP;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("}")
cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
cpp_quote("}")
cpp_quote("extern \"C\"{")
cpp_quote("#endif")
typedef struct D3D11_SUBRESOURCE_DATA
{
const void *pSysMem;
UINT SysMemPitch;
UINT SysMemSlicePitch;
} D3D11_SUBRESOURCE_DATA;
typedef struct D3D11_TEX1D_ARRAY_DSV
{
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX1D_ARRAY_DSV;
typedef struct D3D11_TEX1D_ARRAY_RTV
{
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX1D_ARRAY_RTV;
typedef struct D3D11_TEX1D_ARRAY_SRV
{
UINT MostDetailedMip;
UINT MipLevels;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX1D_ARRAY_SRV;
typedef struct D3D11_TEX1D_ARRAY_UAV
{
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX1D_ARRAY_UAV;
typedef struct D3D11_TEX1D_DSV
{
UINT MipSlice;
} D3D11_TEX1D_DSV;
typedef struct D3D11_TEX1D_RTV
{
UINT MipSlice;
} D3D11_TEX1D_RTV;
typedef struct D3D11_TEX1D_SRV
{
UINT MostDetailedMip;
UINT MipLevels;
} D3D11_TEX1D_SRV;
typedef struct D3D11_TEX1D_UAV
{
UINT MipSlice;
} D3D11_TEX1D_UAV;
typedef struct D3D11_TEX2D_ARRAY_DSV
{
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2D_ARRAY_DSV;
typedef struct D3D11_TEX2D_ARRAY_RTV
{
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2D_ARRAY_RTV;
typedef struct D3D11_TEX2D_ARRAY_SRV
{
UINT MostDetailedMip;
UINT MipLevels;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2D_ARRAY_SRV;
typedef struct D3D11_TEX2D_ARRAY_UAV
{
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2D_ARRAY_UAV;
typedef struct D3D11_TEX2D_DSV
{
UINT MipSlice;
} D3D11_TEX2D_DSV;
typedef struct D3D11_TEX2D_RTV
{
UINT MipSlice;
} D3D11_TEX2D_RTV;
typedef struct D3D11_TEX2D_SRV
{
UINT MostDetailedMip;
UINT MipLevels;
} D3D11_TEX2D_SRV;
typedef struct D3D11_TEX2D_UAV
{
UINT MipSlice;
} D3D11_TEX2D_UAV;
typedef struct D3D11_TEX2DMS_ARRAY_DSV
{
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2DMS_ARRAY_DSV;
typedef struct D3D11_TEX2DMS_ARRAY_RTV
{
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2DMS_ARRAY_RTV;
typedef struct D3D11_TEX2DMS_ARRAY_SRV
{
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2DMS_ARRAY_SRV;
typedef struct D3D11_TEX2DMS_DSV
{
UINT UnusedField_NothingToDefine;
} D3D11_TEX2DMS_DSV;
typedef struct D3D11_TEX2DMS_RTV
{
UINT UnusedField_NothingToDefine;
} D3D11_TEX2DMS_RTV;
typedef struct D3D11_TEX2DMS_SRV
{
UINT UnusedField_NothingToDefine;
} D3D11_TEX2DMS_SRV;
typedef struct D3D11_TEX3D_RTV
{
UINT MipSlice;
UINT FirstWSlice;
UINT WSize;
} D3D11_TEX3D_RTV;
typedef struct D3D11_TEX3D_SRV
{
UINT MostDetailedMip;
UINT MipLevels;
} D3D11_TEX3D_SRV;
typedef struct D3D11_TEX3D_UAV
{
UINT MipSlice;
UINT FirstWSlice;
UINT WSize;
} D3D11_TEX3D_UAV;
typedef struct D3D11_TEXCUBE_ARRAY_SRV
{
UINT MostDetailedMip;
UINT MipLevels;
UINT First2DArrayFace;
UINT NumCubes;
} D3D11_TEXCUBE_ARRAY_SRV;
typedef struct D3D11_TEXCUBE_SRV
{
UINT MostDetailedMip;
UINT MipLevels;
} D3D11_TEXCUBE_SRV;
typedef enum D3D11_TEXTURE_ADDRESS_MODE
{
D3D11_TEXTURE_ADDRESS_WRAP = 1,
D3D11_TEXTURE_ADDRESS_MIRROR,
D3D11_TEXTURE_ADDRESS_CLAMP,
D3D11_TEXTURE_ADDRESS_BORDER,
D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
} D3D11_TEXTURE_ADDRESS_MODE;
typedef enum D3D11_UAV_DIMENSION
{
D3D11_UAV_DIMENSION_UNKNOWN,
D3D11_UAV_DIMENSION_BUFFER,
D3D11_UAV_DIMENSION_TEXTURE1D,
D3D11_UAV_DIMENSION_TEXTURE1DARRAY,
D3D11_UAV_DIMENSION_TEXTURE2D,
D3D11_UAV_DIMENSION_TEXTURE2DARRAY,
D3D11_UAV_DIMENSION_TEXTURE3D = 8,
} D3D11_UAV_DIMENSION;
typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC
{
DXGI_FORMAT Format;
D3D11_UAV_DIMENSION ViewDimension;
union
{
D3D11_BUFFER_UAV Buffer;
D3D11_TEX1D_UAV Texture1D;
D3D11_TEX1D_ARRAY_UAV Texture1DArray;
D3D11_TEX2D_UAV Texture2D;
D3D11_TEX2D_ARRAY_UAV Texture2DArray;
D3D11_TEX3D_UAV Texture3D;
};
} D3D11_UNORDERED_ACCESS_VIEW_DESC;
typedef enum D3D11_USAGE
{
D3D11_USAGE_DEFAULT,
D3D11_USAGE_IMMUTABLE,
D3D11_USAGE_DYNAMIC,
D3D11_USAGE_STAGING,
} D3D11_USAGE;
typedef enum D3D11_BIND_FLAG
{
D3D11_BIND_VERTEX_BUFFER = 0x0001,
D3D11_BIND_INDEX_BUFFER = 0x0002,
D3D11_BIND_CONSTANT_BUFFER = 0x0004,
D3D11_BIND_SHADER_RESOURCE = 0x0008,
D3D11_BIND_STREAM_OUTPUT = 0x0010,
D3D11_BIND_RENDER_TARGET = 0x0020,
D3D11_BIND_DEPTH_STENCIL = 0x0040,
D3D11_BIND_UNORDERED_ACCESS = 0x0080,
D3D11_BIND_DECODER = 0x0200,
D3D11_BIND_VIDEO_ENCODER = 0x0400
} D3D11_BIND_FLAG;
typedef enum D3D11_CPU_ACCESS_FLAG
{
D3D11_CPU_ACCESS_WRITE = 0x00010000,
D3D11_CPU_ACCESS_READ = 0x00020000
} D3D11_CPU_ACCESS_FLAG;
typedef struct D3D11_VIEWPORT
{
FLOAT TopLeftX;
FLOAT TopLeftY;
FLOAT Width;
FLOAT Height;
FLOAT MinDepth;
FLOAT MaxDepth;
} D3D11_VIEWPORT;
typedef enum D3D11_COLOR_WRITE_ENABLE
{
D3D11_COLOR_WRITE_ENABLE_RED = 1,
D3D11_COLOR_WRITE_ENABLE_GREEN = 2,
D3D11_COLOR_WRITE_ENABLE_BLUE = 4,
D3D11_COLOR_WRITE_ENABLE_ALPHA = 8,
D3D11_COLOR_WRITE_ENABLE_ALL =
(D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
} D3D11_COLOR_WRITE_ENABLE;
typedef enum D3D11_FORMAT_SUPPORT
{
D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000,
D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000,
D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000,
} D3D11_FORMAT_SUPPORT;
typedef enum D3D11_CLEAR_FLAG
{
D3D11_CLEAR_DEPTH = 0x0001L,
D3D11_CLEAR_STENCIL = 0x0002L
} D3D11_CLEAR_FLAG;
typedef struct D3D11_RENDER_TARGET_BLEND_DESC
{
BOOL BlendEnable;
D3D11_BLEND SrcBlend;
D3D11_BLEND DestBlend;
D3D11_BLEND_OP BlendOp;
D3D11_BLEND SrcBlendAlpha;
D3D11_BLEND DestBlendAlpha;
D3D11_BLEND_OP BlendOpAlpha;
UINT8 RenderTargetWriteMask;
} D3D11_RENDER_TARGET_BLEND_DESC;
typedef struct D3D11_BLEND_DESC
{
BOOL AlphaToCoverageEnable;
BOOL IndependentBlendEnable;
D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT];
} D3D11_BLEND_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
cpp_quote(" CD3D11_BLEND_DESC() {}")
cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
cpp_quote(" AlphaToCoverageEnable = FALSE;")
cpp_quote(" IndependentBlendEnable = FALSE;")
cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
cpp_quote(" target->BlendEnable = FALSE;")
cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
cpp_quote(" }")
cpp_quote(" }")
cpp_quote(" ~CD3D11_BLEND_DESC() {}")
cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
cpp_quote("};" )
cpp_quote("#endif" )
typedef struct D3D11_BUFFER_DESC
{
UINT ByteWidth;
D3D11_USAGE Usage;
UINT BindFlags;
UINT CPUAccessFlags;
UINT MiscFlags;
UINT StructureByteStride;
} D3D11_BUFFER_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
cpp_quote(" CD3D11_BUFFER_DESC() {}" )
cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
cpp_quote(" ByteWidth = byteWidth;")
cpp_quote(" Usage = usage;")
cpp_quote(" BindFlags = bindFlags;")
cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
cpp_quote(" MiscFlags = miscFlags;" )
cpp_quote(" StructureByteStride = structureByteStride;")
cpp_quote(" }")
cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
cpp_quote("};" )
cpp_quote("#endif" )
typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC
{
DXGI_FORMAT Format;
D3D11_DSV_DIMENSION ViewDimension;
UINT Flags;
union
{
D3D11_TEX1D_DSV Texture1D;
D3D11_TEX1D_ARRAY_DSV Texture1DArray;
D3D11_TEX2D_DSV Texture2D;
D3D11_TEX2D_ARRAY_DSV Texture2DArray;
D3D11_TEX2DMS_DSV Texture2DMS;
D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray;
};
} D3D11_DEPTH_STENCIL_VIEW_DESC;
typedef struct D3D11_DEPTH_STENCILOP_DESC
{
D3D11_STENCIL_OP StencilFailOp;
D3D11_STENCIL_OP StencilDepthFailOp;
D3D11_STENCIL_OP StencilPassOp;
D3D11_COMPARISON_FUNC StencilFunc;
} D3D11_DEPTH_STENCILOP_DESC;
typedef struct D3D11_DEPTH_STENCIL_DESC
{
BOOL DepthEnable;
D3D11_DEPTH_WRITE_MASK DepthWriteMask;
D3D11_COMPARISON_FUNC DepthFunc;
BOOL StencilEnable;
UINT8 StencilReadMask;
UINT8 StencilWriteMask;
D3D11_DEPTH_STENCILOP_DESC FrontFace;
D3D11_DEPTH_STENCILOP_DESC BackFace;
} D3D11_DEPTH_STENCIL_DESC;
cpp_quote("#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )")
cpp_quote("struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC {")
cpp_quote(" CD3D11_DEPTH_STENCIL_DESC() {}")
cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(const D3D11_DEPTH_STENCIL_DESC &other) : D3D11_DEPTH_STENCIL_DESC(other) {}")
cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT) {")
cpp_quote(" const D3D11_DEPTH_STENCILOP_DESC default_op =")
cpp_quote(" {D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS};")
cpp_quote(" DepthEnable = TRUE;")
cpp_quote(" DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;")
cpp_quote(" DepthFunc = D3D11_COMPARISON_LESS;")
cpp_quote(" StencilEnable = FALSE;")
cpp_quote(" StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;")
cpp_quote(" StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;")
cpp_quote(" FrontFace = default_op;")
cpp_quote(" BackFace = default_op;")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_DEPTH_STENCIL_DESC(")
cpp_quote(" BOOL depth_enable,")
cpp_quote(" D3D11_DEPTH_WRITE_MASK depth_write_mask,")
cpp_quote(" D3D11_COMPARISON_FUNC depth_func,")
cpp_quote(" BOOL stencil_enable,")
cpp_quote(" UINT8 stencil_read_mask,")
cpp_quote(" UINT8 stencil_write_mask,")
cpp_quote(" D3D11_STENCIL_OP front_stencil_fail_op,")
cpp_quote(" D3D11_STENCIL_OP front_stencil_depth_fail_op,")
cpp_quote(" D3D11_STENCIL_OP front_stencil_pass_op,")
cpp_quote(" D3D11_COMPARISON_FUNC front_stencil_func,")
cpp_quote(" D3D11_STENCIL_OP back_stencil_fail_op,")
cpp_quote(" D3D11_STENCIL_OP back_stencil_depth_fail_op,")
cpp_quote(" D3D11_STENCIL_OP back_stencil_pass_op,")
cpp_quote(" D3D11_COMPARISON_FUNC back_stencil_func) {")
cpp_quote(" DepthEnable = depth_enable;")
cpp_quote(" DepthWriteMask = depth_write_mask;")
cpp_quote(" DepthFunc = depth_func;")
cpp_quote(" StencilEnable = stencil_enable;")
cpp_quote(" StencilReadMask = stencil_read_mask;")
cpp_quote(" StencilWriteMask = stencil_write_mask;")
cpp_quote(" FrontFace.StencilFailOp = front_stencil_fail_op;")
cpp_quote(" FrontFace.StencilDepthFailOp = front_stencil_depth_fail_op;")
cpp_quote(" FrontFace.StencilPassOp = front_stencil_pass_op;")
cpp_quote(" FrontFace.StencilFunc = front_stencil_func;")
cpp_quote(" BackFace.StencilFailOp = back_stencil_fail_op;")
cpp_quote(" BackFace.StencilDepthFailOp = back_stencil_depth_fail_op;")
cpp_quote(" BackFace.StencilPassOp = back_stencil_pass_op;")
cpp_quote(" BackFace.StencilFunc = back_stencil_func;")
cpp_quote(" }")
cpp_quote(" ~CD3D11_DEPTH_STENCIL_DESC() {}")
cpp_quote(" operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; }")
cpp_quote("};")
cpp_quote("#endif")
typedef struct D3D11_RENDER_TARGET_VIEW_DESC
{
DXGI_FORMAT Format;
D3D11_RTV_DIMENSION ViewDimension;
union
{
D3D11_BUFFER_RTV Buffer;
D3D11_TEX1D_RTV Texture1D;
D3D11_TEX1D_ARRAY_RTV Texture1DArray;
D3D11_TEX2D_RTV Texture2D;
D3D11_TEX2D_ARRAY_RTV Texture2DArray;
D3D11_TEX2DMS_RTV Texture2DMS;
D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray;
D3D11_TEX3D_RTV Texture3D;
};
} D3D11_RENDER_TARGET_VIEW_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC {")
cpp_quote(" CD3D11_RENDER_TARGET_VIEW_DESC() {}")
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION dim, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
cpp_quote(" UINT mip_slice = 0, UINT first_slice = 0, UINT array_size = -1) {")
cpp_quote(" Format = format;")
cpp_quote(" ViewDimension = dim;")
cpp_quote(" switch(dim) {")
cpp_quote(" case D3D11_RTV_DIMENSION_BUFFER:")
cpp_quote(" Buffer.FirstElement = mip_slice;")
cpp_quote(" Buffer.NumElements = first_slice;")
cpp_quote(" break;")
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1D:")
cpp_quote(" Texture1D.MipSlice = mip_slice;")
cpp_quote(" break;")
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:")
cpp_quote(" Texture1DArray.MipSlice = mip_slice;")
cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
cpp_quote(" Texture1DArray.ArraySize = array_size;")
cpp_quote(" break;")
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2D:")
cpp_quote(" Texture2D.MipSlice = mip_slice;")
cpp_quote(" break;")
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:")
cpp_quote(" Texture2DArray.MipSlice = mip_slice;")
cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
cpp_quote(" Texture2DArray.ArraySize = array_size;")
cpp_quote(" break;")
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:")
cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
cpp_quote(" break;")
cpp_quote(" case D3D11_RTV_DIMENSION_TEXTURE3D:")
cpp_quote(" Texture3D.MipSlice = mip_slice;")
cpp_quote(" Texture3D.FirstWSlice = first_slice;")
cpp_quote(" Texture3D.WSize = array_size;")
cpp_quote(" break;")
cpp_quote(" default:")
cpp_quote(" break;")
cpp_quote(" }")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
cpp_quote(" UINT elem_cnt) {")
cpp_quote(" Format = format;")
cpp_quote(" ViewDimension = D3D11_RTV_DIMENSION_BUFFER;")
cpp_quote(" Buffer.FirstElement = first_elem;")
cpp_quote(" Buffer.NumElements = elem_cnt;")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture1D *texture, D3D11_RTV_DIMENSION dim,")
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture2D *texture, D3D11_RTV_DIMENSION dim,")
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT mip_slice = 0, UINT first_slice = 0,")
cpp_quote(" UINT array_size = -1);") /* FIXME: implement */
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
cpp_quote(" UINT mip_slice = 0, UINT first_w_slice = 0, UINT w_slice = -1 );") /* FIXME: implement */
cpp_quote(" ~CD3D11_RENDER_TARGET_VIEW_DESC() {}")
cpp_quote(" explicit CD3D11_RENDER_TARGET_VIEW_DESC(const D3D11_RENDER_TARGET_VIEW_DESC &other)")
cpp_quote(" : D3D11_RENDER_TARGET_VIEW_DESC(other) {}")
cpp_quote(" operator const D3D11_RENDER_TARGET_VIEW_DESC&() const {")
cpp_quote(" return *this;")
cpp_quote(" }")
cpp_quote("};")
cpp_quote("#endif")
typedef struct D3D11_SAMPLER_DESC
{
D3D11_FILTER Filter;
D3D11_TEXTURE_ADDRESS_MODE AddressU;
D3D11_TEXTURE_ADDRESS_MODE AddressV;
D3D11_TEXTURE_ADDRESS_MODE AddressW;
FLOAT MipLODBias;
UINT MaxAnisotropy;
D3D11_COMPARISON_FUNC ComparisonFunc;
FLOAT BorderColor[4];
FLOAT MinLOD;
FLOAT MaxLOD;
} D3D11_SAMPLER_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
cpp_quote(" CD3D11_SAMPLER_DESC() {}")
cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
cpp_quote(" MipLODBias = 0;")
cpp_quote(" MaxAnisotropy = 1;")
cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
cpp_quote(" MinLOD = -3.402823466e+38f;")
cpp_quote(" MaxLOD = 3.402823466e+38f;")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
cpp_quote(" Filter = filter;")
cpp_quote(" AddressU = addressU;")
cpp_quote(" AddressV = addressV;")
cpp_quote(" AddressW = addressW;")
cpp_quote(" MipLODBias = mipLODBias;")
cpp_quote(" MaxAnisotropy = maxAnisotropy;")
cpp_quote(" ComparisonFunc = comparisonFunc;")
cpp_quote(" if(borderColor) {")
cpp_quote(" BorderColor[0] = borderColor[0];")
cpp_quote(" BorderColor[1] = borderColor[1];")
cpp_quote(" BorderColor[2] = borderColor[2];")
cpp_quote(" BorderColor[3] = borderColor[3];")
cpp_quote(" }else {")
cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
cpp_quote(" }")
cpp_quote(" MinLOD = minLOD;")
cpp_quote(" MaxLOD = maxLOD;")
cpp_quote(" }")
cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
cpp_quote("};")
cpp_quote("#endif")
typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC
{
DXGI_FORMAT Format;
D3D11_SRV_DIMENSION ViewDimension;
union
{
D3D11_BUFFER_SRV Buffer;
D3D11_TEX1D_SRV Texture1D;
D3D11_TEX1D_ARRAY_SRV Texture1DArray;
D3D11_TEX2D_SRV Texture2D;
D3D11_TEX2D_ARRAY_SRV Texture2DArray;
D3D11_TEX2DMS_SRV Texture2DMS;
D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray;
D3D11_TEX3D_SRV Texture3D;
D3D11_TEXCUBE_SRV TextureCube;
D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray;
D3D11_BUFFEREX_SRV BufferEx;
};
} D3D11_SHADER_RESOURCE_VIEW_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined( __cplusplus )")
cpp_quote("struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC {")
cpp_quote(" CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(D3D11_SRV_DIMENSION dim,")
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0,")
cpp_quote(" UINT mip_levels = -1, UINT first_slice = 0, UINT array_size = -1, UINT flags = 0) {")
cpp_quote(" Format = format;")
cpp_quote(" ViewDimension = dim;")
cpp_quote(" switch(ViewDimension) {")
cpp_quote(" case D3D11_SRV_DIMENSION_BUFFER:")
cpp_quote(" Buffer.FirstElement = most_detailed_mip;")
cpp_quote(" Buffer.NumElements = mip_levels;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1D:")
cpp_quote(" Texture1D.MostDetailedMip = most_detailed_mip;")
cpp_quote(" Texture1D.MipLevels = mip_levels;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:")
cpp_quote(" Texture1DArray.MostDetailedMip = most_detailed_mip;")
cpp_quote(" Texture1DArray.MipLevels = mip_levels;")
cpp_quote(" Texture1DArray.FirstArraySlice = first_slice;")
cpp_quote(" Texture1DArray.ArraySize = array_size;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2D:")
cpp_quote(" Texture2D.MostDetailedMip = most_detailed_mip;")
cpp_quote(" Texture2D.MipLevels = mip_levels;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:")
cpp_quote(" Texture2DArray.MostDetailedMip = most_detailed_mip;")
cpp_quote(" Texture2DArray.MipLevels = mip_levels;")
cpp_quote(" Texture2DArray.FirstArraySlice = first_slice;")
cpp_quote(" Texture2DArray.ArraySize = array_size;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:")
cpp_quote(" Texture2DMSArray.FirstArraySlice = first_slice;")
cpp_quote(" Texture2DMSArray.ArraySize = array_size;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURE3D:")
cpp_quote(" Texture3D.MostDetailedMip = most_detailed_mip;")
cpp_quote(" Texture3D.MipLevels = mip_levels;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBE:")
cpp_quote(" TextureCube.MostDetailedMip = most_detailed_mip;")
cpp_quote(" TextureCube.MipLevels = mip_levels;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:")
cpp_quote(" TextureCubeArray.MostDetailedMip = most_detailed_mip;")
cpp_quote(" TextureCubeArray.MipLevels = mip_levels;")
cpp_quote(" TextureCubeArray.First2DArrayFace = first_slice;")
cpp_quote(" TextureCubeArray.NumCubes = array_size;")
cpp_quote(" break;")
cpp_quote(" case D3D11_SRV_DIMENSION_BUFFEREX:")
cpp_quote(" BufferEx.FirstElement = most_detailed_mip;")
cpp_quote(" BufferEx.NumElements = mip_levels;")
cpp_quote(" BufferEx.Flags = flags;")
cpp_quote(" break;")
cpp_quote(" default:")
cpp_quote(" break;")
cpp_quote(" }")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*, DXGI_FORMAT format, UINT first_elem,")
cpp_quote(" UINT elem_cnt, UINT flags = 0);") /* FIXME: implement */
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture1D *texture, D3D11_SRV_DIMENSION dim,")
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture2D *texture, D3D11_SRV_DIMENSION dim,")
cpp_quote(" DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, UINT most_detailed_mip = 0, UINT mip_levels = -1,")
cpp_quote(" UINT first_slice = 0, UINT array_size = -1 );") /* FIXME: implement */
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Texture3D *texture, DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN,")
cpp_quote(" UINT most_detailed_mip = 0, UINT mip_levels = -1 );")
cpp_quote(" ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}")
cpp_quote(" explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(const D3D11_SHADER_RESOURCE_VIEW_DESC &other)")
cpp_quote(" : D3D11_SHADER_RESOURCE_VIEW_DESC(other) {}")
cpp_quote(" operator const D3D11_SHADER_RESOURCE_VIEW_DESC&() const {")
cpp_quote(" return *this;")
cpp_quote(" }")
cpp_quote("};")
cpp_quote("#endif")
typedef struct D3D11_TEXTURE1D_DESC
{
UINT Width;
UINT MipLevels;
UINT ArraySize;
DXGI_FORMAT Format;
D3D11_USAGE Usage;
UINT BindFlags;
UINT CPUAccessFlags;
UINT MiscFlags;
} D3D11_TEXTURE1D_DESC;
typedef struct D3D11_TEXTURE2D_DESC
{
UINT Width;
UINT Height;
UINT MipLevels;
UINT ArraySize;
DXGI_FORMAT Format;
DXGI_SAMPLE_DESC SampleDesc;
D3D11_USAGE Usage;
UINT BindFlags;
UINT CPUAccessFlags;
UINT MiscFlags;
} D3D11_TEXTURE2D_DESC;
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
cpp_quote(" Width = width;")
cpp_quote(" Height = height;")
cpp_quote(" MipLevels = mipLevels;")
cpp_quote(" ArraySize = arraySize;")
cpp_quote(" Format = format;")
cpp_quote(" SampleDesc.Count = sampleCount;")
cpp_quote(" SampleDesc.Quality = sampleQuality;")
cpp_quote(" Usage = usage;")
cpp_quote(" BindFlags = bindFlags;")
cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
cpp_quote(" MiscFlags = miscFlags;")
cpp_quote(" }" )
cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
cpp_quote("};")
cpp_quote("#endif")
typedef struct D3D11_TEXTURE3D_DESC
{
UINT Width;
UINT Height;
UINT Depth;
UINT MipLevels;
DXGI_FORMAT Format;
D3D11_USAGE Usage;
UINT BindFlags;
UINT CPUAccessFlags;
UINT MiscFlags;
} D3D11_TEXTURE3D_DESC;
typedef struct D3D11_VIDEO_DECODER_DESC
{
GUID Guid;
UINT SampleWidth;
UINT SampleHeight;
DXGI_FORMAT OutputFormat;
} D3D11_VIDEO_DECODER_DESC;
typedef struct D3D11_VIDEO_DECODER_CONFIG
{
GUID guidConfigBitstreamEncryption;
GUID guidConfigMBcontrolEncryption;
GUID guidConfigResidDiffEncryption;
UINT ConfigBitstreamRaw;
UINT ConfigMBcontrolRasterOrder;
UINT ConfigResidDiffHost;
UINT ConfigSpatialResid8;
UINT ConfigResid8Subtraction;
UINT ConfigSpatialHost8or9Clipping;
UINT ConfigSpatialResidInterleaved;
UINT ConfigIntraResidUnsigned;
UINT ConfigResidDiffAccelerator;
UINT ConfigHostInverseScan;
UINT ConfigSpecificIDCT;
UINT Config4GroupedCoefs;
USHORT ConfigMinRenderTargetBuffCount;
USHORT ConfigDecoderSpecific;
} D3D11_VIDEO_DECODER_CONFIG;
typedef enum D3D11_VIDEO_FRAME_FORMAT
{
D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
} D3D11_VIDEO_FRAME_FORMAT;
typedef enum D3D11_VIDEO_USAGE
{
D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0,
D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1,
D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2
} D3D11_VIDEO_USAGE;
typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC
{
D3D11_VIDEO_FRAME_FORMAT InputFrameFormat;
DXGI_RATIONAL InputFrameRate;
UINT InputWidth;
UINT InputHeight;
DXGI_RATIONAL OutputFrameRate;
UINT OutputWidth;
UINT OutputHeight;
D3D11_VIDEO_USAGE Usage;
} D3D11_VIDEO_PROCESSOR_CONTENT_DESC;
typedef struct D3D11_VIDEO_PROCESSOR_CAPS
{
UINT DeviceCaps;
UINT FeatureCaps;
UINT FilterCaps;
UINT InputFormatCaps;
UINT AutoStreamCaps;
UINT StereoCaps;
UINT RateConversionCapsCount;
UINT MaxInputStreams;
UINT MaxStreamStates;
} D3D11_VIDEO_PROCESSOR_CAPS;
typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
{
UINT PastFrames;
UINT FutureFrames;
UINT ProcessorCaps;
UINT ITelecineCaps;
UINT CustomRateCount;
} D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;
typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE
{
DXGI_RATIONAL CustomRate;
UINT OutputFrames;
BOOL InputInterlaced;
UINT InputFramesOrFields;
} D3D11_VIDEO_PROCESSOR_CUSTOM_RATE;
typedef enum D3D11_VIDEO_PROCESSOR_FILTER
{
D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0,
D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1,
D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2,
D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3,
D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4,
D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5,
D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6,
D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7
} D3D11_VIDEO_PROCESSOR_FILTER;
typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
{
int Minimum;
int Maximum;
int Default;
float Multiplier;
} D3D11_VIDEO_PROCESSOR_FILTER_RANGE;
typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE
{
D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1,
D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2,
D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3
} D3D11_AUTHENTICATED_CHANNEL_TYPE;
typedef enum D3D11_VDOV_DIMENSION
{
D3D11_VDOV_DIMENSION_UNKNOWN = 0,
D3D11_VDOV_DIMENSION_TEXTURE2D = 1
} D3D11_VDOV_DIMENSION;
typedef struct D3D11_TEX2D_VDOV
{
UINT ArraySlice;
} D3D11_TEX2D_VDOV;
typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC
{
GUID DecodeProfile;
D3D11_VDOV_DIMENSION ViewDimension;
union {
D3D11_TEX2D_VDOV Texture2D;
};
} D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC;
typedef enum D3D11_VPIV_DIMENSION
{
D3D11_VPIV_DIMENSION_UNKNOWN = 0,
D3D11_VPIV_DIMENSION_TEXTURE2D = 1
} D3D11_VPIV_DIMENSION;
typedef struct D3D11_TEX2D_VPIV
{
UINT MipSlice;
UINT ArraySlice;
} D3D11_TEX2D_VPIV;
typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC
{
UINT FourCC;
D3D11_VPIV_DIMENSION ViewDimension;
union {
D3D11_TEX2D_VPIV Texture2D;
};
} D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC;
typedef enum D3D11_VPOV_DIMENSION
{
D3D11_VPOV_DIMENSION_UNKNOWN = 0,
D3D11_VPOV_DIMENSION_TEXTURE2D = 1,
D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2
} D3D11_VPOV_DIMENSION;
typedef struct D3D11_TEX2D_VPOV
{
UINT MipSlice;
} D3D11_TEX2D_VPOV;
typedef struct D3D11_TEX2D_ARRAY_VPOV
{
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
} D3D11_TEX2D_ARRAY_VPOV;
typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC
{
D3D11_VPOV_DIMENSION ViewDimension;
union {
D3D11_TEX2D_VPOV Texture2D;
D3D11_TEX2D_ARRAY_VPOV Texture2DArray;
};
} D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC;
typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS
{
UINT Caps;
UINT KeyExchangeTypeCount;
UINT BlockAlignmentSize;
ULONGLONG ProtectedMemorySize;
} D3D11_VIDEO_CONTENT_PROTECTION_CAPS;
typedef struct D3D11_ENCRYPTED_BLOCK_INFO
{
UINT NumEncryptedBytesAtBeginning;
UINT NumBytesInSkipPattern;
UINT NumBytesInEncryptPattern;
} D3D11_ENCRYPTED_BLOCK_INFO;
typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC
{
D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
UINT BufferIndex;
UINT DataOffset;
UINT DataSize;
UINT FirstMBaddress;
UINT NumMBsInBuffer;
UINT Width;
UINT Height;
UINT Stride;
UINT ReservedBits;
void *pIV;
UINT IVSize;
BOOL PartialEncryption;
D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo;
} D3D11_VIDEO_DECODER_BUFFER_DESC;
typedef struct D3D11_VIDEO_DECODER_EXTENSION
{
UINT Function;
void *pPrivateInputData;
UINT PrivateInputDataSize;
void *pPrivateOutputData;
UINT PrivateOutputDataSize;
UINT ResourceCount;
ID3D11Resource **ppResourceList;
} D3D11_VIDEO_DECODER_EXTENSION;
typedef struct D3D11_VIDEO_COLOR_YCbCrA
{
float Y;
float Cb;
float Cr;
float A;
} D3D11_VIDEO_COLOR_YCbCrA;
typedef struct D3D11_VIDEO_COLOR_RGBA
{
float R;
float G;
float B;
float A;
} D3D11_VIDEO_COLOR_RGBA;
typedef struct D3D11_VIDEO_COLOR
{
union
{
D3D11_VIDEO_COLOR_YCbCrA YCbCr;
D3D11_VIDEO_COLOR_RGBA RGBA;
};
} D3D11_VIDEO_COLOR;
typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE
{
UINT Usage : 1;
UINT RGB_Range : 1;
UINT YCbCr_Matrix : 1;
UINT YCbCr_xvYCC : 1;
UINT Nominal_Range : 2;
UINT Reserved : 26;
} D3D11_VIDEO_PROCESSOR_COLOR_SPACE;
typedef struct D3D11_VIDEO_PROCESSOR_STREAM
{
BOOL Enable;
UINT OutputIndex;
UINT InputFrameOrField;
UINT PastFrames;
UINT FutureFrames;
ID3D11VideoProcessorInputView **ppPastSurfaces;
ID3D11VideoProcessorInputView *pInputSurface;
ID3D11VideoProcessorInputView **ppFutureSurfaces;
ID3D11VideoProcessorInputView **ppPastSurfacesRight;
ID3D11VideoProcessorInputView *pInputSurfaceRight;
ID3D11VideoProcessorInputView **ppFutureSurfacesRight;
} D3D11_VIDEO_PROCESSOR_STREAM;
typedef struct D3D11_OMAC
{
BYTE Omac[D3D11_OMAC_SIZE];
} D3D11_OMAC;
typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT
{
D3D11_OMAC omac;
GUID ConfigureType;
HANDLE hChannel;
UINT SequenceNumber;
HRESULT ReturnCode;
} D3D11_AUTHENTICATED_CONFIGURE_OUTPUT;
typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT
{
UINT64 Frequency;
BOOL Disjoint;
} D3D11_QUERY_DATA_TIMESTAMP_DISJOINT;
typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS
{
UINT64 IAVertices;
UINT64 IAPrimitives;
UINT64 VSInvocations;
UINT64 GSInvocations;
UINT64 GSPrimitives;
UINT64 CInvocations;
UINT64 CPrimitives;
UINT64 PSInvocations;
UINT64 HSInvocations;
UINT64 DSInvocations;
UINT64 CSInvocations;
} D3D11_QUERY_DATA_PIPELINE_STATISTICS;
typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS
{
UINT VertexCountPerInstance;
UINT InstanceCount;
UINT StartVertexLocation;
UINT StartInstanceLocation;
} D3D11_DRAW_INSTANCED_INDIRECT_ARGS;
typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS
{
UINT IndexCountPerInstance;
UINT InstanceCount;
UINT StartIndexLocation;
INT BaseVertexLocation;
UINT StartInstanceLocation;
} D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS;
typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT
{
D3D11_OMAC omac;
GUID ConfigureType;
HANDLE hChannel;
UINT SequenceNumber;
} D3D11_AUTHENTICATED_CONFIGURE_INPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_INPUT
{
GUID QueryType;
HANDLE hChannel;
UINT SequenceNumber;
} D3D11_AUTHENTICATED_QUERY_INPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT
{
D3D11_OMAC omac;
GUID QueryType;
HANDLE hChannel;
UINT SequenceNumber;
HRESULT ReturnCode;
} D3D11_AUTHENTICATED_QUERY_OUTPUT;
typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS
{
struct
{
UINT ProtectionEnabled : 1;
UINT OverlayOrFullscreenRequired : 1;
UINT Reserved : 30;
} Flags;
UINT Value;
} D3D11_AUTHENTICATED_PROTECTION_FLAGS;
typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags;
} D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType;
} D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
HANDLE DeviceHandle;
} D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT
{
D3D11_AUTHENTICATED_QUERY_INPUT Input;
HANDLE DecoderHandle;
} D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
HANDLE DecoderHandle;
HANDLE CryptoSessionHandle;
HANDLE DeviceHandle;
} D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
UINT RestrictedSharedResourceProcessCount;
} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT
{
D3D11_AUTHENTICATED_QUERY_INPUT Input;
UINT ProcessIndex;
} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
UINT ProcessIndex;
D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier;
HANDLE ProcessHandle;
} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
UINT UnrestrictedProtectedSharedResourceCount;
} D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT
{
D3D11_AUTHENTICATED_QUERY_INPUT Input;
HANDLE DeviceHandle;
HANDLE CryptoSessionHandle;
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
HANDLE DeviceHandle;
HANDLE CryptoSessionHandle;
UINT OutputIDCount;
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT
{
D3D11_AUTHENTICATED_QUERY_INPUT Input;
HANDLE DeviceHandle;
HANDLE CryptoSessionHandle;
UINT OutputIDIndex;
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
HANDLE DeviceHandle;
HANDLE CryptoSessionHandle;
UINT OutputIDIndex;
UINT64 OutputID;
} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
D3D11_BUS_TYPE BusType;
BOOL AccessibleInContiguousBlocks;
BOOL AccessibleInNonContiguousBlocks;
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
UINT EncryptionGuidCount;
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT
{
D3D11_AUTHENTICATED_QUERY_INPUT Input;
UINT EncryptionGuidIndex;
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
UINT EncryptionGuidIndex;
GUID EncryptionGuid;
} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT;
typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT
{
D3D11_AUTHENTICATED_QUERY_OUTPUT Output;
GUID EncryptionGuid;
} D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT;
typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT
{
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
UINT StartSequenceQuery;
UINT StartSequenceConfigure;
} D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT;
typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT
{
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections;
} D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT;
typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT
{
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
HANDLE DecoderHandle;
HANDLE CryptoSessionHandle;
HANDLE DeviceHandle;
} D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT;
typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT
{
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType;
HANDLE ProcessHandle;
BOOL AllowAccess;
} D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT;
typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT
{
D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters;
GUID EncryptionGuid;
} D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT;
[
object,
local,
uuid(1841e5c8-16b0-489b-bcc8-44cfb0d5deae)
]
interface ID3D11DeviceChild : IUnknown
{
void GetDevice(
[out] ID3D11Device **ppDevice);
HRESULT GetPrivateData(
[in] REFGUID guid,
[in, out] UINT *pDataSize,
[out] void *pData);
HRESULT SetPrivateData(
[in] REFGUID guid,
[in] UINT DataSize,
[in] const void *pData);
HRESULT SetPrivateDataInterface(
[in] REFGUID guid,
[in] const IUnknown *pData);
}
[
object,
local,
uuid(4b35d0cd-1e15-4258-9c98-1b1333f6dd3b)
]
interface ID3D11Asynchronous : ID3D11DeviceChild
{
UINT GetDataSize();
}
[
object,
local,
uuid(d6c00747-87b7-425e-b84d-44d108560afd)
]
interface ID3D11Query : ID3D11Asynchronous
{
void GetDesc(
[out] D3D11_QUERY_DESC *pDesc);
}
[
object,
local,
uuid(dc8e63f3-d12b-4952-b47b-5e45026a862d)
]
interface ID3D11Resource : ID3D11DeviceChild
{
void GetType(
[out] D3D11_RESOURCE_DIMENSION *pResourceDimension);
void SetEvictionPriority(
[in] UINT EvictionPriority);
UINT GetEvictionPriority();
}
[
object,
local,
uuid(839d1216-bb2e-412b-b7f4-a9dbebe08ed1)
]
interface ID3D11View : ID3D11DeviceChild
{
void GetResource(
[out] ID3D11Resource **ppResource);
}
[
object,
local,
uuid(75b68faa-347d-4159-8f45-a0640f01cd9a)
]
interface ID3D11BlendState : ID3D11DeviceChild
{
void GetDesc(
[out] D3D11_BLEND_DESC *pDesc);
}
[
object,
local,
uuid(48570b85-d1ee-4fcd-a250-eb350722b037)
]
interface ID3D11Buffer : ID3D11Resource
{
void GetDesc(
[out] D3D11_BUFFER_DESC *pDesc);
}
[
object,
local,
uuid(a6cd7faa-b0b7-4a2f-9436-8662a65797cb)
]
interface ID3D11ClassInstance : ID3D11DeviceChild
{
void GetClassLinkage(
[out] ID3D11ClassLinkage **ppLinkage);
void GetDesc(
[out] D3D11_CLASS_INSTANCE_DESC *pDesc);
void GetInstanceName(
[out] LPSTR pInstanceName,
[in, out] SIZE_T *pBufferLength);
void GetTypeName(
[out] LPSTR pTypeName,
[in, out] SIZE_T *pBufferLength);
}
[
object,
local,
uuid(ddf57cba-9543-46e4-a12b-f207a0fe7fed)
]
interface ID3D11ClassLinkage : ID3D11DeviceChild
{
HRESULT GetClassInstance(
[in] LPCSTR pClassInstanceName,
[in] UINT InstanceIndex,
[out] ID3D11ClassInstance **ppInstance);
HRESULT CreateClassInstance(
[in] LPCSTR pClassTypeName,
[in] UINT ConstantBufferOffset,
[in] UINT ConstantVectorOffset,
[in] UINT TextureOffset,
[in] UINT SamplerOffset,
[out] ID3D11ClassInstance **ppInstance);
}
[
object,
local,
uuid(a24bc4d1-769e-43f7-8013-98ff566c18e2)
]
interface ID3D11CommandList : ID3D11DeviceChild
{
UINT GetContextFlags();
}
[
object,
local,
uuid(4f5b196e-c2bd-495e-bd01-1fded38e4969)
]
interface ID3D11ComputeShader : ID3D11DeviceChild
{
}
[
object,
local,
uuid(6e8c49fb-a371-4770-b440-29086022b741)
]
interface ID3D11Counter : ID3D11Asynchronous
{
void GetDesc(
[out] D3D11_COUNTER_DESC *pDesc);
}
[
object,
local,
uuid(03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1)
]
interface ID3D11DepthStencilState : ID3D11DeviceChild
{
void GetDesc(
[out] D3D11_DEPTH_STENCIL_DESC *pDesc);
}
[
object,
local,
uuid(9fdac92a-1876-48c3-afad-25b94f84a9b6)
]
interface ID3D11DepthStencilView : ID3D11View
{
void GetDesc(
[out] D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc);
}
[
object,
local,
uuid(f582c508-0f36-490c-9977-31eece268cfa)
]
interface ID3D11DomainShader : ID3D11DeviceChild
{
}
[
object,
local,
uuid(38325b96-effb-4022-ba02-2e795b70275c)
]
interface ID3D11GeometryShader : ID3D11DeviceChild
{
}
[
object,
local,
uuid(8e5c6061-628a-4c8e-8264-bbe45cb3d5dd)
]
interface ID3D11HullShader : ID3D11DeviceChild
{
}
[
object,
local,
uuid(e4819ddc-4cf0-4025-bd26-5de82a3e07b7)
]
interface ID3D11InputLayout : ID3D11DeviceChild
{
}
[
object,
local,
uuid(ea82e40d-51dc-4f33-93d4-db7c9125ae8c)
]
interface ID3D11PixelShader : ID3D11DeviceChild
{
}
[
object,
local,
uuid(9eb576dd-9f77-4d86-81aa-8bab5fe490e2)
]
interface ID3D11Predicate : ID3D11Query
{
}
[
object,
local,
uuid(9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7)
]
interface ID3D11RasterizerState : ID3D11DeviceChild
{
void GetDesc(
[out] D3D11_RASTERIZER_DESC *pDesc);
}
[
object,
local,
uuid(dfdba067-0b8d-4865-875b-d7b4516cc164)
]
interface ID3D11RenderTargetView : ID3D11View
{
void GetDesc(
[out] D3D11_RENDER_TARGET_VIEW_DESC *pDesc);
}
[
object,
local,
uuid(da6fea51-564c-4487-9810-f0d0f9b4e3a5)
]
interface ID3D11SamplerState : ID3D11DeviceChild
{
void GetDesc(
[out] D3D11_SAMPLER_DESC *pDesc);
}
[
object,
local,
uuid(b0e06fe0-8192-4e1a-b1ca-36d7414710b2)
]
interface ID3D11ShaderResourceView : ID3D11View
{
void GetDesc(
[out] D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc);
}
[
object,
local,
uuid(f8fb5c27-c6b3-4f75-a4c8-439af2ef564c),
]
interface ID3D11Texture1D : ID3D11Resource
{
void GetDesc(
[out] D3D11_TEXTURE1D_DESC *pDesc);
}
[
object,
local,
uuid(6f15aaf2-d208-4e89-9ab4-489535d34f9c)
]
interface ID3D11Texture2D : ID3D11Resource
{
void GetDesc(
[out] D3D11_TEXTURE2D_DESC *pDesc);
}
[
object,
local,
uuid(037e866e-f56d-4357-a8af-9dabbe6e250e)
]
interface ID3D11Texture3D : ID3D11Resource
{
void GetDesc(
[out] D3D11_TEXTURE3D_DESC *pDesc);
}
[
object,
local,
uuid(28acf509-7f5c-48f6-8611-f316010a6380)
]
interface ID3D11UnorderedAccessView : ID3D11View
{
void GetDesc(
[out] D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc);
}
[
object,
local,
uuid(3b301d64-d678-4289-8897-22f8928b72f3)
]
interface ID3D11VertexShader : ID3D11DeviceChild
{
}
[
object,
local,
uuid(c0bfa96c-e089-44fb-8eaf-26f8796190da)
]
interface ID3D11DeviceContext : ID3D11DeviceChild
{
void VSSetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppConstantBuffers);
void PSSetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
void PSSetShader(
[in] ID3D11PixelShader *pPixelShader,
[in] ID3D11ClassInstance *const *ppClassInstances,
UINT NumClassInstances);
void PSSetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[in] ID3D11SamplerState *const *ppSamplers);
void VSSetShader(
[in] ID3D11VertexShader *pVertexShader,
[in] ID3D11ClassInstance *const *ppClassInstances,
UINT NumClassInstances);
void DrawIndexed(
[in] UINT IndexCount,
[in] UINT StartIndexLocation,
[in] INT BaseVertexLocation);
void Draw(
[in] UINT VertexCount,
[in] UINT StartVertexLocation);
HRESULT Map(
[in] ID3D11Resource *pResource,
[in] UINT Subresource,
[in] D3D11_MAP MapType,
[in] UINT MapFlags,
[out] D3D11_MAPPED_SUBRESOURCE *pMappedResource);
void Unmap(
[in] ID3D11Resource *pResource,
[in] UINT Subresource);
void PSSetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppConstantBuffers);
void IASetInputLayout(
[in] ID3D11InputLayout *pInputLayout);
void IASetVertexBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppVertexBuffers,
[in] const UINT *pStrides,
[in] const UINT *pOffsets);
void IASetIndexBuffer(
[in] ID3D11Buffer *pIndexBuffer,
[in] DXGI_FORMAT Format,
[in] UINT Offset);
void DrawIndexedInstanced(
[in] UINT IndexCountPerInstance,
[in] UINT InstanceCount,
[in] UINT StartIndexLocation,
[in] INT BaseVertexLocation,
[in] UINT StartInstanceLocation);
void DrawInstanced(
[in] UINT VertexCountPerInstance,
[in] UINT InstanceCount,
[in] UINT StartVertexLocation,
[in] UINT StartInstanceLocation);
void GSSetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppConstantBuffers);
void GSSetShader(
[in] ID3D11GeometryShader *pShader,
[in] ID3D11ClassInstance *const *ppClassInstances,
UINT NumClassInstances);
void IASetPrimitiveTopology(
[in] D3D11_PRIMITIVE_TOPOLOGY Topology);
void VSSetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
void VSSetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[in] ID3D11SamplerState *const *ppSamplers);
void Begin(
[in] ID3D11Asynchronous *pAsync);
void End(
[in] ID3D11Asynchronous *pAsync);
HRESULT GetData(
[in] ID3D11Asynchronous *pAsync,
[in] void *pData,
[in] UINT DataSize,
[in] UINT GetDataFlags);
void SetPredication(
[in] ID3D11Predicate *pPredicate,
[in] BOOL PredicateValue);
void GSSetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
void GSSetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[in] ID3D11SamplerState *const *ppSamplers);
void OMSetRenderTargets(
[in] UINT NumViews,
[in] ID3D11RenderTargetView *const *ppRenderTargetViews,
[in] ID3D11DepthStencilView *pDepthStencilView);
void OMSetRenderTargetsAndUnorderedAccessViews(
[in] UINT NumRTVs,
[in] ID3D11RenderTargetView *const *ppRenderTargetViews,
[in] ID3D11DepthStencilView *pDepthStencilView,
[in] UINT UAVStartSlot,
[in] UINT NumUAVs,
[in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
[in] const UINT *pUAVInitialCounts);
void OMSetBlendState(
[in] ID3D11BlendState *pBlendState,
[in] const FLOAT BlendFactor[4],
[in] UINT SampleMask);
void OMSetDepthStencilState(
[in] ID3D11DepthStencilState *pDepthStencilState,
[in] UINT StencilRef);
void SOSetTargets(
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppSOTargets,
[in] const UINT *pOffsets);
void DrawAuto();
void DrawIndexedInstancedIndirect(
[in] ID3D11Buffer *pBufferForArgs,
[in] UINT AlignedByteOffsetForArgs);
void DrawInstancedIndirect(
[in] ID3D11Buffer *pBufferForArgs,
[in] UINT AlignedByteOffsetForArgs);
void Dispatch(
[in] UINT ThreadGroupCountX,
[in] UINT ThreadGroupCountY,
[in] UINT ThreadGroupCountZ);
void DispatchIndirect(
[in] ID3D11Buffer *pBufferForArgs,
[in] UINT AlignedByteOffsetForArgs);
void RSSetState(
[in] ID3D11RasterizerState *pRasterizerState);
void RSSetViewports(
[in] UINT NumViewports,
[in] const D3D11_VIEWPORT *pViewports);
void RSSetScissorRects(
[in] UINT NumRects,
[in] const D3D11_RECT *pRects);
void CopySubresourceRegion(
[in] ID3D11Resource *pDstResource,
[in] UINT DstSubresource,
[in] UINT DstX,
[in] UINT DstY,
[in] UINT DstZ,
[in] ID3D11Resource *pSrcResource,
[in] UINT SrcSubresource,
[in] const D3D11_BOX *pSrcBox);
void CopyResource(
[in] ID3D11Resource *pDstResource,
[in] ID3D11Resource *pSrcResource);
void UpdateSubresource(
[in] ID3D11Resource *pDstResource,
[in] UINT DstSubresource,
[in] const D3D11_BOX *pDstBox,
[in] const void *pSrcData,
[in] UINT SrcRowPitch,
[in] UINT SrcDepthPitch);
void CopyStructureCount(
[in] ID3D11Buffer *pDstBuffer,
[in] UINT DstAlignedByteOffset,
[in] ID3D11UnorderedAccessView *pSrcView);
void ClearRenderTargetView(
[in] ID3D11RenderTargetView *pRenderTargetView,
[in] const FLOAT ColorRGBA[4]);
void ClearUnorderedAccessViewUint(
[in] ID3D11UnorderedAccessView *pUnorderedAccessView,
[in] const UINT Values[4]);
void ClearUnorderedAccessViewFloat(
[in] ID3D11UnorderedAccessView *pUnorderedAccessView,
[in] const FLOAT Values[4]);
void ClearDepthStencilView(
[in] ID3D11DepthStencilView *pDepthStencilView,
[in] UINT ClearFlags,
[in] FLOAT Depth,
[in] UINT8 Stencil);
void GenerateMips(
[in] ID3D11ShaderResourceView *pShaderResourceView);
void SetResourceMinLOD(
[in] ID3D11Resource *pResource, FLOAT MinLOD);
FLOAT GetResourceMinLOD(
[in] ID3D11Resource *pResource);
void ResolveSubresource(
[in] ID3D11Resource *pDstResource,
[in] UINT DstSubresource,
[in] ID3D11Resource *pSrcResource,
[in] UINT SrcSubresource,
[in] DXGI_FORMAT Format);
void ExecuteCommandList(
[in] ID3D11CommandList *pCommandList,
BOOL RestoreContextState);
void HSSetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
void HSSetShader(
[in] ID3D11HullShader *pHullShader,
[in] ID3D11ClassInstance *const *ppClassInstances,
UINT NumClassInstances);
void HSSetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[in] ID3D11SamplerState *const *ppSamplers);
void HSSetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppConstantBuffers);
void DSSetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
void DSSetShader(
[in] ID3D11DomainShader *pDomainShader,
[in] ID3D11ClassInstance *const *ppClassInstances,
UINT NumClassInstances);
void DSSetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[in] ID3D11SamplerState *const *ppSamplers);
void DSSetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppConstantBuffers);
void CSSetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[in] ID3D11ShaderResourceView *const *ppShaderResourceViews);
void CSSetUnorderedAccessViews(
[in] UINT StartSlot,
[in] UINT NumUAVs,
[in] ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
[in] const UINT *pUAVInitialCounts);
void CSSetShader(
[in] ID3D11ComputeShader *pComputeShader,
[in] ID3D11ClassInstance *const *ppClassInstances,
UINT NumClassInstances);
void CSSetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[in] ID3D11SamplerState *const *ppSamplers);
void CSSetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[in] ID3D11Buffer *const *ppConstantBuffers);
void VSGetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppConstantBuffers);
void PSGetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[out] ID3D11ShaderResourceView **ppShaderResourceViews);
void PSGetShader(
[out] ID3D11PixelShader **ppPixelShader,
[out] ID3D11ClassInstance **ppClassInstances,
[in, out] UINT *pNumClassInstances);
void PSGetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[out] ID3D11SamplerState **ppSamplers);
void VSGetShader(
[out] ID3D11VertexShader **ppVertexShader,
[out] ID3D11ClassInstance **ppClassInstances,
[in, out] UINT *pNumClassInstances);
void PSGetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppConstantBuffers);
void IAGetInputLayout(
[out] ID3D11InputLayout **ppInputLayout);
void IAGetVertexBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppVertexBuffers,
[out] UINT *pStrides,
[out] UINT *pOffsets);
void IAGetIndexBuffer(
[out] ID3D11Buffer **pIndexBuffer,
[out] DXGI_FORMAT* Format,
[out] UINT* Offset);
void GSGetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppConstantBuffers);
void GSGetShader(
[out] ID3D11GeometryShader **ppGeometryShader,
[out] ID3D11ClassInstance **ppClassInstances,
[in, out] UINT *pNumClassInstances);
void IAGetPrimitiveTopology(
[out] D3D11_PRIMITIVE_TOPOLOGY *pTopology);
void VSGetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[out] ID3D11ShaderResourceView **ppShaderResourceViews);
void VSGetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[out] ID3D11SamplerState **ppSamplers);
void GetPredication(
[out] ID3D11Predicate **ppPredicate,
[out] BOOL *pPredicateValue);
void GSGetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[out] ID3D11ShaderResourceView **ppShaderResourceViews);
void GSGetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[out] ID3D11SamplerState **ppSamplers);
void OMGetRenderTargets(
[in] UINT NumViews,
[out] ID3D11RenderTargetView **ppRenderTargetViews,
[out] ID3D11DepthStencilView **ppDepthStencilView);
void OMGetRenderTargetsAndUnorderedAccessViews(
[in] UINT NumRTVs,
[out] ID3D11RenderTargetView **ppRenderTargetViews,
[out] ID3D11DepthStencilView **ppDepthStencilView,
[in] UINT UAVStartSlot,
[in] UINT NumUAVs,
[out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
void OMGetBlendState(
[out] ID3D11BlendState **ppBlendState,
[out] FLOAT BlendFactor[4],
[out] UINT *pSampleMask);
void OMGetDepthStencilState(
[out] ID3D11DepthStencilState **ppDepthStencilState,
[out] UINT *pStencilRef);
void SOGetTargets(
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppSOTargets);
void RSGetState(
[out] ID3D11RasterizerState **ppRasterizerState);
void RSGetViewports(
[in, out] UINT *pNumViewports,
[out] D3D11_VIEWPORT *pViewports);
void RSGetScissorRects(
[in, out] UINT *pNumRects,
[out] D3D11_RECT *pRects);
void HSGetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[out] ID3D11ShaderResourceView **ppShaderResourceViews);
void HSGetShader(
[out] ID3D11HullShader **ppHullShader,
[out] ID3D11ClassInstance **ppClassInstances,
[in, out] UINT *pNumClassInstances);
void HSGetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[out] ID3D11SamplerState **ppSamplers);
void HSGetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppConstantBuffers);
void DSGetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[out] ID3D11ShaderResourceView **ppShaderResourceViews);
void DSGetShader(
[out] ID3D11DomainShader **ppDomainShader,
[out] ID3D11ClassInstance **ppClassInstances,
[in, out] UINT *pNumClassInstances);
void DSGetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[out] ID3D11SamplerState **ppSamplers);
void DSGetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppConstantBuffers);
void CSGetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[out] ID3D11ShaderResourceView **ppShaderResourceViews);
void CSGetUnorderedAccessViews(
[in] UINT StartSlot,
[in] UINT NumUAVs,
[out] ID3D11UnorderedAccessView **ppUnorderedAccessViews);
void CSGetShader(
[out] ID3D11ComputeShader **ppComputeShader,
[out] ID3D11ClassInstance **ppClassInstances,
[in, out] UINT *pNumClassInstances);
void CSGetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[out] ID3D11SamplerState **ppSamplers);
void CSGetConstantBuffers(
[in] UINT StartSlot,
[in] UINT NumBuffers,
[out] ID3D11Buffer **ppConstantBuffers);
void ClearState();
void Flush();
D3D11_DEVICE_CONTEXT_TYPE GetType();
UINT GetContextFlags();
HRESULT FinishCommandList(
BOOL RestoreDeferredContextState,
[out] ID3D11CommandList **ppCommandList);
}
[
object,
uuid(3015a308-dcbd-47aa-a747-192486d14d4a),
local,
pointer_default(unique)
]
interface ID3D11AuthenticatedChannel : ID3D11DeviceChild
{
HRESULT GetCertificateSize(
UINT *pCertificateSize);
HRESULT GetCertificate(
UINT CertificateSize,
BYTE *pCertificate);
void GetChannelHandle(
HANDLE *pChannelHandle);
}
[
object,
uuid(9b32f9ad-bdcc-40a6-a39d-d5c865845720),
local,
pointer_default(unique)
]
interface ID3D11CryptoSession : ID3D11DeviceChild
{
void GetCryptoType(
GUID *pCryptoType);
void GetDecoderProfile(
GUID *pDecoderProfile);
HRESULT GetCertificateSize(
UINT *pCertificateSize);
HRESULT GetCertificate(
UINT CertificateSize,
BYTE *pCertificate);
void GetCryptoSessionHandle(
HANDLE *pCryptoSessionHandle);
}
[
object,
uuid(3c9c5b51-995d-48d1-9b8d-fa5caeded65c),
local,
pointer_default(unique)
]
interface ID3D11VideoDecoder : ID3D11DeviceChild
{
HRESULT GetCreationParameters(
D3D11_VIDEO_DECODER_DESC *pVideoDesc,
D3D11_VIDEO_DECODER_CONFIG *pConfig);
HRESULT GetDriverHandle(
HANDLE *pDriverHandle);
}
[
object,
uuid(31627037-53ab-4200-9061-05faa9ab45f9),
local,
pointer_default(unique)
]
interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild
{
HRESULT GetVideoProcessorContentDesc(
D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
HRESULT CheckVideoProcessorFormat(
DXGI_FORMAT Format,
UINT *pFlags);
HRESULT GetVideoProcessorCaps(
D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
HRESULT GetVideoProcessorRateConversionCaps(
UINT TypeIndex,
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
HRESULT GetVideoProcessorCustomRate(
UINT TypeIndex,
UINT CustomRateIndex,
D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
HRESULT GetVideoProcessorFilterRange(
D3D11_VIDEO_PROCESSOR_FILTER Filter,
D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
}
[
object,
uuid(1d7b0652-185f-41c6-85ce-0c5be3d4ae6c),
local,
pointer_default(unique)
]
interface ID3D11VideoProcessor : ID3D11DeviceChild
{
void GetContentDesc(
D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc);
void GetRateConversionCaps(
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
}
[
object,
uuid(c2931aea-2a85-4f20-860f-fba1fd256e18),
local,
pointer_default(unique)
]
interface ID3D11VideoDecoderOutputView : ID3D11View
{
void GetDesc(
D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc);
}
[
object,
uuid(11ec5a5f-51dc-4945-ab34-6e8c21300ea5),
local,
pointer_default(unique)
]
interface ID3D11VideoProcessorInputView : ID3D11View
{
void GetDesc(
D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc);
}
[
object,
uuid(a048285e-25a9-4527-bd93-d68b68c44254),
local,
pointer_default(unique)
]
interface ID3D11VideoProcessorOutputView : ID3D11View
{
void GetDesc(
D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc);
}
[
object,
uuid(10ec4d5b-975a-4689-b9e4-d0aac30fe333),
local,
pointer_default(unique)
]
interface ID3D11VideoDevice : IUnknown
{
HRESULT CreateVideoDecoder(
const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
const D3D11_VIDEO_DECODER_CONFIG *pConfig,
ID3D11VideoDecoder **ppDecoder);
HRESULT CreateVideoProcessor(
ID3D11VideoProcessorEnumerator *pEnum,
UINT RateConversionIndex,
ID3D11VideoProcessor **ppVideoProcessor);
HRESULT CreateAuthenticatedChannel(
D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
HRESULT CreateCryptoSession(
const GUID *pCryptoType,
const GUID *pDecoderProfile,
const GUID *pKeyExchangeType,
ID3D11CryptoSession **ppCryptoSession);
HRESULT CreateVideoDecoderOutputView(
ID3D11Resource *pResource,
const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
ID3D11VideoDecoderOutputView **ppVDOVView);
HRESULT CreateVideoProcessorInputView(
ID3D11Resource *pResource,
ID3D11VideoProcessorEnumerator *pEnum,
const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
ID3D11VideoProcessorInputView **ppVPIView);
HRESULT CreateVideoProcessorOutputView(
ID3D11Resource *pResource,
ID3D11VideoProcessorEnumerator *pEnum,
const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
ID3D11VideoProcessorOutputView **ppVPOView);
HRESULT CreateVideoProcessorEnumerator(
const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
ID3D11VideoProcessorEnumerator **ppEnum);
UINT GetVideoDecoderProfileCount();
HRESULT GetVideoDecoderProfile(
UINT Index,
GUID *pDecoderProfile);
HRESULT CheckVideoDecoderFormat(
const GUID *pDecoderProfile,
DXGI_FORMAT Format,
BOOL *pSupported);
HRESULT GetVideoDecoderConfigCount(
const D3D11_VIDEO_DECODER_DESC *pDesc,
UINT *pCount);
HRESULT GetVideoDecoderConfig(
const D3D11_VIDEO_DECODER_DESC *pDesc,
UINT Index,
D3D11_VIDEO_DECODER_CONFIG *pConfig);
HRESULT GetContentProtectionCaps(
const GUID *pCryptoType,
const GUID *pDecoderProfile,
D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
HRESULT CheckCryptoKeyExchange(
const GUID *pCryptoType,
const GUID *pDecoderProfile,
UINT Index,
GUID *pKeyExchangeType);
HRESULT SetPrivateData(
REFGUID guid,
UINT DataSize,
const void *pData);
HRESULT SetPrivateDataInterface(
REFGUID guid,
const IUnknown *pData);
}
[
object,
uuid(61f21c45-3c0e-4a74-9cea-67100d9ad5e4),
local,
pointer_default(unique)
]
interface ID3D11VideoContext : ID3D11DeviceChild
{
HRESULT GetDecoderBuffer(
[in] ID3D11VideoDecoder *decoder,
[in] D3D11_VIDEO_DECODER_BUFFER_TYPE type,
[out] UINT *buffer_size,
[out] void **buffer
);
HRESULT ReleaseDecoderBuffer(
[in] ID3D11VideoDecoder *decoder,
[in] D3D11_VIDEO_DECODER_BUFFER_TYPE type
);
HRESULT DecoderBeginFrame(
[in] ID3D11VideoDecoder *decoder,
[in] ID3D11VideoDecoderOutputView *view,
[in] UINT key_size,
[in] const void *key
);
HRESULT DecoderEndFrame(
[in] ID3D11VideoDecoder *decoder
);
HRESULT SubmitDecoderBuffers(
[in] ID3D11VideoDecoder *decoder,
[in] UINT buffers_count,
[in] const D3D11_VIDEO_DECODER_BUFFER_DESC *buffer_desc
);
HRESULT DecoderExtension(
[in] ID3D11VideoDecoder *decoder,
[in] const D3D11_VIDEO_DECODER_EXTENSION *extension
);
void VideoProcessorSetOutputTargetRect(
[in] ID3D11VideoProcessor *processor,
[in] BOOL enable,
[in] const RECT *rect
);
void VideoProcessorSetOutputBackgroundColor(
[in] ID3D11VideoProcessor *processor,
[in] BOOL y_cb_cr,
[in] const D3D11_VIDEO_COLOR *color
);
void VideoProcessorSetOutputColorSpace(
[in] ID3D11VideoProcessor *processor,
[in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
);
void VideoProcessorSetOutputAlphaFillMode(
[in] ID3D11VideoProcessor *processor,
[in] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE alpha_fill_mode,
[in] UINT stream_idx
);
void VideoProcessorSetOutputConstriction(
[in] ID3D11VideoProcessor *processor,
[in] BOOL enable,
[in] SIZE size
);
void VideoProcessorSetOutputStereoMode(
[in] ID3D11VideoProcessor *processor,
[in] BOOL enable
);
HRESULT VideoProcessorSetOutputExtension(
[in] ID3D11VideoProcessor *processor,
[in] const GUID *guid,
[in] UINT data_size,
[in] void *data
);
void VideoProcessorGetOutputTargetRect(
[in] ID3D11VideoProcessor *processor,
[out] BOOL *enabled,
[out] RECT *rect
);
void VideoProcessorGetOutputBackgroundColor(
[in] ID3D11VideoProcessor *processor,
[out] BOOL *y_cb_cr,
[out] D3D11_VIDEO_COLOR *color
);
void VideoProcessorGetOutputColorSpace(
[in] ID3D11VideoProcessor *processor,
[out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
);
void VideoProcessorGetOutputAlphaFillMode(
[in] ID3D11VideoProcessor *processor,
[out] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *alpha_fill_mode,
[out] UINT *stream_idx
);
void VideoProcessorGetOutputConstriction(
[in] ID3D11VideoProcessor *processor,
[out] BOOL *enabled,
[out] SIZE *size
);
void VideoProcessorGetOutputStereoMode(
[in] ID3D11VideoProcessor *processor,
[out] BOOL *enabled
);
HRESULT VideoProcessorGetOutputExtension(
[in] ID3D11VideoProcessor *processor,
[in] const GUID *guid,
[in] UINT data_size,
[out] void *data
);
void VideoProcessorSetStreamFrameFormat(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] D3D11_VIDEO_FRAME_FORMAT format
);
void VideoProcessorSetStreamColorSpace(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
);
void VideoProcessorSetStreamOutputRate(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate,
[in] BOOL repeat,
[in] const DXGI_RATIONAL *custom_rate
);
void VideoProcessorSetStreamSourceRect(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable,
[in] const RECT *rect
);
void VideoProcessorSetStreamDestRect(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable,
[in] const RECT *rect
);
void VideoProcessorSetStreamAlpha(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable,
[in] float alpha
);
void VideoProcessorSetStreamPalette(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] UINT entry_count,
[in] const UINT *entries
);
void VideoProcessorSetStreamPixelAspectRatio(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable,
[in] const DXGI_RATIONAL *src_aspect_ratio,
[in] const DXGI_RATIONAL *dst_aspect_ratio
);
void VideoProcessorSetStreamLumaKey(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable,
[in] float lower,
[in] float upper
);
void VideoProcessorSetStreamStereoFormat(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable,
[in] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format,
[in] BOOL left_view_frame0,
[in] BOOL base_view_frame0,
[in] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode,
[in] int mono_offset
);
void VideoProcessorSetStreamAutoProcessingMode(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable
);
void VideoProcessorSetStreamFilter(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] D3D11_VIDEO_PROCESSOR_FILTER filter,
[in] BOOL enable,
[in] int level
);
HRESULT VideoProcessorSetStreamExtension(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] const GUID *guid,
[in] UINT data_size,
[in] void *data
);
void VideoProcessorGetStreamFrameFormat(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] D3D11_VIDEO_FRAME_FORMAT *format
);
void VideoProcessorGetStreamColorSpace(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] D3D11_VIDEO_PROCESSOR_COLOR_SPACE *color_space
);
void VideoProcessorGetStreamOutputRate(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate,
[out] BOOL *repeat,
[out] DXGI_RATIONAL *custom_rate
);
void VideoProcessorGetStreamSourceRect(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enabled,
[out] RECT *rect
);
void VideoProcessorGetStreamDestRect(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enabled,
[out] RECT *rect
);
void VideoProcessorGetStreamAlpha(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enabled,
[out] float *alpha
);
void VideoProcessorGetStreamPalette(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] UINT entry_count,
[out] UINT *entries
);
void VideoProcessorGetStreamPixelAspectRatio(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enabled,
[out] DXGI_RATIONAL *src_aspect_ratio,
[out] DXGI_RATIONAL *dst_aspect_ratio
);
void VideoProcessorGetStreamLumaKey(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enabled,
[out] float *lower,
[out] float *upper
);
void VideoProcessorGetStreamStereoFormat(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enabled,
[out] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format,
[out] BOOL *left_view_frame0,
[out] BOOL *base_view_frame0,
[out] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode,
[out] int *mono_offset
);
void VideoProcessorGetStreamAutoProcessingMode(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enabled
);
void VideoProcessorGetStreamFilter(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] D3D11_VIDEO_PROCESSOR_FILTER filter,
[out] BOOL *enabled,
[out] int *level
);
HRESULT VideoProcessorGetStreamExtension(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] const GUID *guid,
[in] UINT data_size,
[out] void *data
);
HRESULT VideoProcessorBlt(
[in] ID3D11VideoProcessor *processor,
[in] ID3D11VideoProcessorOutputView *view,
[in] UINT frame_idx,
[in] UINT stream_count,
[in] const D3D11_VIDEO_PROCESSOR_STREAM *streams
);
HRESULT NegotiateCryptoSessionKeyExchange(
[in] ID3D11CryptoSession *session,
[in] UINT data_size,
[in, out] void *data
);
void EncryptionBlt(
[in] ID3D11CryptoSession *session,
[in] ID3D11Texture2D *src_surface,
[in] ID3D11Texture2D *dst_surface,
[in] UINT iv_size,
[in, out] void *iv
);
void DecryptionBlt(
[in] ID3D11CryptoSession *session,
[in] ID3D11Texture2D *src_surface,
[in] ID3D11Texture2D *dst_surface,
[in] D3D11_ENCRYPTED_BLOCK_INFO *block_info,
[in] UINT key_size,
[in] const void *key,
[in] UINT iv_size,
[in, out] void *iv
);
void StartSessionKeyRefresh(
[in] ID3D11CryptoSession *session,
[in] UINT random_number_size,
[out] void *random_number
);
void FinishSessionKeyRefresh(
[in] ID3D11CryptoSession *session
);
HRESULT GetEncryptionBltKey(
[in] ID3D11CryptoSession *session,
[in] UINT key_size,
[out] void *key
);
HRESULT NegotiateAuthenticatedChannelKeyExchange(
[in] ID3D11AuthenticatedChannel *channel,
[in] UINT data_size,
[in, out] void *data
);
HRESULT QueryAuthenticatedChannel(
[in] ID3D11AuthenticatedChannel *channel,
[in] UINT input_size,
[in] const void *input,
[in] UINT output_size,
[out] void *output
);
HRESULT ConfigureAuthenticatedChannel(
[in] ID3D11AuthenticatedChannel *channel,
[in] UINT input_size,
[in] const void *input,
[out] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output
);
void VideoProcessorSetStreamRotation(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[in] BOOL enable,
[in] D3D11_VIDEO_PROCESSOR_ROTATION rotation
);
void VideoProcessorGetStreamRotation(
[in] ID3D11VideoProcessor *processor,
[in] UINT stream_idx,
[out] BOOL *enable,
[out] D3D11_VIDEO_PROCESSOR_ROTATION *rotation
);
}
[
object,
local,
uuid(db6f6ddb-ac77-4e88-8253-819df9bbf140)
]
interface ID3D11Device : IUnknown
{
HRESULT CreateBuffer(
[in] const D3D11_BUFFER_DESC *pDesc,
[in] const D3D11_SUBRESOURCE_DATA *pInitialData,
[out] ID3D11Buffer **ppBuffer);
HRESULT CreateTexture1D(
[in] const D3D11_TEXTURE1D_DESC *pDesc,
[in] const D3D11_SUBRESOURCE_DATA *pInitialData,
[out] ID3D11Texture1D **ppTexture1D);
HRESULT CreateTexture2D(
[in] const D3D11_TEXTURE2D_DESC *pDesc,
[in] const D3D11_SUBRESOURCE_DATA *pInitialData,
[out] ID3D11Texture2D **ppTexture2D);
HRESULT CreateTexture3D(
[in] const D3D11_TEXTURE3D_DESC *pDesc,
[in] const D3D11_SUBRESOURCE_DATA *pInitialData,
[out] ID3D11Texture3D **ppTexture3D);
HRESULT CreateShaderResourceView(
[in] ID3D11Resource *pResource,
[in] const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
[out] ID3D11ShaderResourceView **ppSRView);
HRESULT CreateUnorderedAccessView(
[in] ID3D11Resource *pResource,
[in] const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
[out] ID3D11UnorderedAccessView **ppUAView);
HRESULT CreateRenderTargetView(
[in] ID3D11Resource *pResource,
[in] const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
[out] ID3D11RenderTargetView **ppRTView);
HRESULT CreateDepthStencilView(
[in] ID3D11Resource *pResource,
[in] const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
[out] ID3D11DepthStencilView **ppDepthStencilView);
HRESULT CreateInputLayout(
[in] const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
[in] UINT NumElements,
[in] const void *pShaderBytecodeWithInputSignature,
[in] SIZE_T BytecodeLength,
[out] ID3D11InputLayout **ppInputLayout);
HRESULT CreateVertexShader(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[in] ID3D11ClassLinkage *pClassLinkage,
[out] ID3D11VertexShader **ppVertexShader);
HRESULT CreateGeometryShader(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[in] ID3D11ClassLinkage *pClassLinkage,
[out] ID3D11GeometryShader **ppGeometryShader);
HRESULT CreateGeometryShaderWithStreamOutput(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[in] const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
[in] UINT NumEntries,
[in] const UINT *pBufferStrides,
[in] UINT NumStrides,
[in] UINT RasterizedStream,
[in] ID3D11ClassLinkage *pClassLinkage,
[out] ID3D11GeometryShader **ppGeometryShader);
HRESULT CreatePixelShader(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[in] ID3D11ClassLinkage *pClassLinkage,
[out] ID3D11PixelShader **ppPixelShader);
HRESULT CreateHullShader(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[in] ID3D11ClassLinkage *pClassLinkage,
[out] ID3D11HullShader **ppHullShader);
HRESULT CreateDomainShader(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[in] ID3D11ClassLinkage *pClassLinkage,
[out] ID3D11DomainShader **ppDomainShader);
HRESULT CreateComputeShader(
[in] const void *pShaderBytecode,
[in] SIZE_T BytecodeLength,
[in] ID3D11ClassLinkage *pClassLinkage,
[out] ID3D11ComputeShader **ppComputeShader);
HRESULT CreateClassLinkage(
[out] ID3D11ClassLinkage **ppLinkage);
HRESULT CreateBlendState(
[in] const D3D11_BLEND_DESC *pBlendStateDesc,
[out] ID3D11BlendState **ppBlendState);
HRESULT CreateDepthStencilState(
[in] const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
[out] ID3D11DepthStencilState **ppDepthStencilState);
HRESULT CreateRasterizerState(
[in] const D3D11_RASTERIZER_DESC *pRasterizerDesc,
[out] ID3D11RasterizerState **ppRasterizerState);
HRESULT CreateSamplerState(
[in] const D3D11_SAMPLER_DESC *pSamplerDesc,
[out] ID3D11SamplerState **ppSamplerState);
HRESULT CreateQuery(
[in] const D3D11_QUERY_DESC *pQueryDesc,
[out] ID3D11Query **ppQuery);
HRESULT CreatePredicate(
[in] const D3D11_QUERY_DESC *pPredicateDesc,
[out] ID3D11Predicate **ppPredicate);
HRESULT CreateCounter(
[in] const D3D11_COUNTER_DESC *pCounterDesc,
[out] ID3D11Counter **ppCounter);
HRESULT CreateDeferredContext(
UINT ContextFlags,
[out] ID3D11DeviceContext **ppDeferredContext);
HRESULT OpenSharedResource(
[in] HANDLE hResource,
[in] REFIID ReturnedInterface,
[out] void **ppResource);
HRESULT CheckFormatSupport(
[in] DXGI_FORMAT Format,
[out] UINT *pFormatSupport);
HRESULT CheckMultisampleQualityLevels(
[in] DXGI_FORMAT Format,
[in] UINT SampleCount,
[out] UINT *pNumQualityLevels);
void CheckCounterInfo(
[out] D3D11_COUNTER_INFO *pCounterInfo);
HRESULT CheckCounter(
[in] const D3D11_COUNTER_DESC *pDesc,
[out] D3D11_COUNTER_TYPE *pType,
[out] UINT *pActiveCounters,
[out] LPSTR szName,
[in, out] UINT *pNameLength,
[out] LPSTR szUnits,
[in, out] UINT *pUnitsLength,
[out] LPSTR szDescription,
[in, out] UINT *pDescriptionLength);
HRESULT CheckFeatureSupport(
D3D11_FEATURE Feature,
[out] void *pFeatureSupportData,
UINT FeatureSupportDataSize);
HRESULT GetPrivateData(
[in] REFGUID guid,
[in, out] UINT *pDataSize,
[out] void *pData);
HRESULT SetPrivateData(
[in] REFGUID guid,
[in] UINT DataSize,
[in] const void *pData);
HRESULT SetPrivateDataInterface(
[in] REFGUID guid,
[in] const IUnknown *pData);
D3D_FEATURE_LEVEL GetFeatureLevel();
UINT GetCreationFlags();
HRESULT GetDeviceRemovedReason();
void GetImmediateContext(
[out] ID3D11DeviceContext **ppImmediateContext);
HRESULT SetExceptionMode(UINT RaiseFlags);
UINT GetExceptionMode();
}
typedef enum D3D11_CREATE_DEVICE_FLAG {
D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
D3D11_CREATE_DEVICE_DEBUG = 0x0002,
D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x0008,
D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080,
D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
} D3D11_CREATE_DEVICE_FLAG;
const UINT D3D11_SDK_VERSION = 7;
cpp_quote("#include <d3d10_1.h>")
cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
cpp_quote("# include <d3d11sdklayers.h>")
cpp_quote("#endif")
cpp_quote("#include <d3d10misc.h>")
cpp_quote("#include <d3d10shader.h>")
cpp_quote("#include <d3d10effect.h>")
cpp_quote("#include <d3d10_1shader.h>")
const UINT _FACD3D11 = 0x87c;
cpp_quote("#define MAKE_D3D11_HRESULT(code) MAKE_HRESULT(SEVERITY_ERROR, _FACD3D11, code)")
cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
[local] HRESULT __stdcall D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_type,
HMODULE swrast, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT levels, UINT sdk_version,
const DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D11Device **device,
D3D_FEATURE_LEVEL *obtained_feature_level, ID3D11DeviceContext **immediate_context);
|