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 | #include "VBoxDispD3DIf.h"
|
---|
19 |
|
---|
20 | #include <iprt/cdefs.h>
|
---|
21 |
|
---|
22 | typedef struct VBOXWDDMDISP_ADAPTER
|
---|
23 | {
|
---|
24 | HANDLE hAdapter;
|
---|
25 | UINT uIfVersion;
|
---|
26 | UINT uRtVersion;
|
---|
27 | VBOXDISPD3D D3D;
|
---|
28 | IDirect3D9Ex * pD3D9If;
|
---|
29 | D3DDDI_ADAPTERCALLBACKS RtCallbacks;
|
---|
30 | } VBOXWDDMDISP_ADAPTER, *PVBOXWDDMDISP_ADAPTER;
|
---|
31 |
|
---|
32 | typedef struct VBOXWDDMDISP_DEVICE
|
---|
33 | {
|
---|
34 | HANDLE hDevice;
|
---|
35 | PVBOXWDDMDISP_ADAPTER pAdapter;
|
---|
36 | UINT u32IfVersion;
|
---|
37 | UINT uRtVersion;
|
---|
38 | D3DDDI_DEVICECALLBACKS RtCallbacks;
|
---|
39 | VOID *pvCmdBuffer;
|
---|
40 | UINT cbCmdBuffer;
|
---|
41 | D3DDDI_CREATEDEVICEFLAGS fFlags;
|
---|
42 | } VBOXWDDMDISP_DEVICE, *PVBOXWDDMDISP_DEVICE;
|
---|
43 |
|
---|
44 | DECLINLINE(bool) vboxDispD3DIs3DEnabled(VBOXWDDMDISP_ADAPTER * pAdapter)
|
---|
45 | {
|
---|
46 | return pAdapter->pD3D9If;
|
---|
47 | }
|
---|
48 |
|
---|
49 | #endif /* #ifndef ___VBoxDispD3D_h___ */
|
---|