ReactOS  0.4.13-dev-242-g611e6d7
d3d9_device.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS ReactX
4  * FILE: dll/directx/d3d9/d3d9_device.h
5  * PURPOSE: d3d9.dll internal device structures
6  * PROGRAMERS: Gregor Brunmar <gregor (dot) brunmar (at) home (dot) se>
7  */
8 #ifndef _D3D9_DEVICE_H_
9 #define _D3D9_DEVICE_H_
10 
11 #include "d3d9_common.h"
12 #include <d3d9.h>
13 #include <d3d9types.h>
14 #include "d3d9_private.h"
15 #include "d3d9_swapchain.h"
16 #include "d3d9_surface.h"
17 
18 #if !defined(__cplusplus) || defined(CINTERFACE)
20 {
21  struct IDirect3DDevice9Vtbl PublicInterface;
22 
23  HRESULT (WINAPI *SetRenderStateWorker)(LPDIRECT3DDEVICE9 iface, D3DRENDERSTATETYPE State, DWORD Value); // Value = D3DDEGREETYPE Degree );
27  HRESULT (WINAPI *SetVertexShader)(LPDIRECT3DDEVICE9 iface, IDirect3DVertexShader9* pShader);
31  HRESULT (WINAPI *SetPixelShader)(LPDIRECT3DDEVICE9 iface, IDirect3DPixelShader9* pShader);
32  HRESULT (WINAPI *SetPixelShaderConstantF)(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount);
33  HRESULT (WINAPI *SetPixelShaderConstantI)(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount);
36  HRESULT (WINAPI *SetTexture)(LPDIRECT3DDEVICE9 iface, DWORD Stage,IDirect3DBaseTexture9* pTexture);
37  HRESULT (WINAPI *SetIndices)(LPDIRECT3DDEVICE9 iface, IDirect3DIndexBuffer9* pIndexData);
38  HRESULT (WINAPI *SetStreamSource)(LPDIRECT3DDEVICE9 iface, UINT StreamNumber,IDirect3DVertexBuffer9* pStreamData,UINT OffsetInBytes,UINT Stride);
39  HRESULT (WINAPI *SetStreamSourceFreq)(LPDIRECT3DDEVICE9 iface, UINT StreamNumber,UINT Setting);
40  VOID (WINAPI *UpdateRenderState)(LPDIRECT3DDEVICE9 iface, DWORD Unknown1, DWORD Unknown2);
43  HRESULT (WINAPI *SetClipPlane)(LPDIRECT3DDEVICE9 iface, DWORD Index,CONST float* pPlane);
44  VOID (WINAPI *UpdateDriverState)(LPDIRECT3DDEVICE9 iface);
46  VOID (WINAPI *SetStreamSourceInt)(LPDIRECT3DDEVICE9 iface, LPVOID UnknownStreamData);
47  HRESULT (WINAPI *SetPixelShaderConstantFWorker)(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount);
48  HRESULT (WINAPI *SetPixelShaderConstantIWorker)(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount);
49  HRESULT (WINAPI *SetPixelShaderConstantBWorker)(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST BOOL* pConstantData,UINT BoolCount);
53  HRESULT (WINAPI *SetRenderStateInt)(LPDIRECT3DDEVICE9 iface, D3DRENDERSTATETYPE State, DWORD Value ); // Value = D3DDEGREETYPE Degree );
56  VOID (WINAPI *DrawPrimitivesWorker)(LPDIRECT3DDEVICE9 iface);
57  VOID (WINAPI *UpdateVertexShader)(LPDIRECT3DDEVICE9 iface);
60  VOID (WINAPI *InitState)(LPDIRECT3DDEVICE9 iface, INT State);
61  VOID (WINAPI *Destroy)(LPDIRECT3DDEVICE9 iface);
62  VOID (WINAPI *VirtualDestructor)(LPDIRECT3DDEVICE9 iface);
64 #endif
65 
66 typedef struct _D3D9HeapTexture
67 {
68 /* 0x0000 */ DWORD dwUnknown00;
69 /* 0x0004 */ DWORD dwUnknown04; // 0x400
70 /* 0x0008 */ LPDWORD pUnknown08; // malloc(dwUnknown04 * 2)
72 
73 typedef struct _D3D9ResourceManager
74 {
75 #ifdef D3D_DEBUG_INFO
76 /* N/A - 0x0000 */ DDSURFACEDESC SurfaceDesc[8];
77 #endif
78 /* 0x0000 - 0x0160 */ struct _Direct3DDevice9_INT* pBaseDevice;
79 /* 0x0004 - 0x0164 */ DWORD dwUnknown0004;
80 /* 0x0008 - 0x0168 */ DWORD dwUnknown0008;
81 /* 0x000c - 0x016c */ DWORD MaxSimultaneousTextures;
82 /* 0x0010 - 0x0170 */ DWORD dwUnknown0010;
83 /* 0x0014 - 0x0174 */ D3D9HeapTexture* pTextureHeap;
85 
86 typedef struct _Direct3DDevice9_INT
87 {
88 /* 0x0000 */ struct _IDirect3DDevice9Vtbl_INT* lpVtbl;
90 #ifdef D3D_DEBUG_INFO
91 /* N/A - 0x001c */ DWORD dbg0004;
92 /* N/A - 0x0020 */ DWORD dbg0008;
93 /* N/A - 0x0024 */ DWORD dbg000c;
94 /* N/A - 0x0028 */ DWORD dbg0010;
95 /* N/A - 0x002c */ DWORD dbg0014;
96 /* N/A - 0x0030 */ DWORD dbg0018;
97 /* N/A - 0x0034 */ DWORD dbg001c;
98 /* N/A - 0x0038 */ DWORD dbg0020;
99 /* N/A - 0x003c */ DWORD dbg0024;
100 /* N/A - 0x0040 */ DWORD dbg0028;
101 /* N/A - 0x0044 */ DWORD dbg002c;
102 /* N/A - 0x0048 */ DWORD dbg0030;
103 /* N/A - 0x004c */ DWORD dbg0034;
104 /* N/A - 0x0050 */ DWORD dbg0038;
105 #endif
106 /* 0x001c - 0x0054 */ BOOL bLockDevice;
107 /* 0x0020 - 0x0058 */ DWORD dwProcessId;
108 /* 0x0024 - 0x005c */ IUnknown* pUnknown;
109 /* 0x0028 - 0x0060 */ DWORD dwDXVersion;
110 /* 0x002c - 0x0064 */ DWORD unknown000011;
111 /* 0x0030 - 0x0068 */ LONG lRefCnt;
112 /* 0x0034 - 0x006c */ DWORD unknown000013;
113 /* 0x0038 - 0x0070 */ D3D9ResourceManager* pResourceManager;
114 /* 0x003c - 0x0074 */ HWND hWnd;
115 /* 0x0040 - 0x0078 */ DWORD AdjustedBehaviourFlags;
116 /* 0x0044 - 0x007c */ DWORD BehaviourFlags;
117 /* 0x0048 - 0x0080 */ D3D9BaseSurface* pUnknown0010;
118 /* 0x004c - 0x0084 */ DWORD NumAdaptersInDevice;
125 /* 0x1e54 */ DWORD unknown001941;
126 /* 0x1e58 */ DWORD unknown001942;
127 /* 0x1e5c */ DWORD unknown001943;
129 /* 0x1e64 */ D3DDEVTYPE DeviceType;
132 /* 0x1e70 */ DWORD unknown001948;
133 /* 0x1e74 */ HANDLE hDX10UMDriver;
135 /* 0x1e7c */ DWORD unknown001951;
136 /* 0x1e80 */ DWORD unknown001952;
137 /* 0x1e84 */ DWORD unknown001953;
138 /* 0x1e88 */ DWORD unknown001954;
139 /* 0x1e8c */ DWORD unknown001955;
140 /* 0x1e90 */ DWORD unknown001956;
141 /* 0x1e94 */ DWORD unknown001957;
142 /* 0x1e98 */ DWORD unknown001958;
143 /* 0x1e9c */ DWORD unknown001959;
144 /* 0x1ea0 */ DWORD unknown001960;
145 /* 0x1ea4 */ DWORD unknown001961;
146 /* 0x1ea8 */ DWORD unknown001962;
147 /* 0x1eac */ DWORD unknown001963;
148 /* 0x1eb0 */ DWORD unknown001964;
149 /* 0x1eb4 */ DWORD unknown001965;
150 /* 0x1eb8 */ DWORD unknown001966;
151 /* 0x1ebc */ DWORD unknown001967;
152 /* 0x1ec0 */ DWORD unknown001968;
153 /* 0x1ec4 */ DWORD unknown001969;
154 /* 0x1ec8 */ DWORD unknown001970;
155 /* 0x1ecc */ DWORD unknown001971;
156 /* 0x1ed0 */ DWORD unknown001972;
157 /* 0x1ed4 */ DWORD unknown001973;
158 /* 0x1ed8 */ DWORD unknown001974;
159 /* 0x1edc */ DWORD unknown001975;
160 /* 0x1ee0 */ DWORD unknown001976;
161 /* 0x1ee4 */ DWORD unknown001977;
162 /* 0x1ee8 */ DWORD unknown001978;
163 /* 0x1eec */ DWORD unknown001979;
164 /* 0x1ef0 */ DWORD unknown001980;
165 /* 0x1ef4 */ DWORD unknown001981;
166 /* 0x1ef8 */ DWORD unknown001982;
167 /* 0x1efc */ DWORD unknown001983;
168 /* 0x1f00 */ DWORD unknown001984;
169 /* 0x1f04 */ DWORD unknown001985;
170 /* 0x1f08 */ DWORD unknown001986;
171 /* 0x1f0c */ DWORD unknown001987;
172 /* 0x1f10 */ DWORD unknown001988;
173 /* 0x1f14 */ DWORD unknown001989;
174 /* 0x1f18 */ DWORD unknown001990;
175 /* 0x1f1c */ DWORD unknown001991;
176 /* 0x1f20 */ DWORD unknown001992;
177 /* 0x1f24 */ DWORD unknown001993;
178 /* 0x1f28 */ DWORD unknown001994;
179 /* 0x1f2c */ DWORD unknown001995;
180 /* 0x1f30 */ DWORD unknown001996;
181 /* 0x1f34 */ DWORD unknown001997;
182 /* 0x1f38 */ DWORD unknown001998;
183 /* 0x1f3c */ DWORD unknown001999;
184 /* 0x1f40 */ DWORD unknown002000;
185 /* 0x1f44 */ DWORD unknown002001;
187 
188 /* Helper functions */
190 
191 /* IUnknown interface */
195 
196 /* IDirect3DDevice9 public interface */
204 HRESULT WINAPI IDirect3DDevice9Base_SetCursorProperties(LPDIRECT3DDEVICE9 iface, UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9* pCursorBitmap);
207 HRESULT WINAPI IDirect3DDevice9Base_CreateAdditionalSwapChain(LPDIRECT3DDEVICE9 iface, D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** ppSwapChain);
208 HRESULT WINAPI IDirect3DDevice9Base_GetSwapChain(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, IDirect3DSwapChain9** ppSwapChain);
211 HRESULT WINAPI IDirect3DDevice9Base_Present(LPDIRECT3DDEVICE9 iface, CONST RECT* pSourceRect, CONST RECT* pDestRect, HWND hDestWindowOverride, CONST RGNDATA* pDirtyRegion);
212 HRESULT WINAPI IDirect3DDevice9Base_GetBackBuffer(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer);
217 HRESULT WINAPI IDirect3DDevice9Base_CreateTexture(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle);
218 HRESULT WINAPI IDirect3DDevice9Base_CreateVolumeTexture(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle);
219 HRESULT WINAPI IDirect3DDevice9Base_CreateCubeTexture(LPDIRECT3DDEVICE9 iface, UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle);
220 HRESULT WINAPI IDirect3DDevice9Base_CreateVertexBuffer(LPDIRECT3DDEVICE9 iface, UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle);
221 HRESULT WINAPI IDirect3DDevice9Base_CreateIndexBuffer(LPDIRECT3DDEVICE9 iface, UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle);
222 HRESULT WINAPI IDirect3DDevice9Base_CreateRenderTarget(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle);
223 HRESULT WINAPI IDirect3DDevice9Base_CreateDepthStencilSurface(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle);
224 HRESULT WINAPI IDirect3DDevice9Base_UpdateSurface(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestinationSurface, CONST POINT* pDestPoint);
225 HRESULT WINAPI IDirect3DDevice9Base_UpdateTexture(LPDIRECT3DDEVICE9 iface, IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture);
226 HRESULT WINAPI IDirect3DDevice9Base_GetRenderTargetData(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface);
227 HRESULT WINAPI IDirect3DDevice9Base_GetFrontBufferData(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, IDirect3DSurface9* pDestSurface);
228 HRESULT WINAPI IDirect3DDevice9Base_StretchRect(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestSurface, CONST RECT* pDestRect, D3DTEXTUREFILTERTYPE Filter);
230 HRESULT WINAPI IDirect3DDevice9Base_CreateOffscreenPlainSurface(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle);
231 
232 /* IDirect3DDevice9 private interface */
235 
236 #endif /* _D3D9_DEVICE_H_ */
IDirect3DPixelShader9 * pShader
Definition: d3d9_device.h:31
CONST D3DVIEWPORT9 * pViewport
Definition: d3d9_device.h:45
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth
Definition: exfuncs.h:656
#define REFIID
Definition: guiddef.h:113
HRESULT WINAPI IDirect3DDevice9Base_TestCooperativeLevel(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:84
struct IDirect3DDevice9 * LPDIRECT3DDEVICE9
Definition: d3d9.h:130
UINT WINAPI IDirect3DDevice9Base_GetAvailableTextureMem(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:106
Type
Definition: Type.h:6
#define Y(I)
VOID WINAPI IDirect3DDevice9Base_VirtualDestructor(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:960
DWORD CONST D3DRECT DWORD D3DCOLOR Color
Definition: d3d9_device.h:55
VOID WINAPI IDirect3DDevice9Base_GetGammaRamp(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, D3DGAMMARAMP *pRamp)
Definition: d3d9_device.c:724
DWORD CONST D3DRECT DWORD D3DCOLOR float Z
Definition: d3d9_device.h:55
struct IDirect3DDevice9Vtbl PublicInterface
Definition: d3d9_device.h:21
REFIID riid
Definition: precomp.h:44
UINT CONST BOOL * pConstantData
Definition: d3d9_device.h:30
HRESULT WINAPI IDirect3DDevice9Base_SetCursorProperties(LPDIRECT3DDEVICE9 iface, UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9 *pCursorBitmap)
Definition: d3d9_device.c:300
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
Definition: hidpi.h:382
D3DRENDERSTATETYPE DWORD Value
Definition: d3d9_device.h:23
HRESULT WINAPI IDirect3DDevice9Base_EvictManagedResources(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:128
struct _IDirect3DDevice9Vtbl_INT * lpVtbl
Definition: d3d9_device.h:88
D3DDEVTYPE DeviceType
Definition: d3d9_device.h:129
D3D9BaseSurface * pUnknown0010
Definition: d3d9_device.h:117
enum _D3DPOOL D3DPOOL
D3DPRIMITIVETYPE UINT UINT UINT Unknown3
Definition: d3d9_device.h:58
D3DRENDERSTATETYPE State
Definition: d3d9_device.h:23
HRESULT WINAPI IDirect3DDevice9Base_StretchRect(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pSourceSurface, CONST RECT *pSourceRect, IDirect3DSurface9 *pDestSurface, CONST RECT *pDestRect, D3DTEXTUREFILTERTYPE Filter)
Definition: d3d9_device.c:933
DWORD D3DTEXTURESTAGESTATETYPE Type
Definition: d3d9_device.h:24
VOID(WINAPI *UpdateRenderState)(LPDIRECT3DDEVICE9 iface
D3DPRIMITIVETYPE UINT UINT UINT INT Unknown4
Definition: d3d9_device.h:58
DWORD CONST D3DLIGHT9 DWORD BOOL Enable
Definition: d3d9_device.h:52
int32_t INT
Definition: typedefs.h:56
struct _D3D9ResourceManager D3D9ResourceManager
struct _IDirect3DDevice9Vtbl_INT IDirect3DDevice9Vtbl_INT
DWORD D3DSAMPLERSTATETYPE DWORD Value
Definition: d3d9_device.h:25
DWORD D3DTEXTURESTAGESTATETYPE DWORD Value
Definition: d3d9_device.h:24
D3D9BaseSurface * pUnknown001944
Definition: d3d9_device.h:128
D3D9BaseSurface * pRenderTargetList
Definition: d3d9_device.h:124
LPDWORD pUnknown08
Definition: d3d9_device.h:70
ULONG WINAPI IDirect3DDevice9Base_Release(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:58
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
HRESULT WINAPI IDirect3DDevice9Base_CreateIndexBuffer(LPDIRECT3DDEVICE9 iface, UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9 **ppIndexBuffer, HANDLE *pSharedHandle)
Definition: d3d9_device.c:841
UINT CONST BOOL UINT BoolCount
Definition: d3d9_device.h:30
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
GLuint color
Definition: glext.h:6243
D3DTRANSFORMSTATETYPE State
Definition: d3d9_device.h:41
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1802
D3DPRIMITIVETYPE PrimitiveType
Definition: d3d9_device.h:50
#define FAR
Definition: guiddef.h:36
UINT CONST float * pConstantData
Definition: d3d9_device.h:28
HRESULT WINAPI IDirect3DDevice9Base_GetCreationParameters(LPDIRECT3DDEVICE9 iface, D3DDEVICE_CREATION_PARAMETERS *pParameters)
Definition: d3d9_device.c:279
HRESULT WINAPI IDirect3DDevice9Base_GetRenderTargetData(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pRenderTarget, IDirect3DSurface9 *pDestSurface)
Definition: d3d9_device.c:876
UINT IDirect3DVertexBuffer9 * pStreamData
Definition: d3d9_device.h:38
UINT WINAPI IDirect3DDevice9Base_GetNumberOfSwapChains(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:455
HRESULT WINAPI IDirect3DDevice9Base_Present(LPDIRECT3DDEVICE9 iface, CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
Definition: d3d9_device.c:508
HRESULT WINAPI IDirect3DDevice9Base_CreateVolumeTexture(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9 **ppVolumeTexture, HANDLE *pSharedHandle)
Definition: d3d9_device.c:820
HRESULT WINAPI IDirect3DDevice9Base_SetDialogBoxMode(LPDIRECT3DDEVICE9 iface, BOOL bEnableDialogs)
Definition: d3d9_device.c:646
DWORD CONST D3DLIGHT9 DWORD Index
Definition: d3d9_device.h:52
enum _D3DFORMAT D3DFORMAT
DWORD CONST D3DRECT DWORD D3DCOLOR float DWORD Stencil
Definition: d3d9_device.h:55
D3DPRIMITIVETYPE UINT PrimitiveCount
Definition: d3d9_device.h:54
CONST D3DMATRIX DWORD CONST float * pPlane
Definition: d3d9_device.h:43
HRESULT WINAPI IDirect3DDevice9Base_CreateOffscreenPlainSurface(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle)
Definition: d3d9_device.c:947
HRESULT WINAPI IDirect3DDevice9Base_GetFrontBufferData(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, IDirect3DSurface9 *pDestSurface)
Definition: d3d9_device.c:905
struct _Direct3DDevice9_INT DIRECT3DDEVICE9_INT
_In_ DD_SURFACE_LOCAL * pSurface
Definition: winddi.h:3481
LONG HRESULT
Definition: typedefs.h:77
HRESULT WINAPI IDirect3DDevice9Base_CreateCubeTexture(LPDIRECT3DDEVICE9 iface, UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9 **ppCubeTexture, HANDLE *pSharedHandle)
Definition: d3d9_device.c:827
D3DRENDERSTATETYPE
Definition: d3dtypes.h:874
#define WINAPI
Definition: msvc.h:8
enum _D3DDEVTYPE D3DDEVTYPE
DWORD AdapterIndexInGroup[D3D9_INT_MAX_NUM_ADAPTERS]
Definition: d3d9_device.h:120
ULONG WINAPI IDirect3DDevice9Base_AddRef(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:50
Definition: bufpool.h:50
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
UINT IDirect3DVertexBuffer9 UINT UINT Stride
Definition: d3d9_device.h:38
struct _Direct3DDevice9_INT * pBaseDevice
Definition: d3d9_device.h:78
HRESULT WINAPI IDirect3DDevice9Base_CreateRenderTarget(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle)
Definition: d3d9_device.c:848
HRESULT WINAPI IDirect3DDevice9Base_UpdateTexture(LPDIRECT3DDEVICE9 iface, IDirect3DBaseTexture9 *pSourceTexture, IDirect3DBaseTexture9 *pDestinationTexture)
Definition: d3d9_device.c:869
HRESULT WINAPI IDirect3DDevice9Base_GetBackBuffer(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer)
Definition: d3d9_device.c:568
DWORD MaxSimultaneousTextures
Definition: d3d9_device.h:81
UINT IDirect3DVertexBuffer9 UINT OffsetInBytes
Definition: d3d9_device.h:38
enum _D3DSAMPLERSTATETYPE D3DSAMPLERSTATETYPE
D3D9DriverSurface * pDriverSurfaceList
Definition: d3d9_device.h:131
struct _D3D9HeapTexture D3D9HeapTexture
REFIID LPVOID * ppvObject
Definition: precomp.h:44
DWORD CONST D3DRECT DWORD Flags
Definition: d3d9_device.h:55
HRESULT WINAPI IDirect3DDevice9Base_UpdateSurface(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pSourceSurface, CONST RECT *pSourceRect, IDirect3DSurface9 *pDestinationSurface, CONST POINT *pDestPoint)
Definition: d3d9_device.c:862
D3DPRIMITIVETYPE UINT UINT PrimitiveCount
Definition: d3d9_device.h:50
CONST D3DMATRIX DWORD Index
Definition: d3d9_device.h:43
HRESULT WINAPI IDirect3DDevice9Base_CreateTexture(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9 **ppTexture, HANDLE *pSharedHandle)
Definition: d3d9_device.c:789
HRESULT WINAPI IDirect3DDevice9Base_GetDeviceCaps(LPDIRECT3DDEVICE9 iface, D3DCAPS9 *pCaps)
Definition: d3d9_device.c:192
D3DTRANSFORMSTATETYPE CONST D3DMATRIX * pMatrix
Definition: d3d9_device.h:41
BOOL WINAPI IDirect3DDevice9Base_ShowCursor(LPDIRECT3DDEVICE9 iface, BOOL bShow)
Definition: d3d9_device.c:312
LPDIRECT3DSWAPCHAIN9_INT pSwapChains2[D3D9_INT_MAX_NUM_ADAPTERS]
Definition: d3d9_device.h:123
HRESULT WINAPI IDirect3DDevice9Base_CreateDepthStencilSurface(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle)
Definition: d3d9_device.c:855
HRESULT WINAPI IDirect3DDevice9Base_GetDirect3D(LPDIRECT3DDEVICE9 iface, IDirect3D9 **ppD3D9)
Definition: d3d9_device.c:153
IDirect3DIndexBuffer9 * pIndexData
Definition: d3d9_device.h:37
enum _D3DMULTISAMPLE_TYPE D3DMULTISAMPLE_TYPE
LPDIRECT3D9_INT pDirect3D9
Definition: d3d9_device.h:130
HRESULT WINAPI IDirect3DDevice9Base_GetSwapChain(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, IDirect3DSwapChain9 **ppSwapChain)
Definition: d3d9_device.c:402
LPDIRECT3DDEVICE9_INT IDirect3DDevice9ToImpl(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:19
LPDIRECT3DSWAPCHAIN9_INT pSwapChains[D3D9_INT_MAX_NUM_ADAPTERS]
Definition: d3d9_device.h:122
unsigned int UINT
Definition: ndis.h:50
D3DPRIMITIVETYPE
Definition: d3dtypes.h:822
UINT CONST int UINT Vector4iCount
Definition: d3d9_device.h:29
D3DPRIMITIVETYPE UINT StartVertex
Definition: d3d9_device.h:50
enum _D3DTEXTUREFILTERTYPE D3DTEXTUREFILTERTYPE
D3D9ResourceManager * pResourceManager
Definition: d3d9_device.h:113
DWORD CONST D3DRECT * pRects
Definition: d3d9_device.h:55
VOID WINAPI IDirect3DDevice9Base_SetCursorPosition(LPDIRECT3DDEVICE9 iface, int X, int Y, DWORD Flags)
Definition: d3d9_device.c:307
CRITICAL_SECTION CriticalSection
Definition: d3d9_device.h:89
uint32_t * LPDWORD
Definition: typedefs.h:57
HRESULT WINAPI IDirect3DDevice9Base_GetDisplayMode(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, D3DDISPLAYMODE *pMode)
Definition: d3d9_device.c:232
enum _D3DTEXTURESTAGESTATETYPE D3DTEXTURESTAGESTATETYPE
unsigned int ULONG
Definition: retypes.h:1
VOID WINAPI IDirect3DDevice9Base_Destroy(LPDIRECT3DDEVICE9 iface)
Definition: d3d9_device.c:955
HRESULT(WINAPI *SetRenderStateWorker)(LPDIRECT3DDEVICE9 iface
enum _D3DBACKBUFFER_TYPE D3DBACKBUFFER_TYPE
HRESULT WINAPI IDirect3DDevice9Base_CreateVertexBuffer(LPDIRECT3DDEVICE9 iface, UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9 **ppVertexBuffer, HANDLE *pSharedHandle)
Definition: d3d9_device.c:834
HRESULT WINAPI IDirect3DDevice9Base_ColorFill(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9 *pSurface, CONST RECT *pRect, D3DCOLOR color)
Definition: d3d9_device.c:940
DWORD IDirect3DBaseTexture9 * pTexture
Definition: d3d9_device.h:36
void Clear(USHORT Window)
Definition: hardware.c:705
enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE
VOID WINAPI IDirect3DDevice9Base_SetGammaRamp(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, DWORD Flags, CONST D3DGAMMARAMP *pRamp)
Definition: d3d9_device.c:678
#define D3D9_INT_MAX_NUM_ADAPTERS
Definition: d3d9_private.h:15
D3DPRIMITIVETYPE UINT UINT UINT INT UINT INT Unknown6
Definition: d3d9_device.h:58
struct _Direct3DDevice9_INT * LPDIRECT3DDEVICE9_INT
IDirect3DVertexShader9 * pShader
Definition: d3d9_device.h:27
HRESULT WINAPI IDirect3DDevice9Base_Reset(LPDIRECT3DDEVICE9 iface, D3DPRESENT_PARAMETERS *pPresentationParameters)
Definition: d3d9_device.c:468
HRESULT WINAPI IDirect3DDevice9Base_GetRasterStatus(LPDIRECT3DDEVICE9 iface, UINT iSwapChain, D3DRASTER_STATUS *pRasterStatus)
Definition: d3d9_device.c:618
D3DDISPLAYMODE CurrentDisplayMode[D3D9_INT_MAX_NUM_ADAPTERS]
Definition: d3d9_device.h:119
CONST D3DMATERIAL9 * pMaterial
Definition: d3d9_device.h:26
#define CONST
Definition: pedump.c:81
HRESULT WINAPI IDirect3DDevice9Base_CreateAdditionalSwapChain(LPDIRECT3DDEVICE9 iface, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DSwapChain9 **ppSwapChain)
Definition: d3d9_device.c:343
D3D9HeapTexture * pTextureHeap
Definition: d3d9_device.h:83
HRESULT WINAPI IDirect3DDevice9Base_QueryInterface(LPDIRECT3DDEVICE9 iface, REFIID riid, void **ppvObject)
Definition: d3d9_device.c:35
UINT CONST float UINT Vector4fCount
Definition: d3d9_device.h:28
D3DPRIMITIVETYPE UINT UINT UINT INT UINT Unknown5
Definition: d3d9_device.h:58