Changeset 86885 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp
- Timestamp:
- Nov 14, 2020 1:44:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp
r86864 r86885 650 650 if (pState->pBackend) 651 651 { 652 vmsvga3dReset(pThisCC); 652 D3D_RELEASE(pState->pBackend->pDevice); 653 D3D_RELEASE(pState->pBackend->pImmediateContext); 654 D3D_RELEASE(pState->pBackend->pDxgiFactory); 653 655 654 656 RTMemFree(pState->pBackend); … … 665 667 AssertReturn(pState, VERR_INVALID_STATE); 666 668 667 PVMSVGA3DBACKEND pBackend = pState->pBackend; 668 if (pBackend) 669 { 670 D3D_RELEASE(pBackend->pDevice); 671 D3D_RELEASE(pBackend->pImmediateContext); 672 D3D_RELEASE(pBackend->pDxgiFactory); 673 } 669 /** @todo Cleanup all resources and recreate Device, ImmediateContext etc to be at the same state as after poweron. */ 674 670 675 671 return VINF_SUCCESS; … … 2282 2278 return VINF_SUCCESS; 2283 2279 } 2280 2281 2282 static DECLCALLBACK(void) vmsvga3dDXDefineContext(PVMSVGA3DSTATE p3dState) 2283 { 2284 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2285 2286 RT_NOREF(pBackend); 2287 AssertFailed(); /** @todo Implement */ 2288 } 2289 2290 2291 static DECLCALLBACK(void) vmsvga3dDXDestroyContext(PVMSVGA3DSTATE p3dState) 2292 { 2293 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2294 2295 RT_NOREF(pBackend); 2296 AssertFailed(); /** @todo Implement */ 2297 } 2298 2299 2300 static DECLCALLBACK(void) vmsvga3dDXBindContext(PVMSVGA3DSTATE p3dState) 2301 { 2302 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2303 2304 RT_NOREF(pBackend); 2305 AssertFailed(); /** @todo Implement */ 2306 } 2307 2308 2309 static DECLCALLBACK(void) vmsvga3dDXReadbackContext(PVMSVGA3DSTATE p3dState) 2310 { 2311 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2312 2313 RT_NOREF(pBackend); 2314 AssertFailed(); /** @todo Implement */ 2315 } 2316 2317 2318 static DECLCALLBACK(void) vmsvga3dDXInvalidateContext(PVMSVGA3DSTATE p3dState) 2319 { 2320 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2321 2322 RT_NOREF(pBackend); 2323 AssertFailed(); /** @todo Implement */ 2324 } 2325 2326 2327 static DECLCALLBACK(void) vmsvga3dDXSetSingleConstantBuffer(PVMSVGA3DSTATE p3dState) 2328 { 2329 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2330 2331 RT_NOREF(pBackend); 2332 AssertFailed(); /** @todo Implement */ 2333 } 2334 2335 2336 static DECLCALLBACK(void) vmsvga3dDXSetShaderResources(PVMSVGA3DSTATE p3dState) 2337 { 2338 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2339 2340 RT_NOREF(pBackend); 2341 AssertFailed(); /** @todo Implement */ 2342 } 2343 2344 2345 static DECLCALLBACK(void) vmsvga3dDXSetShader(PVMSVGA3DSTATE p3dState) 2346 { 2347 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2348 2349 RT_NOREF(pBackend); 2350 AssertFailed(); /** @todo Implement */ 2351 } 2352 2353 2354 static DECLCALLBACK(void) vmsvga3dDXSetSamplers(PVMSVGA3DSTATE p3dState) 2355 { 2356 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2357 2358 RT_NOREF(pBackend); 2359 AssertFailed(); /** @todo Implement */ 2360 } 2361 2362 2363 static DECLCALLBACK(void) vmsvga3dDXDraw(PVMSVGA3DSTATE p3dState) 2364 { 2365 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2366 2367 RT_NOREF(pBackend); 2368 AssertFailed(); /** @todo Implement */ 2369 } 2370 2371 2372 static DECLCALLBACK(void) vmsvga3dDXDrawIndexed(PVMSVGA3DSTATE p3dState) 2373 { 2374 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2375 2376 RT_NOREF(pBackend); 2377 AssertFailed(); /** @todo Implement */ 2378 } 2379 2380 2381 static DECLCALLBACK(void) vmsvga3dDXDrawInstanced(PVMSVGA3DSTATE p3dState) 2382 { 2383 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2384 2385 RT_NOREF(pBackend); 2386 AssertFailed(); /** @todo Implement */ 2387 } 2388 2389 2390 static DECLCALLBACK(void) vmsvga3dDXDrawIndexedInstanced(PVMSVGA3DSTATE p3dState) 2391 { 2392 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2393 2394 RT_NOREF(pBackend); 2395 AssertFailed(); /** @todo Implement */ 2396 } 2397 2398 2399 static DECLCALLBACK(void) vmsvga3dDXDrawAuto(PVMSVGA3DSTATE p3dState) 2400 { 2401 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2402 2403 RT_NOREF(pBackend); 2404 AssertFailed(); /** @todo Implement */ 2405 } 2406 2407 2408 static DECLCALLBACK(void) vmsvga3dDXSetInputLayout(PVMSVGA3DSTATE p3dState) 2409 { 2410 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2411 2412 RT_NOREF(pBackend); 2413 AssertFailed(); /** @todo Implement */ 2414 } 2415 2416 2417 static DECLCALLBACK(void) vmsvga3dDXSetVertexBuffers(PVMSVGA3DSTATE p3dState) 2418 { 2419 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2420 2421 RT_NOREF(pBackend); 2422 AssertFailed(); /** @todo Implement */ 2423 } 2424 2425 2426 static DECLCALLBACK(void) vmsvga3dDXSetIndexBuffer(PVMSVGA3DSTATE p3dState) 2427 { 2428 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2429 2430 RT_NOREF(pBackend); 2431 AssertFailed(); /** @todo Implement */ 2432 } 2433 2434 2435 static DECLCALLBACK(void) vmsvga3dDXSetTopology(PVMSVGA3DSTATE p3dState) 2436 { 2437 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2438 2439 RT_NOREF(pBackend); 2440 AssertFailed(); /** @todo Implement */ 2441 } 2442 2443 2444 static DECLCALLBACK(void) vmsvga3dDXSetRenderTargets(PVMSVGA3DSTATE p3dState) 2445 { 2446 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2447 2448 RT_NOREF(pBackend); 2449 AssertFailed(); /** @todo Implement */ 2450 } 2451 2452 2453 static DECLCALLBACK(void) vmsvga3dDXSetBlendState(PVMSVGA3DSTATE p3dState) 2454 { 2455 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2456 2457 RT_NOREF(pBackend); 2458 AssertFailed(); /** @todo Implement */ 2459 } 2460 2461 2462 static DECLCALLBACK(void) vmsvga3dDXSetDepthStencilState(PVMSVGA3DSTATE p3dState) 2463 { 2464 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2465 2466 RT_NOREF(pBackend); 2467 AssertFailed(); /** @todo Implement */ 2468 } 2469 2470 2471 static DECLCALLBACK(void) vmsvga3dDXSetRasterizerState(PVMSVGA3DSTATE p3dState) 2472 { 2473 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2474 2475 RT_NOREF(pBackend); 2476 AssertFailed(); /** @todo Implement */ 2477 } 2478 2479 2480 static DECLCALLBACK(void) vmsvga3dDXDefineQuery(PVMSVGA3DSTATE p3dState) 2481 { 2482 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2483 2484 RT_NOREF(pBackend); 2485 AssertFailed(); /** @todo Implement */ 2486 } 2487 2488 2489 static DECLCALLBACK(void) vmsvga3dDXDestroyQuery(PVMSVGA3DSTATE p3dState) 2490 { 2491 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2492 2493 RT_NOREF(pBackend); 2494 AssertFailed(); /** @todo Implement */ 2495 } 2496 2497 2498 static DECLCALLBACK(void) vmsvga3dDXBindQuery(PVMSVGA3DSTATE p3dState) 2499 { 2500 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2501 2502 RT_NOREF(pBackend); 2503 AssertFailed(); /** @todo Implement */ 2504 } 2505 2506 2507 static DECLCALLBACK(void) vmsvga3dDXSetQueryOffset(PVMSVGA3DSTATE p3dState) 2508 { 2509 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2510 2511 RT_NOREF(pBackend); 2512 AssertFailed(); /** @todo Implement */ 2513 } 2514 2515 2516 static DECLCALLBACK(void) vmsvga3dDXBeginQuery(PVMSVGA3DSTATE p3dState) 2517 { 2518 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2519 2520 RT_NOREF(pBackend); 2521 AssertFailed(); /** @todo Implement */ 2522 } 2523 2524 2525 static DECLCALLBACK(void) vmsvga3dDXEndQuery(PVMSVGA3DSTATE p3dState) 2526 { 2527 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2528 2529 RT_NOREF(pBackend); 2530 AssertFailed(); /** @todo Implement */ 2531 } 2532 2533 2534 static DECLCALLBACK(void) vmsvga3dDXReadbackQuery(PVMSVGA3DSTATE p3dState) 2535 { 2536 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2537 2538 RT_NOREF(pBackend); 2539 AssertFailed(); /** @todo Implement */ 2540 } 2541 2542 2543 static DECLCALLBACK(void) vmsvga3dDXSetPredication(PVMSVGA3DSTATE p3dState) 2544 { 2545 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2546 2547 RT_NOREF(pBackend); 2548 AssertFailed(); /** @todo Implement */ 2549 } 2550 2551 2552 static DECLCALLBACK(void) vmsvga3dDXSetSOTargets(PVMSVGA3DSTATE p3dState) 2553 { 2554 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2555 2556 RT_NOREF(pBackend); 2557 AssertFailed(); /** @todo Implement */ 2558 } 2559 2560 2561 static DECLCALLBACK(void) vmsvga3dDXSetViewports(PVMSVGA3DSTATE p3dState) 2562 { 2563 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2564 2565 RT_NOREF(pBackend); 2566 AssertFailed(); /** @todo Implement */ 2567 } 2568 2569 2570 static DECLCALLBACK(void) vmsvga3dDXSetScissorRects(PVMSVGA3DSTATE p3dState) 2571 { 2572 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2573 2574 RT_NOREF(pBackend); 2575 AssertFailed(); /** @todo Implement */ 2576 } 2577 2578 2579 static DECLCALLBACK(void) vmsvga3dDXClearRenderTargetView(PVMSVGA3DSTATE p3dState) 2580 { 2581 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2582 2583 RT_NOREF(pBackend); 2584 AssertFailed(); /** @todo Implement */ 2585 } 2586 2587 2588 static DECLCALLBACK(void) vmsvga3dDXClearDepthStencilView(PVMSVGA3DSTATE p3dState) 2589 { 2590 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2591 2592 RT_NOREF(pBackend); 2593 AssertFailed(); /** @todo Implement */ 2594 } 2595 2596 2597 static DECLCALLBACK(void) vmsvga3dDXPredCopyRegion(PVMSVGA3DSTATE p3dState) 2598 { 2599 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2600 2601 RT_NOREF(pBackend); 2602 AssertFailed(); /** @todo Implement */ 2603 } 2604 2605 2606 static DECLCALLBACK(void) vmsvga3dDXPredCopy(PVMSVGA3DSTATE p3dState) 2607 { 2608 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2609 2610 RT_NOREF(pBackend); 2611 AssertFailed(); /** @todo Implement */ 2612 } 2613 2614 2615 static DECLCALLBACK(void) vmsvga3dDXStretchBlt(PVMSVGA3DSTATE p3dState) 2616 { 2617 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2618 2619 RT_NOREF(pBackend); 2620 AssertFailed(); /** @todo Implement */ 2621 } 2622 2623 2624 static DECLCALLBACK(void) vmsvga3dDXGenMips(PVMSVGA3DSTATE p3dState) 2625 { 2626 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2627 2628 RT_NOREF(pBackend); 2629 AssertFailed(); /** @todo Implement */ 2630 } 2631 2632 2633 static DECLCALLBACK(void) vmsvga3dDXUpdateSubResource(PVMSVGA3DSTATE p3dState) 2634 { 2635 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2636 2637 RT_NOREF(pBackend); 2638 AssertFailed(); /** @todo Implement */ 2639 } 2640 2641 2642 static DECLCALLBACK(void) vmsvga3dDXReadbackSubResource(PVMSVGA3DSTATE p3dState) 2643 { 2644 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2645 2646 RT_NOREF(pBackend); 2647 AssertFailed(); /** @todo Implement */ 2648 } 2649 2650 2651 static DECLCALLBACK(void) vmsvga3dDXInvalidateSubResource(PVMSVGA3DSTATE p3dState) 2652 { 2653 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2654 2655 RT_NOREF(pBackend); 2656 AssertFailed(); /** @todo Implement */ 2657 } 2658 2659 2660 static DECLCALLBACK(void) vmsvga3dDXDefineShaderResourceView(PVMSVGA3DSTATE p3dState) 2661 { 2662 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2663 2664 RT_NOREF(pBackend); 2665 AssertFailed(); /** @todo Implement */ 2666 } 2667 2668 2669 static DECLCALLBACK(void) vmsvga3dDXDestroyShaderResourceView(PVMSVGA3DSTATE p3dState) 2670 { 2671 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2672 2673 RT_NOREF(pBackend); 2674 AssertFailed(); /** @todo Implement */ 2675 } 2676 2677 2678 static DECLCALLBACK(void) vmsvga3dDXDefineRenderTargetView(PVMSVGA3DSTATE p3dState) 2679 { 2680 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2681 2682 RT_NOREF(pBackend); 2683 AssertFailed(); /** @todo Implement */ 2684 } 2685 2686 2687 static DECLCALLBACK(void) vmsvga3dDXDestroyRenderTargetView(PVMSVGA3DSTATE p3dState) 2688 { 2689 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2690 2691 RT_NOREF(pBackend); 2692 AssertFailed(); /** @todo Implement */ 2693 } 2694 2695 2696 static DECLCALLBACK(void) vmsvga3dDXDefineDepthStencilView(PVMSVGA3DSTATE p3dState) 2697 { 2698 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2699 2700 RT_NOREF(pBackend); 2701 AssertFailed(); /** @todo Implement */ 2702 } 2703 2704 2705 static DECLCALLBACK(void) vmsvga3dDXDestroyDepthStencilView(PVMSVGA3DSTATE p3dState) 2706 { 2707 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2708 2709 RT_NOREF(pBackend); 2710 AssertFailed(); /** @todo Implement */ 2711 } 2712 2713 2714 static DECLCALLBACK(void) vmsvga3dDXDefineElementLayout(PVMSVGA3DSTATE p3dState) 2715 { 2716 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2717 2718 RT_NOREF(pBackend); 2719 AssertFailed(); /** @todo Implement */ 2720 } 2721 2722 2723 static DECLCALLBACK(void) vmsvga3dDXDestroyElementLayout(PVMSVGA3DSTATE p3dState) 2724 { 2725 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2726 2727 RT_NOREF(pBackend); 2728 AssertFailed(); /** @todo Implement */ 2729 } 2730 2731 2732 static DECLCALLBACK(void) vmsvga3dDXDefineBlendState(PVMSVGA3DSTATE p3dState) 2733 { 2734 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2735 2736 RT_NOREF(pBackend); 2737 AssertFailed(); /** @todo Implement */ 2738 } 2739 2740 2741 static DECLCALLBACK(void) vmsvga3dDXDestroyBlendState(PVMSVGA3DSTATE p3dState) 2742 { 2743 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2744 2745 RT_NOREF(pBackend); 2746 AssertFailed(); /** @todo Implement */ 2747 } 2748 2749 2750 static DECLCALLBACK(void) vmsvga3dDXDefineDepthStencilState(PVMSVGA3DSTATE p3dState) 2751 { 2752 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2753 2754 RT_NOREF(pBackend); 2755 AssertFailed(); /** @todo Implement */ 2756 } 2757 2758 2759 static DECLCALLBACK(void) vmsvga3dDXDestroyDepthStencilState(PVMSVGA3DSTATE p3dState) 2760 { 2761 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2762 2763 RT_NOREF(pBackend); 2764 AssertFailed(); /** @todo Implement */ 2765 } 2766 2767 2768 static DECLCALLBACK(void) vmsvga3dDXDefineRasterizerState(PVMSVGA3DSTATE p3dState) 2769 { 2770 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2771 2772 RT_NOREF(pBackend); 2773 AssertFailed(); /** @todo Implement */ 2774 } 2775 2776 2777 static DECLCALLBACK(void) vmsvga3dDXDestroyRasterizerState(PVMSVGA3DSTATE p3dState) 2778 { 2779 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2780 2781 RT_NOREF(pBackend); 2782 AssertFailed(); /** @todo Implement */ 2783 } 2784 2785 2786 static DECLCALLBACK(void) vmsvga3dDXDefineSamplerState(PVMSVGA3DSTATE p3dState) 2787 { 2788 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2789 2790 RT_NOREF(pBackend); 2791 AssertFailed(); /** @todo Implement */ 2792 } 2793 2794 2795 static DECLCALLBACK(void) vmsvga3dDXDestroySamplerState(PVMSVGA3DSTATE p3dState) 2796 { 2797 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2798 2799 RT_NOREF(pBackend); 2800 AssertFailed(); /** @todo Implement */ 2801 } 2802 2803 2804 static DECLCALLBACK(void) vmsvga3dDXDefineShader(PVMSVGA3DSTATE p3dState) 2805 { 2806 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2807 2808 RT_NOREF(pBackend); 2809 AssertFailed(); /** @todo Implement */ 2810 } 2811 2812 2813 static DECLCALLBACK(void) vmsvga3dDXDestroyShader(PVMSVGA3DSTATE p3dState) 2814 { 2815 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2816 2817 RT_NOREF(pBackend); 2818 AssertFailed(); /** @todo Implement */ 2819 } 2820 2821 2822 static DECLCALLBACK(void) vmsvga3dDXBindShader(PVMSVGA3DSTATE p3dState) 2823 { 2824 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2825 2826 RT_NOREF(pBackend); 2827 AssertFailed(); /** @todo Implement */ 2828 } 2829 2830 2831 static DECLCALLBACK(void) vmsvga3dDXDefineStreamOutput(PVMSVGA3DSTATE p3dState) 2832 { 2833 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2834 2835 RT_NOREF(pBackend); 2836 AssertFailed(); /** @todo Implement */ 2837 } 2838 2839 2840 static DECLCALLBACK(void) vmsvga3dDXDestroyStreamOutput(PVMSVGA3DSTATE p3dState) 2841 { 2842 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2843 2844 RT_NOREF(pBackend); 2845 AssertFailed(); /** @todo Implement */ 2846 } 2847 2848 2849 static DECLCALLBACK(void) vmsvga3dDXSetStreamOutput(PVMSVGA3DSTATE p3dState) 2850 { 2851 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2852 2853 RT_NOREF(pBackend); 2854 AssertFailed(); /** @todo Implement */ 2855 } 2856 2857 2858 static DECLCALLBACK(void) vmsvga3dDXSetCOTable(PVMSVGA3DSTATE p3dState) 2859 { 2860 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2861 2862 RT_NOREF(pBackend); 2863 AssertFailed(); /** @todo Implement */ 2864 } 2865 2866 2867 static DECLCALLBACK(void) vmsvga3dDXReadbackCOTable(PVMSVGA3DSTATE p3dState) 2868 { 2869 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2870 2871 RT_NOREF(pBackend); 2872 AssertFailed(); /** @todo Implement */ 2873 } 2874 2875 2876 static DECLCALLBACK(void) vmsvga3dDXBufferCopy(PVMSVGA3DSTATE p3dState) 2877 { 2878 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2879 2880 RT_NOREF(pBackend); 2881 AssertFailed(); /** @todo Implement */ 2882 } 2883 2884 2885 static DECLCALLBACK(void) vmsvga3dDXTransferFromBuffer(PVMSVGA3DSTATE p3dState) 2886 { 2887 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2888 2889 RT_NOREF(pBackend); 2890 AssertFailed(); /** @todo Implement */ 2891 } 2892 2893 2894 static DECLCALLBACK(void) vmsvga3dDXSurfaceCopyAndReadback(PVMSVGA3DSTATE p3dState) 2895 { 2896 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2897 2898 RT_NOREF(pBackend); 2899 AssertFailed(); /** @todo Implement */ 2900 } 2901 2902 2903 static DECLCALLBACK(void) vmsvga3dDXMoveQuery(PVMSVGA3DSTATE p3dState) 2904 { 2905 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2906 2907 RT_NOREF(pBackend); 2908 AssertFailed(); /** @todo Implement */ 2909 } 2910 2911 2912 static DECLCALLBACK(void) vmsvga3dDXBindAllQuery(PVMSVGA3DSTATE p3dState) 2913 { 2914 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2915 2916 RT_NOREF(pBackend); 2917 AssertFailed(); /** @todo Implement */ 2918 } 2919 2920 2921 static DECLCALLBACK(void) vmsvga3dDXReadbackAllQuery(PVMSVGA3DSTATE p3dState) 2922 { 2923 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2924 2925 RT_NOREF(pBackend); 2926 AssertFailed(); /** @todo Implement */ 2927 } 2928 2929 2930 static DECLCALLBACK(void) vmsvga3dDXPredTransferFromBuffer(PVMSVGA3DSTATE p3dState) 2931 { 2932 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2933 2934 RT_NOREF(pBackend); 2935 AssertFailed(); /** @todo Implement */ 2936 } 2937 2938 2939 static DECLCALLBACK(void) vmsvga3dDXMobFence64(PVMSVGA3DSTATE p3dState) 2940 { 2941 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2942 2943 RT_NOREF(pBackend); 2944 AssertFailed(); /** @todo Implement */ 2945 } 2946 2947 2948 static DECLCALLBACK(void) vmsvga3dDXBindAllShader(PVMSVGA3DSTATE p3dState) 2949 { 2950 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2951 2952 RT_NOREF(pBackend); 2953 AssertFailed(); /** @todo Implement */ 2954 } 2955 2956 2957 static DECLCALLBACK(void) vmsvga3dDXHint(PVMSVGA3DSTATE p3dState) 2958 { 2959 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2960 2961 RT_NOREF(pBackend); 2962 AssertFailed(); /** @todo Implement */ 2963 } 2964 2965 2966 static DECLCALLBACK(void) vmsvga3dDXBufferUpdate(PVMSVGA3DSTATE p3dState) 2967 { 2968 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2969 2970 RT_NOREF(pBackend); 2971 AssertFailed(); /** @todo Implement */ 2972 } 2973 2974 2975 static DECLCALLBACK(void) vmsvga3dDXSetVSConstantBufferOffset(PVMSVGA3DSTATE p3dState) 2976 { 2977 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2978 2979 RT_NOREF(pBackend); 2980 AssertFailed(); /** @todo Implement */ 2981 } 2982 2983 2984 static DECLCALLBACK(void) vmsvga3dDXSetPSConstantBufferOffset(PVMSVGA3DSTATE p3dState) 2985 { 2986 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2987 2988 RT_NOREF(pBackend); 2989 AssertFailed(); /** @todo Implement */ 2990 } 2991 2992 2993 static DECLCALLBACK(void) vmsvga3dDXSetGSConstantBufferOffset(PVMSVGA3DSTATE p3dState) 2994 { 2995 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 2996 2997 RT_NOREF(pBackend); 2998 AssertFailed(); /** @todo Implement */ 2999 } 3000 3001 3002 static DECLCALLBACK(void) vmsvga3dDXCondBindAllShader(PVMSVGA3DSTATE p3dState) 3003 { 3004 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 3005 3006 RT_NOREF(pBackend); 3007 AssertFailed(); /** @todo Implement */ 3008 } 3009 3010 3011 int vmsvga3dQueryInterface(PVGASTATECC pThisCC, char const *pszInterfaceName, void *pvInterfaceFuncs, size_t cbInterfaceFuncs) 3012 { 3013 PVMSVGA3DSTATE p3dState = pThisCC->svga.p3dState; 3014 AssertReturn(p3dState, VERR_NOT_SUPPORTED); 3015 3016 PVMSVGA3DBACKEND pBackend = p3dState->pBackend; 3017 AssertReturn(pBackend, VERR_NOT_SUPPORTED); 3018 3019 if (pvInterfaceFuncs) 3020 RT_BZERO(pvInterfaceFuncs, cbInterfaceFuncs); 3021 3022 int rc = VINF_SUCCESS; 3023 if (RTStrCmp(pszInterfaceName, VMSVGA3D_BACKEND_INTERFACE_NAME_DX) == 0) 3024 { 3025 if (cbInterfaceFuncs == sizeof(VMSVGA3DBACKENDFUNCSDX)) 3026 { 3027 if (pvInterfaceFuncs) 3028 { 3029 VMSVGA3DBACKENDFUNCSDX *p = (VMSVGA3DBACKENDFUNCSDX *)pvInterfaceFuncs; 3030 p->pfnDXDefineContext = vmsvga3dDXDefineContext; 3031 p->pfnDXDestroyContext = vmsvga3dDXDestroyContext; 3032 p->pfnDXBindContext = vmsvga3dDXBindContext; 3033 p->pfnDXReadbackContext = vmsvga3dDXReadbackContext; 3034 p->pfnDXInvalidateContext = vmsvga3dDXInvalidateContext; 3035 p->pfnDXSetSingleConstantBuffer = vmsvga3dDXSetSingleConstantBuffer; 3036 p->pfnDXSetShaderResources = vmsvga3dDXSetShaderResources; 3037 p->pfnDXSetShader = vmsvga3dDXSetShader; 3038 p->pfnDXSetSamplers = vmsvga3dDXSetSamplers; 3039 p->pfnDXDraw = vmsvga3dDXDraw; 3040 p->pfnDXDrawIndexed = vmsvga3dDXDrawIndexed; 3041 p->pfnDXDrawInstanced = vmsvga3dDXDrawInstanced; 3042 p->pfnDXDrawIndexedInstanced = vmsvga3dDXDrawIndexedInstanced; 3043 p->pfnDXDrawAuto = vmsvga3dDXDrawAuto; 3044 p->pfnDXSetInputLayout = vmsvga3dDXSetInputLayout; 3045 p->pfnDXSetVertexBuffers = vmsvga3dDXSetVertexBuffers; 3046 p->pfnDXSetIndexBuffer = vmsvga3dDXSetIndexBuffer; 3047 p->pfnDXSetTopology = vmsvga3dDXSetTopology; 3048 p->pfnDXSetRenderTargets = vmsvga3dDXSetRenderTargets; 3049 p->pfnDXSetBlendState = vmsvga3dDXSetBlendState; 3050 p->pfnDXSetDepthStencilState = vmsvga3dDXSetDepthStencilState; 3051 p->pfnDXSetRasterizerState = vmsvga3dDXSetRasterizerState; 3052 p->pfnDXDefineQuery = vmsvga3dDXDefineQuery; 3053 p->pfnDXDestroyQuery = vmsvga3dDXDestroyQuery; 3054 p->pfnDXBindQuery = vmsvga3dDXBindQuery; 3055 p->pfnDXSetQueryOffset = vmsvga3dDXSetQueryOffset; 3056 p->pfnDXBeginQuery = vmsvga3dDXBeginQuery; 3057 p->pfnDXEndQuery = vmsvga3dDXEndQuery; 3058 p->pfnDXReadbackQuery = vmsvga3dDXReadbackQuery; 3059 p->pfnDXSetPredication = vmsvga3dDXSetPredication; 3060 p->pfnDXSetSOTargets = vmsvga3dDXSetSOTargets; 3061 p->pfnDXSetViewports = vmsvga3dDXSetViewports; 3062 p->pfnDXSetScissorRects = vmsvga3dDXSetScissorRects; 3063 p->pfnDXClearRenderTargetView = vmsvga3dDXClearRenderTargetView; 3064 p->pfnDXClearDepthStencilView = vmsvga3dDXClearDepthStencilView; 3065 p->pfnDXPredCopyRegion = vmsvga3dDXPredCopyRegion; 3066 p->pfnDXPredCopy = vmsvga3dDXPredCopy; 3067 p->pfnDXStretchBlt = vmsvga3dDXStretchBlt; 3068 p->pfnDXGenMips = vmsvga3dDXGenMips; 3069 p->pfnDXUpdateSubResource = vmsvga3dDXUpdateSubResource; 3070 p->pfnDXReadbackSubResource = vmsvga3dDXReadbackSubResource; 3071 p->pfnDXInvalidateSubResource = vmsvga3dDXInvalidateSubResource; 3072 p->pfnDXDefineShaderResourceView = vmsvga3dDXDefineShaderResourceView; 3073 p->pfnDXDestroyShaderResourceView = vmsvga3dDXDestroyShaderResourceView; 3074 p->pfnDXDefineRenderTargetView = vmsvga3dDXDefineRenderTargetView; 3075 p->pfnDXDestroyRenderTargetView = vmsvga3dDXDestroyRenderTargetView; 3076 p->pfnDXDefineDepthStencilView = vmsvga3dDXDefineDepthStencilView; 3077 p->pfnDXDestroyDepthStencilView = vmsvga3dDXDestroyDepthStencilView; 3078 p->pfnDXDefineElementLayout = vmsvga3dDXDefineElementLayout; 3079 p->pfnDXDestroyElementLayout = vmsvga3dDXDestroyElementLayout; 3080 p->pfnDXDefineBlendState = vmsvga3dDXDefineBlendState; 3081 p->pfnDXDestroyBlendState = vmsvga3dDXDestroyBlendState; 3082 p->pfnDXDefineDepthStencilState = vmsvga3dDXDefineDepthStencilState; 3083 p->pfnDXDestroyDepthStencilState = vmsvga3dDXDestroyDepthStencilState; 3084 p->pfnDXDefineRasterizerState = vmsvga3dDXDefineRasterizerState; 3085 p->pfnDXDestroyRasterizerState = vmsvga3dDXDestroyRasterizerState; 3086 p->pfnDXDefineSamplerState = vmsvga3dDXDefineSamplerState; 3087 p->pfnDXDestroySamplerState = vmsvga3dDXDestroySamplerState; 3088 p->pfnDXDefineShader = vmsvga3dDXDefineShader; 3089 p->pfnDXDestroyShader = vmsvga3dDXDestroyShader; 3090 p->pfnDXBindShader = vmsvga3dDXBindShader; 3091 p->pfnDXDefineStreamOutput = vmsvga3dDXDefineStreamOutput; 3092 p->pfnDXDestroyStreamOutput = vmsvga3dDXDestroyStreamOutput; 3093 p->pfnDXSetStreamOutput = vmsvga3dDXSetStreamOutput; 3094 p->pfnDXSetCOTable = vmsvga3dDXSetCOTable; 3095 p->pfnDXReadbackCOTable = vmsvga3dDXReadbackCOTable; 3096 p->pfnDXBufferCopy = vmsvga3dDXBufferCopy; 3097 p->pfnDXTransferFromBuffer = vmsvga3dDXTransferFromBuffer; 3098 p->pfnDXSurfaceCopyAndReadback = vmsvga3dDXSurfaceCopyAndReadback; 3099 p->pfnDXMoveQuery = vmsvga3dDXMoveQuery; 3100 p->pfnDXBindAllQuery = vmsvga3dDXBindAllQuery; 3101 p->pfnDXReadbackAllQuery = vmsvga3dDXReadbackAllQuery; 3102 p->pfnDXPredTransferFromBuffer = vmsvga3dDXPredTransferFromBuffer; 3103 p->pfnDXMobFence64 = vmsvga3dDXMobFence64; 3104 p->pfnDXBindAllShader = vmsvga3dDXBindAllShader; 3105 p->pfnDXHint = vmsvga3dDXHint; 3106 p->pfnDXBufferUpdate = vmsvga3dDXBufferUpdate; 3107 p->pfnDXSetVSConstantBufferOffset = vmsvga3dDXSetVSConstantBufferOffset; 3108 p->pfnDXSetPSConstantBufferOffset = vmsvga3dDXSetPSConstantBufferOffset; 3109 p->pfnDXSetGSConstantBufferOffset = vmsvga3dDXSetGSConstantBufferOffset; 3110 p->pfnDXCondBindAllShader = vmsvga3dDXCondBindAllShader; 3111 } 3112 } 3113 else 3114 { 3115 AssertFailed(); 3116 rc = VERR_INVALID_PARAMETER; 3117 } 3118 } 3119 else 3120 rc = VERR_NOT_IMPLEMENTED; 3121 return rc; 3122 }
Note:
See TracChangeset
for help on using the changeset viewer.