1 | /** @file
|
---|
2 | *
|
---|
3 | * VBoxVideo Display D3D User mode dll
|
---|
4 | *
|
---|
5 | * Copyright (C) 2010 Oracle Corporation
|
---|
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 | #ifndef ___VBoxDispD3D_h___
|
---|
16 | #define ___VBoxDispD3D_h___
|
---|
17 |
|
---|
18 | #ifdef DEBUG
|
---|
19 | # define VBOXWDDMDISP_DEBUG
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | typedef struct VBOXWDDMDISP_ADAPTER
|
---|
23 | {
|
---|
24 | HANDLE hAdapter;
|
---|
25 | UINT uIfVersion;
|
---|
26 | UINT uRtVersion;
|
---|
27 | D3DDDI_ADAPTERCALLBACKS RtCallbacks;
|
---|
28 | } VBOXWDDMDISP_ADAPTER, *PVBOXWDDMDISP_ADAPTER;
|
---|
29 |
|
---|
30 | typedef struct VBOXWDDMDISP_DEVICE
|
---|
31 | {
|
---|
32 | HANDLE hDevice;
|
---|
33 | PVBOXWDDMDISP_ADAPTER pAdapter;
|
---|
34 | UINT u32IfVersion;
|
---|
35 | UINT uRtVersion;
|
---|
36 | D3DDDI_DEVICECALLBACKS RtCallbacks;
|
---|
37 | VOID *pvCmdBuffer;
|
---|
38 | UINT cbCmdBuffer;
|
---|
39 | D3DDDI_CREATEDEVICEFLAGS fFlags;
|
---|
40 | } VBOXWDDMDISP_DEVICE, *PVBOXWDDMDISP_DEVICE;
|
---|
41 |
|
---|
42 | #ifdef VBOXWDDMDISP_DEBUG
|
---|
43 | VOID vboxVDbgDoPrint(LPCSTR szString, ...);
|
---|
44 |
|
---|
45 | #define vboxVDbgBreak() AssertBreakpoint()
|
---|
46 | #define vboxVDbgPrint(_m) \
|
---|
47 | do { \
|
---|
48 | vboxVDbgDoPrint _m ; \
|
---|
49 | } while (0)
|
---|
50 | #define vboxVDbgPrintR vboxVDbgPrint
|
---|
51 | #define vboxVDbgPrintF vboxVDbgPrint
|
---|
52 | #else
|
---|
53 | #define vboxVDbgBreak() do {} while (0)
|
---|
54 | #define vboxVDbgPrint(_m) do {} while (0)
|
---|
55 | #define vboxVDbgPrintR vboxVDbgPrint
|
---|
56 | #define vboxVDbgPrintF vboxVDbgPrint
|
---|
57 | #endif
|
---|
58 |
|
---|
59 | #endif /* #ifndef ___VBoxDispD3D_h___ */
|
---|