1 | /** @file
|
---|
2 | *
|
---|
3 | * VBoxVideo Display D3D User mode dll
|
---|
4 | *
|
---|
5 | * Copyright (C) 2010 Sun Microsystems, Inc.
|
---|
6 | *
|
---|
7 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | * available from http://www.virtualbox.org. This file is free software;
|
---|
9 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | * General Public License (GPL) as published by the Free Software
|
---|
11 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | *
|
---|
15 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
16 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
17 | * additional information or have any questions.
|
---|
18 | */
|
---|
19 | #ifndef ___VBoxDispD3D_h___
|
---|
20 | #define ___VBoxDispD3D_h___
|
---|
21 |
|
---|
22 | #ifdef DEBUG
|
---|
23 | # define VBOXWDDMDISP_DEBUG
|
---|
24 | #endif
|
---|
25 |
|
---|
26 | typedef struct VBOXWDDMDISP_ADAPTER
|
---|
27 | {
|
---|
28 | HANDLE hAdapter;
|
---|
29 | UINT uIfVersion;
|
---|
30 | UINT uRtVersion;
|
---|
31 | D3DDDI_ADAPTERCALLBACKS RtCallbacks;
|
---|
32 | } VBOXWDDMDISP_ADAPTER, *PVBOXWDDMDISP_ADAPTER;
|
---|
33 |
|
---|
34 | typedef struct VBOXWDDMDISP_DEVICE
|
---|
35 | {
|
---|
36 | HANDLE hDevice;
|
---|
37 | PVBOXWDDMDISP_ADAPTER pAdapter;
|
---|
38 | UINT u32IfVersion;
|
---|
39 | UINT uRtVersion;
|
---|
40 | D3DDDI_DEVICECALLBACKS RtCallbacks;
|
---|
41 | VOID *pvCmdBuffer;
|
---|
42 | UINT cbCmdBuffer;
|
---|
43 | D3DDDI_CREATEDEVICEFLAGS fFlags;
|
---|
44 | } VBOXWDDMDISP_DEVICE, *PVBOXWDDMDISP_DEVICE;
|
---|
45 |
|
---|
46 | #ifdef VBOXWDDMDISP_DEBUG
|
---|
47 | VOID vboxVDbgDoPrint(LPCSTR szString, ...);
|
---|
48 |
|
---|
49 | #define vboxVDbgBreak() AssertBreakpoint()
|
---|
50 | #define vboxVDbgPrint(_m) \
|
---|
51 | do { \
|
---|
52 | vboxVDbgDoPrint _m ; \
|
---|
53 | } while (0)
|
---|
54 | #define vboxVDbgPrintR vboxVDbgPrint
|
---|
55 | #define vboxVDbgPrintF vboxVDbgPrint
|
---|
56 | #else
|
---|
57 | #define vboxVDbgBreak() do {} while (0)
|
---|
58 | #define vboxVDbgPrint(_m) do {} while (0)
|
---|
59 | #define vboxVDbgPrintR vboxVDbgPrint
|
---|
60 | #define vboxVDbgPrintF vboxVDbgPrint
|
---|
61 | #endif
|
---|
62 |
|
---|
63 | #endif /* #ifndef ___VBoxDispD3D_h___ */
|
---|