1bf215546Sopenharmony_ci/*
2bf215546Sopenharmony_ci * Copyright 2011 Joakim Sindholt <opensource@zhasha.com>
3bf215546Sopenharmony_ci *
4bf215546Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a
5bf215546Sopenharmony_ci * copy of this software and associated documentation files (the "Software"),
6bf215546Sopenharmony_ci * to deal in the Software without restriction, including without limitation
7bf215546Sopenharmony_ci * on the rights to use, copy, modify, merge, publish, distribute, sub
8bf215546Sopenharmony_ci * license, and/or sell copies of the Software, and to permit persons to whom
9bf215546Sopenharmony_ci * the Software is furnished to do so, subject to the following conditions:
10bf215546Sopenharmony_ci *
11bf215546Sopenharmony_ci * The above copyright notice and this permission notice (including the next
12bf215546Sopenharmony_ci * paragraph) shall be included in all copies or substantial portions of the
13bf215546Sopenharmony_ci * Software.
14bf215546Sopenharmony_ci *
15bf215546Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16bf215546Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17bf215546Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18bf215546Sopenharmony_ci * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
19bf215546Sopenharmony_ci * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20bf215546Sopenharmony_ci * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
21bf215546Sopenharmony_ci * USE OR OTHER DEALINGS IN THE SOFTWARE. */
22bf215546Sopenharmony_ci
23bf215546Sopenharmony_ci/*** THIS FILE IS AUTOGENERATED. DO NOT MODIFY MANUALLY. ***/
24bf215546Sopenharmony_ci
25bf215546Sopenharmony_ci#ifndef _D3D9_H_
26bf215546Sopenharmony_ci#define _D3D9_H_
27bf215546Sopenharmony_ci
28bf215546Sopenharmony_ci#include "d3d9types.h"
29bf215546Sopenharmony_ci#include "d3d9caps.h"
30bf215546Sopenharmony_ci
31bf215546Sopenharmony_citypedef struct IDirect3D9 IDirect3D9, *PDIRECT3D9, *LPDIRECT3D9;
32bf215546Sopenharmony_citypedef struct IDirect3D9Ex IDirect3D9Ex, *PDIRECT3D9EX, *LPDIRECT3D9EX;
33bf215546Sopenharmony_citypedef struct IDirect3D9ExOverlayExtension IDirect3D9ExOverlayExtension, *PDIRECT3D9EXOVERLAYEXTENSION, *LPDIRECT3D9EXOVERLAYEXTENSION;
34bf215546Sopenharmony_citypedef struct IDirect3DAuthenticatedChannel9 IDirect3DAuthenticatedChannel9, *PDIRECT3DAUTHENTICATEDCHANNEL9, *LPDIRECT3DAUTHENTICATEDCHANNEL9;
35bf215546Sopenharmony_citypedef struct IDirect3DBaseTexture9 IDirect3DBaseTexture9, *PDIRECT3DBASETEXTURE9, *LPDIRECT3DBASETEXTURE9;
36bf215546Sopenharmony_citypedef struct IDirect3DCryptoSession9 IDirect3DCryptoSession9, *PDIRECT3DCRYPTOSESSION9, *LPDIRECT3DCRYPTOSESSION9;
37bf215546Sopenharmony_citypedef struct IDirect3DCubeTexture9 IDirect3DCubeTexture9, *PDIRECT3DCUBETEXTURE9, *LPDIRECT3DCUBETEXTURE9;
38bf215546Sopenharmony_citypedef struct IDirect3DDevice9 IDirect3DDevice9, *PDIRECT3DDEVICE9, *LPDIRECT3DDEVICE9;
39bf215546Sopenharmony_citypedef struct IDirect3DDevice9Ex IDirect3DDevice9Ex, *PDIRECT3DDEVICE9EX, *LPDIRECT3DDEVICE9EX;
40bf215546Sopenharmony_citypedef struct IDirect3DDevice9Video IDirect3DDevice9Video, *PDIRECT3DDEVICE9VIDEO, *LPDIRECT3DDEVICE9VIDEO;
41bf215546Sopenharmony_citypedef struct IDirect3DIndexBuffer9 IDirect3DIndexBuffer9, *PDIRECT3DINDEXBUFFER9, *LPDIRECT3DINDEXBUFFER9;
42bf215546Sopenharmony_citypedef struct IDirect3DPixelShader9 IDirect3DPixelShader9, *PDIRECT3DPIXELSHADER9, *LPDIRECT3DPIXELSHADER9;
43bf215546Sopenharmony_citypedef struct IDirect3DQuery9 IDirect3DQuery9, *PDIRECT3DQUERY9, *LPDIRECT3DQUERY9;
44bf215546Sopenharmony_citypedef struct IDirect3DResource9 IDirect3DResource9, *PDIRECT3DRESOURCE9, *LPDIRECT3DRESOURCE9;
45bf215546Sopenharmony_citypedef struct IDirect3DStateBlock9 IDirect3DStateBlock9, *PDIRECT3DSTATEBLOCK9, *LPDIRECT3DSTATEBLOCK9;
46bf215546Sopenharmony_citypedef struct IDirect3DSurface9 IDirect3DSurface9, *PDIRECT3DSURFACE9, *LPDIRECT3DSURFACE9;
47bf215546Sopenharmony_citypedef struct IDirect3DSwapChain9 IDirect3DSwapChain9, *PDIRECT3DSWAPCHAIN9, *LPDIRECT3DSWAPCHAIN9;
48bf215546Sopenharmony_citypedef struct IDirect3DSwapChain9Ex IDirect3DSwapChain9Ex, *PDIRECT3DSWAPCHAIN9EX, *LPDIRECT3DSWAPCHAIN9EX;
49bf215546Sopenharmony_citypedef struct IDirect3DTexture9 IDirect3DTexture9, *PDIRECT3DTEXTURE9, *LPDIRECT3DTEXTURE9;
50bf215546Sopenharmony_citypedef struct IDirect3DVertexBuffer9 IDirect3DVertexBuffer9, *PDIRECT3DVERTEXBUFFER9, *LPDIRECT3DVERTEXBUFFER9;
51bf215546Sopenharmony_citypedef struct IDirect3DVertexDeclaration9 IDirect3DVertexDeclaration9, *PDIRECT3DVERTEXDECLARATION9, *LPDIRECT3DVERTEXDECLARATION9;
52bf215546Sopenharmony_citypedef struct IDirect3DVertexShader9 IDirect3DVertexShader9, *PDIRECT3DVERTEXSHADER9, *LPDIRECT3DVERTEXSHADER9;
53bf215546Sopenharmony_citypedef struct IDirect3DVolume9 IDirect3DVolume9, *PDIRECT3DVOLUME9, *LPDIRECT3DVOLUME9;
54bf215546Sopenharmony_citypedef struct IDirect3DVolumeTexture9 IDirect3DVolumeTexture9, *PDIRECT3DVOLUMETEXTURE9, *LPDIRECT3DVOLUMETEXTURE9;
55bf215546Sopenharmony_ci
56bf215546Sopenharmony_ci#ifdef __cplusplus
57bf215546Sopenharmony_ci
58bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3D9;
59bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3D9Ex;
60bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3D9ExOverlayExtension;
61bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DAuthenticatedChannel9;
62bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DBaseTexture9;
63bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DCryptoSession9;
64bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DCubeTexture9;
65bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DDevice9;
66bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DDevice9Ex;
67bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DDevice9Video;
68bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DIndexBuffer9;
69bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DPixelShader9;
70bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DQuery9;
71bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DResource9;
72bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DStateBlock9;
73bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DSurface9;
74bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DSwapChain9;
75bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DSwapChain9Ex;
76bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DTexture9;
77bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DVertexBuffer9;
78bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DVertexDeclaration9;
79bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DVertexShader9;
80bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DVolume9;
81bf215546Sopenharmony_ciextern "C" const GUID IID_IDirect3DVolumeTexture9;
82bf215546Sopenharmony_ci
83bf215546Sopenharmony_cistruct IDirect3D9 : public IUnknown
84bf215546Sopenharmony_ci{
85bf215546Sopenharmony_ci	virtual HRESULT WINAPI RegisterSoftwareDevice(void *pInitializeFunction) = 0;
86bf215546Sopenharmony_ci	virtual UINT WINAPI GetAdapterCount() = 0;
87bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetAdapterIdentifier(UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9 *pIdentifier) = 0;
88bf215546Sopenharmony_ci	virtual UINT WINAPI GetAdapterModeCount(UINT Adapter, D3DFORMAT Format) = 0;
89bf215546Sopenharmony_ci	virtual HRESULT WINAPI EnumAdapterModes(UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE *pMode) = 0;
90bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetAdapterDisplayMode(UINT Adapter, D3DDISPLAYMODE *pMode) = 0;
91bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckDeviceType(UINT Adapter, D3DDEVTYPE DevType, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed) = 0;
92bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckDeviceFormat(UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) = 0;
93bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckDeviceMultiSampleType(UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD *pQualityLevels) = 0;
94bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckDepthStencilMatch(UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) = 0;
95bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckDeviceFormatConversion(UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat) = 0;
96bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDeviceCaps(UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9 *pCaps) = 0;
97bf215546Sopenharmony_ci	virtual HMONITOR WINAPI GetAdapterMonitor(UINT Adapter) = 0;
98bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateDevice(UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DDevice9 **ppReturnedDeviceInterface) = 0;
99bf215546Sopenharmony_ci};
100bf215546Sopenharmony_ci
101bf215546Sopenharmony_cistruct IDirect3D9Ex : public IDirect3D9
102bf215546Sopenharmony_ci{
103bf215546Sopenharmony_ci	virtual UINT WINAPI GetAdapterModeCountEx(UINT Adapter, const D3DDISPLAYMODEFILTER *pFilter) = 0;
104bf215546Sopenharmony_ci	virtual HRESULT WINAPI EnumAdapterModesEx(UINT Adapter, const D3DDISPLAYMODEFILTER *pFilter, UINT Mode, D3DDISPLAYMODEEX *pMode) = 0;
105bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetAdapterDisplayModeEx(UINT Adapter, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation) = 0;
106bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateDeviceEx(UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS *pPresentationParameters, D3DDISPLAYMODEEX *pFullscreenDisplayMode, IDirect3DDevice9Ex **ppReturnedDeviceInterface) = 0;
107bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetAdapterLUID(UINT Adapter, LUID *pLUID) = 0;
108bf215546Sopenharmony_ci};
109bf215546Sopenharmony_ci
110bf215546Sopenharmony_cistruct IDirect3D9ExOverlayExtension : public IUnknown
111bf215546Sopenharmony_ci{
112bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckDeviceOverlayType(UINT Adapter, D3DDEVTYPE DevType, UINT OverlayWidth, UINT OverlayHeight, D3DFORMAT OverlayFormat, D3DDISPLAYMODEEX *pDisplayMode, D3DDISPLAYROTATION DisplayRotation, D3DOVERLAYCAPS *pOverlayCaps) = 0;
113bf215546Sopenharmony_ci};
114bf215546Sopenharmony_ci
115bf215546Sopenharmony_cistruct IDirect3DResource9 : public IUnknown
116bf215546Sopenharmony_ci{
117bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
118bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetPrivateData(REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags) = 0;
119bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPrivateData(REFGUID refguid, void *pData, DWORD *pSizeOfData) = 0;
120bf215546Sopenharmony_ci	virtual HRESULT WINAPI FreePrivateData(REFGUID refguid) = 0;
121bf215546Sopenharmony_ci	virtual DWORD WINAPI SetPriority(DWORD PriorityNew) = 0;
122bf215546Sopenharmony_ci	virtual DWORD WINAPI GetPriority() = 0;
123bf215546Sopenharmony_ci	virtual void WINAPI PreLoad() = 0;
124bf215546Sopenharmony_ci	virtual D3DRESOURCETYPE WINAPI GetType() = 0;
125bf215546Sopenharmony_ci};
126bf215546Sopenharmony_ci
127bf215546Sopenharmony_cistruct IDirect3DBaseTexture9 : public IDirect3DResource9
128bf215546Sopenharmony_ci{
129bf215546Sopenharmony_ci	virtual DWORD WINAPI SetLOD(DWORD LODNew) = 0;
130bf215546Sopenharmony_ci	virtual DWORD WINAPI GetLOD() = 0;
131bf215546Sopenharmony_ci	virtual DWORD WINAPI GetLevelCount() = 0;
132bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetAutoGenFilterType(D3DTEXTUREFILTERTYPE FilterType) = 0;
133bf215546Sopenharmony_ci	virtual D3DTEXTUREFILTERTYPE WINAPI GetAutoGenFilterType() = 0;
134bf215546Sopenharmony_ci	virtual void WINAPI GenerateMipSubLevels() = 0;
135bf215546Sopenharmony_ci};
136bf215546Sopenharmony_ci
137bf215546Sopenharmony_cistruct IDirect3DCryptoSession9 : public IUnknown
138bf215546Sopenharmony_ci{
139bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetCertificateSize(UINT *pCertificateSize) = 0;
140bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetCertificate(UINT CertifacteSize, BYTE *ppCertificate) = 0;
141bf215546Sopenharmony_ci	virtual HRESULT WINAPI NegotiateKeyExchange(UINT DataSize, void *pData) = 0;
142bf215546Sopenharmony_ci	virtual HRESULT WINAPI EncryptionBlt(IDirect3DSurface9 *pSrcSurface, IDirect3DSurface9 *pDstSurface, UINT DstSurfaceSize, void *pIV) = 0;
143bf215546Sopenharmony_ci	virtual HRESULT WINAPI DecryptionBlt(IDirect3DSurface9 *pSrcSurface, IDirect3DSurface9 *pDstSurface, UINT SrcSurfaceSize, D3DENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo, void *pContentKey, void *pIV) = 0;
144bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetSurfacePitch(IDirect3DSurface9 *pSrcSurface, UINT *pSurfacePitch) = 0;
145bf215546Sopenharmony_ci	virtual HRESULT WINAPI StartSessionKeyRefresh(void *pRandomNumber, UINT RandomNumberSize) = 0;
146bf215546Sopenharmony_ci	virtual HRESULT WINAPI FinishSessionKeyRefresh() = 0;
147bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetEncryptionBltKey(void *pReadbackKey, UINT KeySize) = 0;
148bf215546Sopenharmony_ci};
149bf215546Sopenharmony_ci
150bf215546Sopenharmony_cistruct IDirect3DCubeTexture9 : public IDirect3DBaseTexture9
151bf215546Sopenharmony_ci{
152bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetLevelDesc(UINT Level, D3DSURFACE_DESC *pDesc) = 0;
153bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetCubeMapSurface(D3DCUBEMAP_FACES FaceType, UINT Level, IDirect3DSurface9 **ppCubeMapSurface) = 0;
154bf215546Sopenharmony_ci	virtual HRESULT WINAPI LockRect(D3DCUBEMAP_FACES FaceType, UINT Level, D3DLOCKED_RECT *pLockedRect, const RECT *pRect, DWORD Flags) = 0;
155bf215546Sopenharmony_ci	virtual HRESULT WINAPI UnlockRect(D3DCUBEMAP_FACES FaceType, UINT Level) = 0;
156bf215546Sopenharmony_ci	virtual HRESULT WINAPI AddDirtyRect(D3DCUBEMAP_FACES FaceType, const RECT *pDirtyRect) = 0;
157bf215546Sopenharmony_ci};
158bf215546Sopenharmony_ci
159bf215546Sopenharmony_cistruct IDirect3DDevice9 : public IUnknown
160bf215546Sopenharmony_ci{
161bf215546Sopenharmony_ci	virtual HRESULT WINAPI TestCooperativeLevel() = 0;
162bf215546Sopenharmony_ci	virtual UINT WINAPI GetAvailableTextureMem() = 0;
163bf215546Sopenharmony_ci	virtual HRESULT WINAPI EvictManagedResources() = 0;
164bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDirect3D(IDirect3D9 **ppD3D9) = 0;
165bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDeviceCaps(D3DCAPS9 *pCaps) = 0;
166bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDisplayMode(UINT iSwapChain, D3DDISPLAYMODE *pMode) = 0;
167bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetCreationParameters(D3DDEVICE_CREATION_PARAMETERS *pParameters) = 0;
168bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetCursorProperties(UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9 *pCursorBitmap) = 0;
169bf215546Sopenharmony_ci	virtual void WINAPI SetCursorPosition(int X, int Y, DWORD Flags) = 0;
170bf215546Sopenharmony_ci	virtual BOOL WINAPI ShowCursor(BOOL bShow) = 0;
171bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateAdditionalSwapChain(D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DSwapChain9 **pSwapChain) = 0;
172bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetSwapChain(UINT iSwapChain, IDirect3DSwapChain9 **pSwapChain) = 0;
173bf215546Sopenharmony_ci	virtual UINT WINAPI GetNumberOfSwapChains() = 0;
174bf215546Sopenharmony_ci	virtual HRESULT WINAPI Reset(D3DPRESENT_PARAMETERS *pPresentationParameters) = 0;
175bf215546Sopenharmony_ci	virtual HRESULT WINAPI Present(const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion) = 0;
176bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetBackBuffer(UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer) = 0;
177bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetRasterStatus(UINT iSwapChain, D3DRASTER_STATUS *pRasterStatus) = 0;
178bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetDialogBoxMode(BOOL bEnableDialogs) = 0;
179bf215546Sopenharmony_ci	virtual void WINAPI SetGammaRamp(UINT iSwapChain, DWORD Flags, const D3DGAMMARAMP *pRamp) = 0;
180bf215546Sopenharmony_ci	virtual void WINAPI GetGammaRamp(UINT iSwapChain, D3DGAMMARAMP *pRamp) = 0;
181bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateTexture(UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9 **ppTexture, HANDLE *pSharedHandle) = 0;
182bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateVolumeTexture(UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9 **ppVolumeTexture, HANDLE *pSharedHandle) = 0;
183bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateCubeTexture(UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9 **ppCubeTexture, HANDLE *pSharedHandle) = 0;
184bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateVertexBuffer(UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9 **ppVertexBuffer, HANDLE *pSharedHandle) = 0;
185bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateIndexBuffer(UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9 **ppIndexBuffer, HANDLE *pSharedHandle) = 0;
186bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateRenderTarget(UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle) = 0;
187bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateDepthStencilSurface(UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle) = 0;
188bf215546Sopenharmony_ci	virtual HRESULT WINAPI UpdateSurface(IDirect3DSurface9 *pSourceSurface, const RECT *pSourceRect, IDirect3DSurface9 *pDestinationSurface, const POINT *pDestPoint) = 0;
189bf215546Sopenharmony_ci	virtual HRESULT WINAPI UpdateTexture(IDirect3DBaseTexture9 *pSourceTexture, IDirect3DBaseTexture9 *pDestinationTexture) = 0;
190bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetRenderTargetData(IDirect3DSurface9 *pRenderTarget, IDirect3DSurface9 *pDestSurface) = 0;
191bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetFrontBufferData(UINT iSwapChain, IDirect3DSurface9 *pDestSurface) = 0;
192bf215546Sopenharmony_ci	virtual HRESULT WINAPI StretchRect(IDirect3DSurface9 *pSourceSurface, const RECT *pSourceRect, IDirect3DSurface9 *pDestSurface, const RECT *pDestRect, D3DTEXTUREFILTERTYPE Filter) = 0;
193bf215546Sopenharmony_ci	virtual HRESULT WINAPI ColorFill(IDirect3DSurface9 *pSurface, const RECT *pRect, D3DCOLOR color) = 0;
194bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateOffscreenPlainSurface(UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle) = 0;
195bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetRenderTarget(DWORD RenderTargetIndex, IDirect3DSurface9 *pRenderTarget) = 0;
196bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetRenderTarget(DWORD RenderTargetIndex, IDirect3DSurface9 **ppRenderTarget) = 0;
197bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetDepthStencilSurface(IDirect3DSurface9 *pNewZStencil) = 0;
198bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDepthStencilSurface(IDirect3DSurface9 **ppZStencilSurface) = 0;
199bf215546Sopenharmony_ci	virtual HRESULT WINAPI BeginScene() = 0;
200bf215546Sopenharmony_ci	virtual HRESULT WINAPI EndScene() = 0;
201bf215546Sopenharmony_ci	virtual HRESULT WINAPI Clear(DWORD Count, const D3DRECT *pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) = 0;
202bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetTransform(D3DTRANSFORMSTATETYPE State, const D3DMATRIX *pMatrix) = 0;
203bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetTransform(D3DTRANSFORMSTATETYPE State, D3DMATRIX *pMatrix) = 0;
204bf215546Sopenharmony_ci	virtual HRESULT WINAPI MultiplyTransform(D3DTRANSFORMSTATETYPE State, const D3DMATRIX *pMatrix) = 0;
205bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetViewport(const D3DVIEWPORT9 *pViewport) = 0;
206bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetViewport(D3DVIEWPORT9 *pViewport) = 0;
207bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetMaterial(const D3DMATERIAL9 *pMaterial) = 0;
208bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetMaterial(D3DMATERIAL9 *pMaterial) = 0;
209bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetLight(DWORD Index, const D3DLIGHT9 *pLight) = 0;
210bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetLight(DWORD Index, D3DLIGHT9 *pLight) = 0;
211bf215546Sopenharmony_ci	virtual HRESULT WINAPI LightEnable(DWORD Index, BOOL Enable) = 0;
212bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetLightEnable(DWORD Index, BOOL *pEnable) = 0;
213bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetClipPlane(DWORD Index, const float *pPlane) = 0;
214bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetClipPlane(DWORD Index, float *pPlane) = 0;
215bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetRenderState(D3DRENDERSTATETYPE State, DWORD Value) = 0;
216bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetRenderState(D3DRENDERSTATETYPE State, DWORD *pValue) = 0;
217bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateStateBlock(D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9 **ppSB) = 0;
218bf215546Sopenharmony_ci	virtual HRESULT WINAPI BeginStateBlock() = 0;
219bf215546Sopenharmony_ci	virtual HRESULT WINAPI EndStateBlock(IDirect3DStateBlock9 **ppSB) = 0;
220bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetClipStatus(const D3DCLIPSTATUS9 *pClipStatus) = 0;
221bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetClipStatus(D3DCLIPSTATUS9 *pClipStatus) = 0;
222bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetTexture(DWORD Stage, IDirect3DBaseTexture9 **ppTexture) = 0;
223bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetTexture(DWORD Stage, IDirect3DBaseTexture9 *pTexture) = 0;
224bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetTextureStageState(DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD *pValue) = 0;
225bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetTextureStageState(DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) = 0;
226bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetSamplerState(DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD *pValue) = 0;
227bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetSamplerState(DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) = 0;
228bf215546Sopenharmony_ci	virtual HRESULT WINAPI ValidateDevice(DWORD *pNumPasses) = 0;
229bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetPaletteEntries(UINT PaletteNumber, const PALETTEENTRY *pEntries) = 0;
230bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPaletteEntries(UINT PaletteNumber, PALETTEENTRY *pEntries) = 0;
231bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetCurrentTexturePalette(UINT PaletteNumber) = 0;
232bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetCurrentTexturePalette(UINT *PaletteNumber) = 0;
233bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetScissorRect(const RECT *pRect) = 0;
234bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetScissorRect(RECT *pRect) = 0;
235bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetSoftwareVertexProcessing(BOOL bSoftware) = 0;
236bf215546Sopenharmony_ci	virtual BOOL WINAPI GetSoftwareVertexProcessing() = 0;
237bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetNPatchMode(float nSegments) = 0;
238bf215546Sopenharmony_ci	virtual float WINAPI GetNPatchMode() = 0;
239bf215546Sopenharmony_ci	virtual HRESULT WINAPI DrawPrimitive(D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) = 0;
240bf215546Sopenharmony_ci	virtual HRESULT WINAPI DrawIndexedPrimitive(D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount) = 0;
241bf215546Sopenharmony_ci	virtual HRESULT WINAPI DrawPrimitiveUP(D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride) = 0;
242bf215546Sopenharmony_ci	virtual HRESULT WINAPI DrawIndexedPrimitiveUP(D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, const void *pIndexData, D3DFORMAT IndexDataFormat, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride) = 0;
243bf215546Sopenharmony_ci	virtual HRESULT WINAPI ProcessVertices(UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9 *pDestBuffer, IDirect3DVertexDeclaration9 *pVertexDecl, DWORD Flags) = 0;
244bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateVertexDeclaration(const D3DVERTEXELEMENT9 *pVertexElements, IDirect3DVertexDeclaration9 **ppDecl) = 0;
245bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetVertexDeclaration(IDirect3DVertexDeclaration9 *pDecl) = 0;
246bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetVertexDeclaration(IDirect3DVertexDeclaration9 **ppDecl) = 0;
247bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetFVF(DWORD FVF) = 0;
248bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetFVF(DWORD *pFVF) = 0;
249bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateVertexShader(const DWORD *pFunction, IDirect3DVertexShader9 **ppShader) = 0;
250bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetVertexShader(IDirect3DVertexShader9 *pShader) = 0;
251bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetVertexShader(IDirect3DVertexShader9 **ppShader) = 0;
252bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetVertexShaderConstantF(UINT StartRegister, const float *pConstantData, UINT Vector4fCount) = 0;
253bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetVertexShaderConstantF(UINT StartRegister, float *pConstantData, UINT Vector4fCount) = 0;
254bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetVertexShaderConstantI(UINT StartRegister, const int *pConstantData, UINT Vector4iCount) = 0;
255bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetVertexShaderConstantI(UINT StartRegister, int *pConstantData, UINT Vector4iCount) = 0;
256bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetVertexShaderConstantB(UINT StartRegister, const BOOL *pConstantData, UINT BoolCount) = 0;
257bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetVertexShaderConstantB(UINT StartRegister, BOOL *pConstantData, UINT BoolCount) = 0;
258bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetStreamSource(UINT StreamNumber, IDirect3DVertexBuffer9 *pStreamData, UINT OffsetInBytes, UINT Stride) = 0;
259bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetStreamSource(UINT StreamNumber, IDirect3DVertexBuffer9 **ppStreamData, UINT *pOffsetInBytes, UINT *pStride) = 0;
260bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetStreamSourceFreq(UINT StreamNumber, UINT Setting) = 0;
261bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetStreamSourceFreq(UINT StreamNumber, UINT *pSetting) = 0;
262bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetIndices(IDirect3DIndexBuffer9 *pIndexData) = 0;
263bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetIndices(IDirect3DIndexBuffer9 **ppIndexData) = 0;
264bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreatePixelShader(const DWORD *pFunction, IDirect3DPixelShader9 **ppShader) = 0;
265bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetPixelShader(IDirect3DPixelShader9 *pShader) = 0;
266bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPixelShader(IDirect3DPixelShader9 **ppShader) = 0;
267bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetPixelShaderConstantF(UINT StartRegister, const float *pConstantData, UINT Vector4fCount) = 0;
268bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPixelShaderConstantF(UINT StartRegister, float *pConstantData, UINT Vector4fCount) = 0;
269bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetPixelShaderConstantI(UINT StartRegister, const int *pConstantData, UINT Vector4iCount) = 0;
270bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPixelShaderConstantI(UINT StartRegister, int *pConstantData, UINT Vector4iCount) = 0;
271bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetPixelShaderConstantB(UINT StartRegister, const BOOL *pConstantData, UINT BoolCount) = 0;
272bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPixelShaderConstantB(UINT StartRegister, BOOL *pConstantData, UINT BoolCount) = 0;
273bf215546Sopenharmony_ci	virtual HRESULT WINAPI DrawRectPatch(UINT Handle, const float *pNumSegs, const D3DRECTPATCH_INFO *pRectPatchInfo) = 0;
274bf215546Sopenharmony_ci	virtual HRESULT WINAPI DrawTriPatch(UINT Handle, const float *pNumSegs, const D3DTRIPATCH_INFO *pTriPatchInfo) = 0;
275bf215546Sopenharmony_ci	virtual HRESULT WINAPI DeletePatch(UINT Handle) = 0;
276bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateQuery(D3DQUERYTYPE Type, IDirect3DQuery9 **ppQuery) = 0;
277bf215546Sopenharmony_ci};
278bf215546Sopenharmony_ci
279bf215546Sopenharmony_cistruct IDirect3DDevice9Ex : public IDirect3DDevice9
280bf215546Sopenharmony_ci{
281bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetConvolutionMonoKernel(UINT width, UINT height, float *rows, float *columns) = 0;
282bf215546Sopenharmony_ci	virtual HRESULT WINAPI ComposeRects(IDirect3DSurface9 *pSrc, IDirect3DSurface9 *pDst, IDirect3DVertexBuffer9 *pSrcRectDescs, UINT NumRects, IDirect3DVertexBuffer9 *pDstRectDescs, D3DCOMPOSERECTSOP Operation, int Xoffset, int Yoffset) = 0;
283bf215546Sopenharmony_ci	virtual HRESULT WINAPI PresentEx(const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion, DWORD dwFlags) = 0;
284bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetGPUThreadPriority(INT *pPriority) = 0;
285bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetGPUThreadPriority(INT Priority) = 0;
286bf215546Sopenharmony_ci	virtual HRESULT WINAPI WaitForVBlank(UINT iSwapChain) = 0;
287bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckResourceResidency(IDirect3DResource9 **pResourceArray, UINT32 NumResources) = 0;
288bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetMaximumFrameLatency(UINT MaxLatency) = 0;
289bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetMaximumFrameLatency(UINT *pMaxLatency) = 0;
290bf215546Sopenharmony_ci	virtual HRESULT WINAPI CheckDeviceState(HWND hDestinationWindow) = 0;
291bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateRenderTargetEx(UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage) = 0;
292bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateOffscreenPlainSurfaceEx(UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage) = 0;
293bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateDepthStencilSurfaceEx(UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage) = 0;
294bf215546Sopenharmony_ci	virtual HRESULT WINAPI ResetEx(D3DPRESENT_PARAMETERS *pPresentationParameters, D3DDISPLAYMODEEX *pFullscreenDisplayMode) = 0;
295bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDisplayModeEx(UINT iSwapChain, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation) = 0;
296bf215546Sopenharmony_ci};
297bf215546Sopenharmony_ci
298bf215546Sopenharmony_cistruct IDirect3DDevice9Video : public IUnknown
299bf215546Sopenharmony_ci{
300bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetContentProtectionCaps(const GUID *pCryptoType, const GUID *pDecodeProfile, D3DCONTENTPROTECTIONCAPS *pCaps) = 0;
301bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateAuthenticatedChannel(D3DAUTHENTICATEDCHANNELTYPE ChannelType, IDirect3DAuthenticatedChannel9 **ppAuthenticatedChannel, HANDLE *pChannelHandle) = 0;
302bf215546Sopenharmony_ci	virtual HRESULT WINAPI CreateCryptoSession(const GUID *pCryptoType, const GUID *pDecodeProfile, IDirect3DCryptoSession9 **ppCryptoSession, HANDLE *pCryptoHandle) = 0;
303bf215546Sopenharmony_ci};
304bf215546Sopenharmony_ci
305bf215546Sopenharmony_cistruct IDirect3DIndexBuffer9 : public IDirect3DResource9
306bf215546Sopenharmony_ci{
307bf215546Sopenharmony_ci	virtual HRESULT WINAPI Lock(UINT OffsetToLock, UINT SizeToLock, void **ppbData, DWORD Flags) = 0;
308bf215546Sopenharmony_ci	virtual HRESULT WINAPI Unlock() = 0;
309bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDesc(D3DINDEXBUFFER_DESC *pDesc) = 0;
310bf215546Sopenharmony_ci};
311bf215546Sopenharmony_ci
312bf215546Sopenharmony_cistruct IDirect3DPixelShader9 : public IUnknown
313bf215546Sopenharmony_ci{
314bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
315bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetFunction(void *pData, UINT *pSizeOfData) = 0;
316bf215546Sopenharmony_ci};
317bf215546Sopenharmony_ci
318bf215546Sopenharmony_cistruct IDirect3DQuery9 : public IUnknown
319bf215546Sopenharmony_ci{
320bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
321bf215546Sopenharmony_ci	virtual D3DQUERYTYPE WINAPI GetType() = 0;
322bf215546Sopenharmony_ci	virtual DWORD WINAPI GetDataSize() = 0;
323bf215546Sopenharmony_ci	virtual HRESULT WINAPI Issue(DWORD dwIssueFlags) = 0;
324bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetData(void *pData, DWORD dwSize, DWORD dwGetDataFlags) = 0;
325bf215546Sopenharmony_ci};
326bf215546Sopenharmony_ci
327bf215546Sopenharmony_cistruct IDirect3DStateBlock9 : public IUnknown
328bf215546Sopenharmony_ci{
329bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
330bf215546Sopenharmony_ci	virtual HRESULT WINAPI Capture() = 0;
331bf215546Sopenharmony_ci	virtual HRESULT WINAPI Apply() = 0;
332bf215546Sopenharmony_ci};
333bf215546Sopenharmony_ci
334bf215546Sopenharmony_cistruct IDirect3DSurface9 : public IDirect3DResource9
335bf215546Sopenharmony_ci{
336bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetContainer(REFIID riid, void **ppContainer) = 0;
337bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDesc(D3DSURFACE_DESC *pDesc) = 0;
338bf215546Sopenharmony_ci	virtual HRESULT WINAPI LockRect(D3DLOCKED_RECT *pLockedRect, const RECT *pRect, DWORD Flags) = 0;
339bf215546Sopenharmony_ci	virtual HRESULT WINAPI UnlockRect() = 0;
340bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDC(HDC *phdc) = 0;
341bf215546Sopenharmony_ci	virtual HRESULT WINAPI ReleaseDC(HDC hdc) = 0;
342bf215546Sopenharmony_ci};
343bf215546Sopenharmony_ci
344bf215546Sopenharmony_cistruct IDirect3DSwapChain9 : public IUnknown
345bf215546Sopenharmony_ci{
346bf215546Sopenharmony_ci	virtual HRESULT WINAPI Present(const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion, DWORD dwFlags) = 0;
347bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetFrontBufferData(IDirect3DSurface9 *pDestSurface) = 0;
348bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetBackBuffer(UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer) = 0;
349bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetRasterStatus(D3DRASTER_STATUS *pRasterStatus) = 0;
350bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDisplayMode(D3DDISPLAYMODE *pMode) = 0;
351bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
352bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPresentParameters(D3DPRESENT_PARAMETERS *pPresentationParameters) = 0;
353bf215546Sopenharmony_ci};
354bf215546Sopenharmony_ci
355bf215546Sopenharmony_cistruct IDirect3DSwapChain9Ex : public IDirect3DSwapChain9
356bf215546Sopenharmony_ci{
357bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetLastPresentCount(UINT *pLastPresentCount) = 0;
358bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPresentStats(D3DPRESENTSTATS *pPresentationStatistics) = 0;
359bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDisplayModeEx(D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation) = 0;
360bf215546Sopenharmony_ci};
361bf215546Sopenharmony_ci
362bf215546Sopenharmony_cistruct IDirect3DTexture9 : public IDirect3DBaseTexture9
363bf215546Sopenharmony_ci{
364bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetLevelDesc(UINT Level, D3DSURFACE_DESC *pDesc) = 0;
365bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetSurfaceLevel(UINT Level, IDirect3DSurface9 **ppSurfaceLevel) = 0;
366bf215546Sopenharmony_ci	virtual HRESULT WINAPI LockRect(UINT Level, D3DLOCKED_RECT *pLockedRect, const RECT *pRect, DWORD Flags) = 0;
367bf215546Sopenharmony_ci	virtual HRESULT WINAPI UnlockRect(UINT Level) = 0;
368bf215546Sopenharmony_ci	virtual HRESULT WINAPI AddDirtyRect(const RECT *pDirtyRect) = 0;
369bf215546Sopenharmony_ci};
370bf215546Sopenharmony_ci
371bf215546Sopenharmony_cistruct IDirect3DVertexBuffer9 : public IDirect3DResource9
372bf215546Sopenharmony_ci{
373bf215546Sopenharmony_ci	virtual HRESULT WINAPI Lock(UINT OffsetToLock, UINT SizeToLock, void **ppbData, DWORD Flags) = 0;
374bf215546Sopenharmony_ci	virtual HRESULT WINAPI Unlock() = 0;
375bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDesc(D3DVERTEXBUFFER_DESC *pDesc) = 0;
376bf215546Sopenharmony_ci};
377bf215546Sopenharmony_ci
378bf215546Sopenharmony_cistruct IDirect3DVertexDeclaration9 : public IUnknown
379bf215546Sopenharmony_ci{
380bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
381bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDeclaration(D3DVERTEXELEMENT9 *pElement, UINT *pNumElements) = 0;
382bf215546Sopenharmony_ci};
383bf215546Sopenharmony_ci
384bf215546Sopenharmony_cistruct IDirect3DVertexShader9 : public IUnknown
385bf215546Sopenharmony_ci{
386bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
387bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetFunction(void *pData, UINT *pSizeOfData) = 0;
388bf215546Sopenharmony_ci};
389bf215546Sopenharmony_ci
390bf215546Sopenharmony_cistruct IDirect3DVolume9 : public IUnknown
391bf215546Sopenharmony_ci{
392bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDevice(IDirect3DDevice9 **ppDevice) = 0;
393bf215546Sopenharmony_ci	virtual HRESULT WINAPI SetPrivateData(REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags) = 0;
394bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetPrivateData(REFGUID refguid, void *pData, DWORD *pSizeOfData) = 0;
395bf215546Sopenharmony_ci	virtual HRESULT WINAPI FreePrivateData(REFGUID refguid) = 0;
396bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetContainer(REFIID riid, void **ppContainer) = 0;
397bf215546Sopenharmony_ci	virtual HRESULT WINAPI GetDesc(D3DVOLUME_DESC *pDesc) = 0;
398bf215546Sopenharmony_ci	virtual HRESULT WINAPI LockBox(D3DLOCKED_BOX *pLockedVolume, const D3DBOX *pBox, DWORD Flags) = 0;
399bf215546Sopenharmony_ci	virtual HRESULT WINAPI UnlockBox() = 0;
400bf215546Sopenharmony_ci};
401bf215546Sopenharmony_ci
402bf215546Sopenharmony_cistruct IDirect3DVolumeTexture9 : public IDirect3DBaseTexture9
403bf215546Sopenharmony_ci{
404bf215546Sopenharmony_ci    virtual HRESULT WINAPI GetLevelDesc(UINT Level, D3DVOLUME_DESC *pDesc) = 0;
405bf215546Sopenharmony_ci    virtual HRESULT WINAPI GetVolumeLevel(UINT Level, IDirect3DVolume9 **ppVolumeLevel) = 0;
406bf215546Sopenharmony_ci    virtual HRESULT WINAPI LockBox(UINT Level, D3DLOCKED_BOX *pLockedVolume, const D3DBOX *pBox, DWORD Flags) = 0;
407bf215546Sopenharmony_ci    virtual HRESULT WINAPI UnlockBox(UINT Level) = 0;
408bf215546Sopenharmony_ci    virtual HRESULT WINAPI AddDirtyBox(const D3DBOX *pDirtyBox) = 0;
409bf215546Sopenharmony_ci};
410bf215546Sopenharmony_ci
411bf215546Sopenharmony_ci
412bf215546Sopenharmony_ci#else /* __cplusplus */
413bf215546Sopenharmony_ci
414bf215546Sopenharmony_ciextern const GUID IID_IDirect3D9;
415bf215546Sopenharmony_ciextern const GUID IID_IDirect3D9Ex;
416bf215546Sopenharmony_ciextern const GUID IID_IDirect3D9ExOverlayExtension;
417bf215546Sopenharmony_ciextern const GUID IID_IDirect3DAuthenticatedChannel9;
418bf215546Sopenharmony_ciextern const GUID IID_IDirect3DBaseTexture9;
419bf215546Sopenharmony_ciextern const GUID IID_IDirect3DCryptoSession9;
420bf215546Sopenharmony_ciextern const GUID IID_IDirect3DCubeTexture9;
421bf215546Sopenharmony_ciextern const GUID IID_IDirect3DDevice9;
422bf215546Sopenharmony_ciextern const GUID IID_IDirect3DDevice9Ex;
423bf215546Sopenharmony_ciextern const GUID IID_IDirect3DDevice9Video;
424bf215546Sopenharmony_ciextern const GUID IID_IDirect3DIndexBuffer9;
425bf215546Sopenharmony_ciextern const GUID IID_IDirect3DPixelShader9;
426bf215546Sopenharmony_ciextern const GUID IID_IDirect3DQuery9;
427bf215546Sopenharmony_ciextern const GUID IID_IDirect3DResource9;
428bf215546Sopenharmony_ciextern const GUID IID_IDirect3DStateBlock9;
429bf215546Sopenharmony_ciextern const GUID IID_IDirect3DSurface9;
430bf215546Sopenharmony_ciextern const GUID IID_IDirect3DSwapChain9;
431bf215546Sopenharmony_ciextern const GUID IID_IDirect3DSwapChain9Ex;
432bf215546Sopenharmony_ciextern const GUID IID_IDirect3DTexture9;
433bf215546Sopenharmony_ciextern const GUID IID_IDirect3DVertexBuffer9;
434bf215546Sopenharmony_ciextern const GUID IID_IDirect3DVertexDeclaration9;
435bf215546Sopenharmony_ciextern const GUID IID_IDirect3DVertexShader9;
436bf215546Sopenharmony_ciextern const GUID IID_IDirect3DVolume9;
437bf215546Sopenharmony_ciextern const GUID IID_IDirect3DVolumeTexture9;
438bf215546Sopenharmony_ci
439bf215546Sopenharmony_citypedef struct IDirect3D9Vtbl
440bf215546Sopenharmony_ci{
441bf215546Sopenharmony_ci	/* IUnknown */
442bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3D9 *This, REFIID riid, void **ppvObject);
443bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3D9 *This);
444bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3D9 *This);
445bf215546Sopenharmony_ci	/* IDirect3D9 */
446bf215546Sopenharmony_ci	HRESULT (WINAPI *RegisterSoftwareDevice)(IDirect3D9 *This, void *pInitializeFunction);
447bf215546Sopenharmony_ci	UINT (WINAPI *GetAdapterCount)(IDirect3D9 *This);
448bf215546Sopenharmony_ci	HRESULT (WINAPI *GetAdapterIdentifier)(IDirect3D9 *This, UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9 *pIdentifier);
449bf215546Sopenharmony_ci	UINT (WINAPI *GetAdapterModeCount)(IDirect3D9 *This, UINT Adapter, D3DFORMAT Format);
450bf215546Sopenharmony_ci	HRESULT (WINAPI *EnumAdapterModes)(IDirect3D9 *This, UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE *pMode);
451bf215546Sopenharmony_ci	HRESULT (WINAPI *GetAdapterDisplayMode)(IDirect3D9 *This, UINT Adapter, D3DDISPLAYMODE *pMode);
452bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceType)(IDirect3D9 *This, UINT Adapter, D3DDEVTYPE DevType, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed);
453bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceFormat)(IDirect3D9 *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat);
454bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceMultiSampleType)(IDirect3D9 *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD *pQualityLevels);
455bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDepthStencilMatch)(IDirect3D9 *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat);
456bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceFormatConversion)(IDirect3D9 *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat);
457bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDeviceCaps)(IDirect3D9 *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9 *pCaps);
458bf215546Sopenharmony_ci	HMONITOR (WINAPI *GetAdapterMonitor)(IDirect3D9 *This, UINT Adapter);
459bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateDevice)(IDirect3D9 *This, UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DDevice9 **ppReturnedDeviceInterface);
460bf215546Sopenharmony_ci} IDirect3D9Vtbl;
461bf215546Sopenharmony_cistruct IDirect3D9
462bf215546Sopenharmony_ci{
463bf215546Sopenharmony_ci	IDirect3D9Vtbl *lpVtbl;
464bf215546Sopenharmony_ci};
465bf215546Sopenharmony_ci
466bf215546Sopenharmony_ci/* IUnknown macros */
467bf215546Sopenharmony_ci#define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
468bf215546Sopenharmony_ci#define IDirect3D9_AddRef(p) (p)->lpVtbl->AddRef(p)
469bf215546Sopenharmony_ci#define IDirect3D9_Release(p) (p)->lpVtbl->Release(p)
470bf215546Sopenharmony_ci/* IDirect3D9 macros */
471bf215546Sopenharmony_ci#define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
472bf215546Sopenharmony_ci#define IDirect3D9_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
473bf215546Sopenharmony_ci#define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
474bf215546Sopenharmony_ci#define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
475bf215546Sopenharmony_ci#define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
476bf215546Sopenharmony_ci#define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
477bf215546Sopenharmony_ci#define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
478bf215546Sopenharmony_ci#define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
479bf215546Sopenharmony_ci#define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
480bf215546Sopenharmony_ci#define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
481bf215546Sopenharmony_ci#define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
482bf215546Sopenharmony_ci#define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
483bf215546Sopenharmony_ci#define IDirect3D9_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
484bf215546Sopenharmony_ci#define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
485bf215546Sopenharmony_ci
486bf215546Sopenharmony_citypedef struct IDirect3D9ExVtbl
487bf215546Sopenharmony_ci{
488bf215546Sopenharmony_ci	/* IUnknown */
489bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3D9Ex *This, REFIID riid, void **ppvObject);
490bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3D9Ex *This);
491bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3D9Ex *This);
492bf215546Sopenharmony_ci	/* IDirect3D9 */
493bf215546Sopenharmony_ci	HRESULT (WINAPI *RegisterSoftwareDevice)(IDirect3D9Ex *This, void *pInitializeFunction);
494bf215546Sopenharmony_ci	UINT (WINAPI *GetAdapterCount)(IDirect3D9Ex *This);
495bf215546Sopenharmony_ci	HRESULT (WINAPI *GetAdapterIdentifier)(IDirect3D9Ex *This, UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9 *pIdentifier);
496bf215546Sopenharmony_ci	UINT (WINAPI *GetAdapterModeCount)(IDirect3D9Ex *This, UINT Adapter, D3DFORMAT Format);
497bf215546Sopenharmony_ci	HRESULT (WINAPI *EnumAdapterModes)(IDirect3D9Ex *This, UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE *pMode);
498bf215546Sopenharmony_ci	HRESULT (WINAPI *GetAdapterDisplayMode)(IDirect3D9Ex *This, UINT Adapter, D3DDISPLAYMODE *pMode);
499bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceType)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DevType, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed);
500bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceFormat)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat);
501bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceMultiSampleType)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD *pQualityLevels);
502bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDepthStencilMatch)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat);
503bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceFormatConversion)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat);
504bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDeviceCaps)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9 *pCaps);
505bf215546Sopenharmony_ci	HMONITOR (WINAPI *GetAdapterMonitor)(IDirect3D9Ex *This, UINT Adapter);
506bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateDevice)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DDevice9 **ppReturnedDeviceInterface);
507bf215546Sopenharmony_ci	/* IDirect3D9Ex */
508bf215546Sopenharmony_ci	UINT (WINAPI *GetAdapterModeCountEx)(IDirect3D9Ex *This, UINT Adapter, const D3DDISPLAYMODEFILTER *pFilter);
509bf215546Sopenharmony_ci	HRESULT (WINAPI *EnumAdapterModesEx)(IDirect3D9Ex *This, UINT Adapter, const D3DDISPLAYMODEFILTER *pFilter, UINT Mode, D3DDISPLAYMODEEX *pMode);
510bf215546Sopenharmony_ci	HRESULT (WINAPI *GetAdapterDisplayModeEx)(IDirect3D9Ex *This, UINT Adapter, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation);
511bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateDeviceEx)(IDirect3D9Ex *This, UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS *pPresentationParameters, D3DDISPLAYMODEEX *pFullscreenDisplayMode, IDirect3DDevice9Ex **ppReturnedDeviceInterface);
512bf215546Sopenharmony_ci	HRESULT (WINAPI *GetAdapterLUID)(IDirect3D9Ex *This, UINT Adapter, LUID *pLUID);
513bf215546Sopenharmony_ci} IDirect3D9ExVtbl;
514bf215546Sopenharmony_cistruct IDirect3D9Ex
515bf215546Sopenharmony_ci{
516bf215546Sopenharmony_ci	IDirect3D9ExVtbl *lpVtbl;
517bf215546Sopenharmony_ci};
518bf215546Sopenharmony_ci
519bf215546Sopenharmony_ci/* IUnknown macros */
520bf215546Sopenharmony_ci#define IDirect3D9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
521bf215546Sopenharmony_ci#define IDirect3D9Ex_AddRef(p) (p)->lpVtbl->AddRef(p)
522bf215546Sopenharmony_ci#define IDirect3D9Ex_Release(p) (p)->lpVtbl->Release(p)
523bf215546Sopenharmony_ci/* IDirect3D9 macros */
524bf215546Sopenharmony_ci#define IDirect3D9Ex_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
525bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
526bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
527bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
528bf215546Sopenharmony_ci#define IDirect3D9Ex_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
529bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
530bf215546Sopenharmony_ci#define IDirect3D9Ex_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
531bf215546Sopenharmony_ci#define IDirect3D9Ex_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
532bf215546Sopenharmony_ci#define IDirect3D9Ex_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
533bf215546Sopenharmony_ci#define IDirect3D9Ex_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
534bf215546Sopenharmony_ci#define IDirect3D9Ex_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
535bf215546Sopenharmony_ci#define IDirect3D9Ex_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
536bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
537bf215546Sopenharmony_ci#define IDirect3D9Ex_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
538bf215546Sopenharmony_ci/* IDirect3D9Ex macros */
539bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterModeCountEx(p,a,b) (p)->lpVtbl->GetAdapterModeCountEx(p,a,b)
540bf215546Sopenharmony_ci#define IDirect3D9Ex_EnumAdapterModesEx(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModesEx(p,a,b,c,d)
541bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterDisplayModeEx(p,a,b,c) (p)->lpVtbl->GetAdapterDisplayModeEx(p,a,b,c)
542bf215546Sopenharmony_ci#define IDirect3D9Ex_CreateDeviceEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d,e,f,g)
543bf215546Sopenharmony_ci#define IDirect3D9Ex_GetAdapterLUID(p,a,b) (p)->lpVtbl->GetAdapterLUID(p,a,b)
544bf215546Sopenharmony_ci
545bf215546Sopenharmony_citypedef struct IDirect3D9ExOverlayExtensionVtbl
546bf215546Sopenharmony_ci{
547bf215546Sopenharmony_ci	/* IUnknown */
548bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3D9ExOverlayExtension *This, REFIID riid, void **ppvObject);
549bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3D9ExOverlayExtension *This);
550bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3D9ExOverlayExtension *This);
551bf215546Sopenharmony_ci	/* IDirect3D9ExOverlayExtension */
552bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceOverlayType)(IDirect3D9ExOverlayExtension *This, UINT Adapter, D3DDEVTYPE DevType, UINT OverlayWidth, UINT OverlayHeight, D3DFORMAT OverlayFormat, D3DDISPLAYMODEEX *pDisplayMode, D3DDISPLAYROTATION DisplayRotation, D3DOVERLAYCAPS *pOverlayCaps);
553bf215546Sopenharmony_ci} IDirect3D9ExOverlayExtensionVtbl;
554bf215546Sopenharmony_cistruct IDirect3D9ExOverlayExtension
555bf215546Sopenharmony_ci{
556bf215546Sopenharmony_ci	IDirect3D9ExOverlayExtensionVtbl *lpVtbl;
557bf215546Sopenharmony_ci};
558bf215546Sopenharmony_ci
559bf215546Sopenharmony_ci/* IUnknown macros */
560bf215546Sopenharmony_ci#define IDirect3D9ExOverlayExtension_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
561bf215546Sopenharmony_ci#define IDirect3D9ExOverlayExtension_AddRef(p) (p)->lpVtbl->AddRef(p)
562bf215546Sopenharmony_ci#define IDirect3D9ExOverlayExtension_Release(p) (p)->lpVtbl->Release(p)
563bf215546Sopenharmony_ci/* IDirect3D9ExOverlayExtension macros */
564bf215546Sopenharmony_ci#define IDirect3D9ExOverlayExtension_CheckDeviceOverlayType(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CheckDeviceOverlayType(p,a,b,c,d,e,f,g,h)
565bf215546Sopenharmony_ci
566bf215546Sopenharmony_citypedef struct IDirect3DAuthenticatedChannel9Vtbl
567bf215546Sopenharmony_ci{
568bf215546Sopenharmony_ci	/* IUnknown */
569bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DAuthenticatedChannel9 *This, REFIID riid, void **ppvObject);
570bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DAuthenticatedChannel9 *This);
571bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DAuthenticatedChannel9 *This);
572bf215546Sopenharmony_ci	/* IDirect3DAuthenticatedChannel9 */
573bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCertificateSize)(IDirect3DAuthenticatedChannel9 *This, UINT *pCertificateSize);
574bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCertificate)(IDirect3DAuthenticatedChannel9 *This, UINT CertifacteSize, BYTE *ppCertificate);
575bf215546Sopenharmony_ci	HRESULT (WINAPI *NegotiateKeyExchange)(IDirect3DAuthenticatedChannel9 *This, UINT DataSize, void *pData);
576bf215546Sopenharmony_ci	HRESULT (WINAPI *Query)(IDirect3DAuthenticatedChannel9 *This, UINT InputSize, const void *pInput, UINT OutputSize, void *pOutput);
577bf215546Sopenharmony_ci	HRESULT (WINAPI *Configure)(IDirect3DAuthenticatedChannel9 *This, UINT InputSize, const void *pInput, D3DAUTHENTICATEDCHANNEL_CONFIGURE_OUTPUT *pOutput);
578bf215546Sopenharmony_ci} IDirect3DAuthenticatedChannel9Vtbl;
579bf215546Sopenharmony_cistruct IDirect3DAuthenticatedChannel9
580bf215546Sopenharmony_ci{
581bf215546Sopenharmony_ci	IDirect3DAuthenticatedChannel9Vtbl *lpVtbl;
582bf215546Sopenharmony_ci};
583bf215546Sopenharmony_ci
584bf215546Sopenharmony_ci/* IUnknown macros */
585bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
586bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_AddRef(p) (p)->lpVtbl->AddRef(p)
587bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_Release(p) (p)->lpVtbl->Release(p)
588bf215546Sopenharmony_ci/* IDirect3DAuthenticatedChannel9 macros */
589bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_GetCertificateSize(p,a) (p)->lpVtbl->GetCertificateSize(p,a)
590bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_GetCertificate(p,a,b) (p)->lpVtbl->GetCertificate(p,a,b)
591bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_NegotiateKeyExchange(p,a,b) (p)->lpVtbl->NegotiateKeyExchange(p,a,b)
592bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_Query(p,a,b,c,d) (p)->lpVtbl->Query(p,a,b,c,d)
593bf215546Sopenharmony_ci#define IDirect3DAuthenticatedChannel9_Configure(p,a,b,c) (p)->lpVtbl->Configure(p,a,b,c)
594bf215546Sopenharmony_ci
595bf215546Sopenharmony_citypedef struct IDirect3DBaseTexture9Vtbl
596bf215546Sopenharmony_ci{
597bf215546Sopenharmony_ci	/* IUnknown */
598bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DBaseTexture9 *This, REFIID riid, void **ppvObject);
599bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DBaseTexture9 *This);
600bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DBaseTexture9 *This);
601bf215546Sopenharmony_ci	/* IDirect3DResource9 */
602bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DBaseTexture9 *This, IDirect3DDevice9 **ppDevice);
603bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DBaseTexture9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
604bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DBaseTexture9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
605bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DBaseTexture9 *This, REFGUID refguid);
606bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DBaseTexture9 *This, DWORD PriorityNew);
607bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DBaseTexture9 *This);
608bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DBaseTexture9 *This);
609bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DBaseTexture9 *This);
610bf215546Sopenharmony_ci	/* IDirect3DBaseTexture9 */
611bf215546Sopenharmony_ci	DWORD (WINAPI *SetLOD)(IDirect3DBaseTexture9 *This, DWORD LODNew);
612bf215546Sopenharmony_ci	DWORD (WINAPI *GetLOD)(IDirect3DBaseTexture9 *This);
613bf215546Sopenharmony_ci	DWORD (WINAPI *GetLevelCount)(IDirect3DBaseTexture9 *This);
614bf215546Sopenharmony_ci	HRESULT (WINAPI *SetAutoGenFilterType)(IDirect3DBaseTexture9 *This, D3DTEXTUREFILTERTYPE FilterType);
615bf215546Sopenharmony_ci	D3DTEXTUREFILTERTYPE (WINAPI *GetAutoGenFilterType)(IDirect3DBaseTexture9 *This);
616bf215546Sopenharmony_ci	void (WINAPI *GenerateMipSubLevels)(IDirect3DBaseTexture9 *This);
617bf215546Sopenharmony_ci} IDirect3DBaseTexture9Vtbl;
618bf215546Sopenharmony_cistruct IDirect3DBaseTexture9
619bf215546Sopenharmony_ci{
620bf215546Sopenharmony_ci	IDirect3DBaseTexture9Vtbl *lpVtbl;
621bf215546Sopenharmony_ci};
622bf215546Sopenharmony_ci
623bf215546Sopenharmony_ci/* IUnknown macros */
624bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
625bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
626bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_Release(p) (p)->lpVtbl->Release(p)
627bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
628bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
629bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
630bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
631bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
632bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
633bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
634bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
635bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GetType(p) (p)->lpVtbl->GetType(p)
636bf215546Sopenharmony_ci/* IDirect3DBaseTexture9 macros */
637bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
638bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
639bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
640bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
641bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
642bf215546Sopenharmony_ci#define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
643bf215546Sopenharmony_ci
644bf215546Sopenharmony_citypedef struct IDirect3DCryptoSession9Vtbl
645bf215546Sopenharmony_ci{
646bf215546Sopenharmony_ci	/* IUnknown */
647bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DCryptoSession9 *This, REFIID riid, void **ppvObject);
648bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DCryptoSession9 *This);
649bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DCryptoSession9 *This);
650bf215546Sopenharmony_ci	/* IDirect3DCryptoSession9 */
651bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCertificateSize)(IDirect3DCryptoSession9 *This, UINT *pCertificateSize);
652bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCertificate)(IDirect3DCryptoSession9 *This, UINT CertifacteSize, BYTE *ppCertificate);
653bf215546Sopenharmony_ci	HRESULT (WINAPI *NegotiateKeyExchange)(IDirect3DCryptoSession9 *This, UINT DataSize, void *pData);
654bf215546Sopenharmony_ci	HRESULT (WINAPI *EncryptionBlt)(IDirect3DCryptoSession9 *This, IDirect3DSurface9 *pSrcSurface, IDirect3DSurface9 *pDstSurface, UINT DstSurfaceSize, void *pIV);
655bf215546Sopenharmony_ci	HRESULT (WINAPI *DecryptionBlt)(IDirect3DCryptoSession9 *This, IDirect3DSurface9 *pSrcSurface, IDirect3DSurface9 *pDstSurface, UINT SrcSurfaceSize, D3DENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo, void *pContentKey, void *pIV);
656bf215546Sopenharmony_ci	HRESULT (WINAPI *GetSurfacePitch)(IDirect3DCryptoSession9 *This, IDirect3DSurface9 *pSrcSurface, UINT *pSurfacePitch);
657bf215546Sopenharmony_ci	HRESULT (WINAPI *StartSessionKeyRefresh)(IDirect3DCryptoSession9 *This, void *pRandomNumber, UINT RandomNumberSize);
658bf215546Sopenharmony_ci	HRESULT (WINAPI *FinishSessionKeyRefresh)(IDirect3DCryptoSession9 *This);
659bf215546Sopenharmony_ci	HRESULT (WINAPI *GetEncryptionBltKey)(IDirect3DCryptoSession9 *This, void *pReadbackKey, UINT KeySize);
660bf215546Sopenharmony_ci} IDirect3DCryptoSession9Vtbl;
661bf215546Sopenharmony_cistruct IDirect3DCryptoSession9
662bf215546Sopenharmony_ci{
663bf215546Sopenharmony_ci	IDirect3DCryptoSession9Vtbl *lpVtbl;
664bf215546Sopenharmony_ci};
665bf215546Sopenharmony_ci
666bf215546Sopenharmony_ci/* IUnknown macros */
667bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
668bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_AddRef(p) (p)->lpVtbl->AddRef(p)
669bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_Release(p) (p)->lpVtbl->Release(p)
670bf215546Sopenharmony_ci/* IDirect3DCryptoSession9 macros */
671bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_GetCertificateSize(p,a) (p)->lpVtbl->GetCertificateSize(p,a)
672bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_GetCertificate(p,a,b) (p)->lpVtbl->GetCertificate(p,a,b)
673bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_NegotiateKeyExchange(p,a,b) (p)->lpVtbl->NegotiateKeyExchange(p,a,b)
674bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_EncryptionBlt(p,a,b,c,d) (p)->lpVtbl->EncryptionBlt(p,a,b,c,d)
675bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_DecryptionBlt(p,a,b,c,d,e,f) (p)->lpVtbl->DecryptionBlt(p,a,b,c,d,e,f)
676bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_GetSurfacePitch(p,a,b) (p)->lpVtbl->GetSurfacePitch(p,a,b)
677bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_StartSessionKeyRefresh(p,a,b) (p)->lpVtbl->StartSessionKeyRefresh(p,a,b)
678bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_FinishSessionKeyRefresh(p) (p)->lpVtbl->FinishSessionKeyRefresh(p)
679bf215546Sopenharmony_ci#define IDirect3DCryptoSession9_GetEncryptionBltKey(p,a,b) (p)->lpVtbl->GetEncryptionBltKey(p,a,b)
680bf215546Sopenharmony_ci
681bf215546Sopenharmony_citypedef struct IDirect3DCubeTexture9Vtbl
682bf215546Sopenharmony_ci{
683bf215546Sopenharmony_ci	/* IUnknown */
684bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DCubeTexture9 *This, REFIID riid, void **ppvObject);
685bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DCubeTexture9 *This);
686bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DCubeTexture9 *This);
687bf215546Sopenharmony_ci	/* IDirect3DResource9 */
688bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DCubeTexture9 *This, IDirect3DDevice9 **ppDevice);
689bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DCubeTexture9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
690bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DCubeTexture9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
691bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DCubeTexture9 *This, REFGUID refguid);
692bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DCubeTexture9 *This, DWORD PriorityNew);
693bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DCubeTexture9 *This);
694bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DCubeTexture9 *This);
695bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DCubeTexture9 *This);
696bf215546Sopenharmony_ci	/* IDirect3DBaseTexture9 */
697bf215546Sopenharmony_ci	DWORD (WINAPI *SetLOD)(IDirect3DCubeTexture9 *This, DWORD LODNew);
698bf215546Sopenharmony_ci	DWORD (WINAPI *GetLOD)(IDirect3DCubeTexture9 *This);
699bf215546Sopenharmony_ci	DWORD (WINAPI *GetLevelCount)(IDirect3DCubeTexture9 *This);
700bf215546Sopenharmony_ci	HRESULT (WINAPI *SetAutoGenFilterType)(IDirect3DCubeTexture9 *This, D3DTEXTUREFILTERTYPE FilterType);
701bf215546Sopenharmony_ci	D3DTEXTUREFILTERTYPE (WINAPI *GetAutoGenFilterType)(IDirect3DCubeTexture9 *This);
702bf215546Sopenharmony_ci	void (WINAPI *GenerateMipSubLevels)(IDirect3DCubeTexture9 *This);
703bf215546Sopenharmony_ci	/* IDirect3DCubeTexture9 */
704bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLevelDesc)(IDirect3DCubeTexture9 *This, UINT Level, D3DSURFACE_DESC *pDesc);
705bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCubeMapSurface)(IDirect3DCubeTexture9 *This, D3DCUBEMAP_FACES FaceType, UINT Level, IDirect3DSurface9 **ppCubeMapSurface);
706bf215546Sopenharmony_ci	HRESULT (WINAPI *LockRect)(IDirect3DCubeTexture9 *This, D3DCUBEMAP_FACES FaceType, UINT Level, D3DLOCKED_RECT *pLockedRect, const RECT *pRect, DWORD Flags);
707bf215546Sopenharmony_ci	HRESULT (WINAPI *UnlockRect)(IDirect3DCubeTexture9 *This, D3DCUBEMAP_FACES FaceType, UINT Level);
708bf215546Sopenharmony_ci	HRESULT (WINAPI *AddDirtyRect)(IDirect3DCubeTexture9 *This, D3DCUBEMAP_FACES FaceType, const RECT *pDirtyRect);
709bf215546Sopenharmony_ci} IDirect3DCubeTexture9Vtbl;
710bf215546Sopenharmony_cistruct IDirect3DCubeTexture9
711bf215546Sopenharmony_ci{
712bf215546Sopenharmony_ci	IDirect3DCubeTexture9Vtbl *lpVtbl;
713bf215546Sopenharmony_ci};
714bf215546Sopenharmony_ci
715bf215546Sopenharmony_ci/* IUnknown macros */
716bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
717bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
718bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_Release(p) (p)->lpVtbl->Release(p)
719bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
720bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
721bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
722bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
723bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
724bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
725bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
726bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
727bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
728bf215546Sopenharmony_ci/* IDirect3DBaseTexture9 macros */
729bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
730bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
731bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
732bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
733bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
734bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
735bf215546Sopenharmony_ci/* IDirect3DCubeTexture9 macros */
736bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
737bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
738bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
739bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
740bf215546Sopenharmony_ci#define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
741bf215546Sopenharmony_ci
742bf215546Sopenharmony_citypedef struct IDirect3DDevice9Vtbl
743bf215546Sopenharmony_ci{
744bf215546Sopenharmony_ci	/* IUnknown */
745bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DDevice9 *This, REFIID riid, void **ppvObject);
746bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DDevice9 *This);
747bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DDevice9 *This);
748bf215546Sopenharmony_ci	/* IDirect3DDevice9 */
749bf215546Sopenharmony_ci	HRESULT (WINAPI *TestCooperativeLevel)(IDirect3DDevice9 *This);
750bf215546Sopenharmony_ci	UINT (WINAPI *GetAvailableTextureMem)(IDirect3DDevice9 *This);
751bf215546Sopenharmony_ci	HRESULT (WINAPI *EvictManagedResources)(IDirect3DDevice9 *This);
752bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDirect3D)(IDirect3DDevice9 *This, IDirect3D9 **ppD3D9);
753bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDeviceCaps)(IDirect3DDevice9 *This, D3DCAPS9 *pCaps);
754bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDisplayMode)(IDirect3DDevice9 *This, UINT iSwapChain, D3DDISPLAYMODE *pMode);
755bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCreationParameters)(IDirect3DDevice9 *This, D3DDEVICE_CREATION_PARAMETERS *pParameters);
756bf215546Sopenharmony_ci	HRESULT (WINAPI *SetCursorProperties)(IDirect3DDevice9 *This, UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9 *pCursorBitmap);
757bf215546Sopenharmony_ci	void (WINAPI *SetCursorPosition)(IDirect3DDevice9 *This, int X, int Y, DWORD Flags);
758bf215546Sopenharmony_ci	BOOL (WINAPI *ShowCursor)(IDirect3DDevice9 *This, BOOL bShow);
759bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateAdditionalSwapChain)(IDirect3DDevice9 *This, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DSwapChain9 **pSwapChain);
760bf215546Sopenharmony_ci	HRESULT (WINAPI *GetSwapChain)(IDirect3DDevice9 *This, UINT iSwapChain, IDirect3DSwapChain9 **pSwapChain);
761bf215546Sopenharmony_ci	UINT (WINAPI *GetNumberOfSwapChains)(IDirect3DDevice9 *This);
762bf215546Sopenharmony_ci	HRESULT (WINAPI *Reset)(IDirect3DDevice9 *This, D3DPRESENT_PARAMETERS *pPresentationParameters);
763bf215546Sopenharmony_ci	HRESULT (WINAPI *Present)(IDirect3DDevice9 *This, const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion);
764bf215546Sopenharmony_ci	HRESULT (WINAPI *GetBackBuffer)(IDirect3DDevice9 *This, UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer);
765bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRasterStatus)(IDirect3DDevice9 *This, UINT iSwapChain, D3DRASTER_STATUS *pRasterStatus);
766bf215546Sopenharmony_ci	HRESULT (WINAPI *SetDialogBoxMode)(IDirect3DDevice9 *This, BOOL bEnableDialogs);
767bf215546Sopenharmony_ci	void (WINAPI *SetGammaRamp)(IDirect3DDevice9 *This, UINT iSwapChain, DWORD Flags, const D3DGAMMARAMP *pRamp);
768bf215546Sopenharmony_ci	void (WINAPI *GetGammaRamp)(IDirect3DDevice9 *This, UINT iSwapChain, D3DGAMMARAMP *pRamp);
769bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateTexture)(IDirect3DDevice9 *This, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9 **ppTexture, HANDLE *pSharedHandle);
770bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVolumeTexture)(IDirect3DDevice9 *This, UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9 **ppVolumeTexture, HANDLE *pSharedHandle);
771bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateCubeTexture)(IDirect3DDevice9 *This, UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9 **ppCubeTexture, HANDLE *pSharedHandle);
772bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVertexBuffer)(IDirect3DDevice9 *This, UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9 **ppVertexBuffer, HANDLE *pSharedHandle);
773bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateIndexBuffer)(IDirect3DDevice9 *This, UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9 **ppIndexBuffer, HANDLE *pSharedHandle);
774bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateRenderTarget)(IDirect3DDevice9 *This, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle);
775bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateDepthStencilSurface)(IDirect3DDevice9 *This, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle);
776bf215546Sopenharmony_ci	HRESULT (WINAPI *UpdateSurface)(IDirect3DDevice9 *This, IDirect3DSurface9 *pSourceSurface, const RECT *pSourceRect, IDirect3DSurface9 *pDestinationSurface, const POINT *pDestPoint);
777bf215546Sopenharmony_ci	HRESULT (WINAPI *UpdateTexture)(IDirect3DDevice9 *This, IDirect3DBaseTexture9 *pSourceTexture, IDirect3DBaseTexture9 *pDestinationTexture);
778bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRenderTargetData)(IDirect3DDevice9 *This, IDirect3DSurface9 *pRenderTarget, IDirect3DSurface9 *pDestSurface);
779bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFrontBufferData)(IDirect3DDevice9 *This, UINT iSwapChain, IDirect3DSurface9 *pDestSurface);
780bf215546Sopenharmony_ci	HRESULT (WINAPI *StretchRect)(IDirect3DDevice9 *This, IDirect3DSurface9 *pSourceSurface, const RECT *pSourceRect, IDirect3DSurface9 *pDestSurface, const RECT *pDestRect, D3DTEXTUREFILTERTYPE Filter);
781bf215546Sopenharmony_ci	HRESULT (WINAPI *ColorFill)(IDirect3DDevice9 *This, IDirect3DSurface9 *pSurface, const RECT *pRect, D3DCOLOR color);
782bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateOffscreenPlainSurface)(IDirect3DDevice9 *This, UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle);
783bf215546Sopenharmony_ci	HRESULT (WINAPI *SetRenderTarget)(IDirect3DDevice9 *This, DWORD RenderTargetIndex, IDirect3DSurface9 *pRenderTarget);
784bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRenderTarget)(IDirect3DDevice9 *This, DWORD RenderTargetIndex, IDirect3DSurface9 **ppRenderTarget);
785bf215546Sopenharmony_ci	HRESULT (WINAPI *SetDepthStencilSurface)(IDirect3DDevice9 *This, IDirect3DSurface9 *pNewZStencil);
786bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDepthStencilSurface)(IDirect3DDevice9 *This, IDirect3DSurface9 **ppZStencilSurface);
787bf215546Sopenharmony_ci	HRESULT (WINAPI *BeginScene)(IDirect3DDevice9 *This);
788bf215546Sopenharmony_ci	HRESULT (WINAPI *EndScene)(IDirect3DDevice9 *This);
789bf215546Sopenharmony_ci	HRESULT (WINAPI *Clear)(IDirect3DDevice9 *This, DWORD Count, const D3DRECT *pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil);
790bf215546Sopenharmony_ci	HRESULT (WINAPI *SetTransform)(IDirect3DDevice9 *This, D3DTRANSFORMSTATETYPE State, const D3DMATRIX *pMatrix);
791bf215546Sopenharmony_ci	HRESULT (WINAPI *GetTransform)(IDirect3DDevice9 *This, D3DTRANSFORMSTATETYPE State, D3DMATRIX *pMatrix);
792bf215546Sopenharmony_ci	HRESULT (WINAPI *MultiplyTransform)(IDirect3DDevice9 *This, D3DTRANSFORMSTATETYPE State, const D3DMATRIX *pMatrix);
793bf215546Sopenharmony_ci	HRESULT (WINAPI *SetViewport)(IDirect3DDevice9 *This, const D3DVIEWPORT9 *pViewport);
794bf215546Sopenharmony_ci	HRESULT (WINAPI *GetViewport)(IDirect3DDevice9 *This, D3DVIEWPORT9 *pViewport);
795bf215546Sopenharmony_ci	HRESULT (WINAPI *SetMaterial)(IDirect3DDevice9 *This, const D3DMATERIAL9 *pMaterial);
796bf215546Sopenharmony_ci	HRESULT (WINAPI *GetMaterial)(IDirect3DDevice9 *This, D3DMATERIAL9 *pMaterial);
797bf215546Sopenharmony_ci	HRESULT (WINAPI *SetLight)(IDirect3DDevice9 *This, DWORD Index, const D3DLIGHT9 *pLight);
798bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLight)(IDirect3DDevice9 *This, DWORD Index, D3DLIGHT9 *pLight);
799bf215546Sopenharmony_ci	HRESULT (WINAPI *LightEnable)(IDirect3DDevice9 *This, DWORD Index, BOOL Enable);
800bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLightEnable)(IDirect3DDevice9 *This, DWORD Index, BOOL *pEnable);
801bf215546Sopenharmony_ci	HRESULT (WINAPI *SetClipPlane)(IDirect3DDevice9 *This, DWORD Index, const float *pPlane);
802bf215546Sopenharmony_ci	HRESULT (WINAPI *GetClipPlane)(IDirect3DDevice9 *This, DWORD Index, float *pPlane);
803bf215546Sopenharmony_ci	HRESULT (WINAPI *SetRenderState)(IDirect3DDevice9 *This, D3DRENDERSTATETYPE State, DWORD Value);
804bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRenderState)(IDirect3DDevice9 *This, D3DRENDERSTATETYPE State, DWORD *pValue);
805bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateStateBlock)(IDirect3DDevice9 *This, D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9 **ppSB);
806bf215546Sopenharmony_ci	HRESULT (WINAPI *BeginStateBlock)(IDirect3DDevice9 *This);
807bf215546Sopenharmony_ci	HRESULT (WINAPI *EndStateBlock)(IDirect3DDevice9 *This, IDirect3DStateBlock9 **ppSB);
808bf215546Sopenharmony_ci	HRESULT (WINAPI *SetClipStatus)(IDirect3DDevice9 *This, const D3DCLIPSTATUS9 *pClipStatus);
809bf215546Sopenharmony_ci	HRESULT (WINAPI *GetClipStatus)(IDirect3DDevice9 *This, D3DCLIPSTATUS9 *pClipStatus);
810bf215546Sopenharmony_ci	HRESULT (WINAPI *GetTexture)(IDirect3DDevice9 *This, DWORD Stage, IDirect3DBaseTexture9 **ppTexture);
811bf215546Sopenharmony_ci	HRESULT (WINAPI *SetTexture)(IDirect3DDevice9 *This, DWORD Stage, IDirect3DBaseTexture9 *pTexture);
812bf215546Sopenharmony_ci	HRESULT (WINAPI *GetTextureStageState)(IDirect3DDevice9 *This, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD *pValue);
813bf215546Sopenharmony_ci	HRESULT (WINAPI *SetTextureStageState)(IDirect3DDevice9 *This, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value);
814bf215546Sopenharmony_ci	HRESULT (WINAPI *GetSamplerState)(IDirect3DDevice9 *This, DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD *pValue);
815bf215546Sopenharmony_ci	HRESULT (WINAPI *SetSamplerState)(IDirect3DDevice9 *This, DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value);
816bf215546Sopenharmony_ci	HRESULT (WINAPI *ValidateDevice)(IDirect3DDevice9 *This, DWORD *pNumPasses);
817bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPaletteEntries)(IDirect3DDevice9 *This, UINT PaletteNumber, const PALETTEENTRY *pEntries);
818bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPaletteEntries)(IDirect3DDevice9 *This, UINT PaletteNumber, PALETTEENTRY *pEntries);
819bf215546Sopenharmony_ci	HRESULT (WINAPI *SetCurrentTexturePalette)(IDirect3DDevice9 *This, UINT PaletteNumber);
820bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCurrentTexturePalette)(IDirect3DDevice9 *This, UINT *PaletteNumber);
821bf215546Sopenharmony_ci	HRESULT (WINAPI *SetScissorRect)(IDirect3DDevice9 *This, const RECT *pRect);
822bf215546Sopenharmony_ci	HRESULT (WINAPI *GetScissorRect)(IDirect3DDevice9 *This, RECT *pRect);
823bf215546Sopenharmony_ci	HRESULT (WINAPI *SetSoftwareVertexProcessing)(IDirect3DDevice9 *This, BOOL bSoftware);
824bf215546Sopenharmony_ci	BOOL (WINAPI *GetSoftwareVertexProcessing)(IDirect3DDevice9 *This);
825bf215546Sopenharmony_ci	HRESULT (WINAPI *SetNPatchMode)(IDirect3DDevice9 *This, float nSegments);
826bf215546Sopenharmony_ci	float (WINAPI *GetNPatchMode)(IDirect3DDevice9 *This);
827bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawPrimitive)(IDirect3DDevice9 *This, D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount);
828bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawIndexedPrimitive)(IDirect3DDevice9 *This, D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount);
829bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawPrimitiveUP)(IDirect3DDevice9 *This, D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride);
830bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawIndexedPrimitiveUP)(IDirect3DDevice9 *This, D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, const void *pIndexData, D3DFORMAT IndexDataFormat, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride);
831bf215546Sopenharmony_ci	HRESULT (WINAPI *ProcessVertices)(IDirect3DDevice9 *This, UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9 *pDestBuffer, IDirect3DVertexDeclaration9 *pVertexDecl, DWORD Flags);
832bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVertexDeclaration)(IDirect3DDevice9 *This, const D3DVERTEXELEMENT9 *pVertexElements, IDirect3DVertexDeclaration9 **ppDecl);
833bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexDeclaration)(IDirect3DDevice9 *This, IDirect3DVertexDeclaration9 *pDecl);
834bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexDeclaration)(IDirect3DDevice9 *This, IDirect3DVertexDeclaration9 **ppDecl);
835bf215546Sopenharmony_ci	HRESULT (WINAPI *SetFVF)(IDirect3DDevice9 *This, DWORD FVF);
836bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFVF)(IDirect3DDevice9 *This, DWORD *pFVF);
837bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVertexShader)(IDirect3DDevice9 *This, const DWORD *pFunction, IDirect3DVertexShader9 **ppShader);
838bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShader)(IDirect3DDevice9 *This, IDirect3DVertexShader9 *pShader);
839bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShader)(IDirect3DDevice9 *This, IDirect3DVertexShader9 **ppShader);
840bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShaderConstantF)(IDirect3DDevice9 *This, UINT StartRegister, const float *pConstantData, UINT Vector4fCount);
841bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShaderConstantF)(IDirect3DDevice9 *This, UINT StartRegister, float *pConstantData, UINT Vector4fCount);
842bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShaderConstantI)(IDirect3DDevice9 *This, UINT StartRegister, const int *pConstantData, UINT Vector4iCount);
843bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShaderConstantI)(IDirect3DDevice9 *This, UINT StartRegister, int *pConstantData, UINT Vector4iCount);
844bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShaderConstantB)(IDirect3DDevice9 *This, UINT StartRegister, const BOOL *pConstantData, UINT BoolCount);
845bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShaderConstantB)(IDirect3DDevice9 *This, UINT StartRegister, BOOL *pConstantData, UINT BoolCount);
846bf215546Sopenharmony_ci	HRESULT (WINAPI *SetStreamSource)(IDirect3DDevice9 *This, UINT StreamNumber, IDirect3DVertexBuffer9 *pStreamData, UINT OffsetInBytes, UINT Stride);
847bf215546Sopenharmony_ci	HRESULT (WINAPI *GetStreamSource)(IDirect3DDevice9 *This, UINT StreamNumber, IDirect3DVertexBuffer9 **ppStreamData, UINT *pOffsetInBytes, UINT *pStride);
848bf215546Sopenharmony_ci	HRESULT (WINAPI *SetStreamSourceFreq)(IDirect3DDevice9 *This, UINT StreamNumber, UINT Setting);
849bf215546Sopenharmony_ci	HRESULT (WINAPI *GetStreamSourceFreq)(IDirect3DDevice9 *This, UINT StreamNumber, UINT *pSetting);
850bf215546Sopenharmony_ci	HRESULT (WINAPI *SetIndices)(IDirect3DDevice9 *This, IDirect3DIndexBuffer9 *pIndexData);
851bf215546Sopenharmony_ci	HRESULT (WINAPI *GetIndices)(IDirect3DDevice9 *This, IDirect3DIndexBuffer9 **ppIndexData);
852bf215546Sopenharmony_ci	HRESULT (WINAPI *CreatePixelShader)(IDirect3DDevice9 *This, const DWORD *pFunction, IDirect3DPixelShader9 **ppShader);
853bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShader)(IDirect3DDevice9 *This, IDirect3DPixelShader9 *pShader);
854bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShader)(IDirect3DDevice9 *This, IDirect3DPixelShader9 **ppShader);
855bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShaderConstantF)(IDirect3DDevice9 *This, UINT StartRegister, const float *pConstantData, UINT Vector4fCount);
856bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShaderConstantF)(IDirect3DDevice9 *This, UINT StartRegister, float *pConstantData, UINT Vector4fCount);
857bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShaderConstantI)(IDirect3DDevice9 *This, UINT StartRegister, const int *pConstantData, UINT Vector4iCount);
858bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShaderConstantI)(IDirect3DDevice9 *This, UINT StartRegister, int *pConstantData, UINT Vector4iCount);
859bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShaderConstantB)(IDirect3DDevice9 *This, UINT StartRegister, const BOOL *pConstantData, UINT BoolCount);
860bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShaderConstantB)(IDirect3DDevice9 *This, UINT StartRegister, BOOL *pConstantData, UINT BoolCount);
861bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawRectPatch)(IDirect3DDevice9 *This, UINT Handle, const float *pNumSegs, const D3DRECTPATCH_INFO *pRectPatchInfo);
862bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawTriPatch)(IDirect3DDevice9 *This, UINT Handle, const float *pNumSegs, const D3DTRIPATCH_INFO *pTriPatchInfo);
863bf215546Sopenharmony_ci	HRESULT (WINAPI *DeletePatch)(IDirect3DDevice9 *This, UINT Handle);
864bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateQuery)(IDirect3DDevice9 *This, D3DQUERYTYPE Type, IDirect3DQuery9 **ppQuery);
865bf215546Sopenharmony_ci} IDirect3DDevice9Vtbl;
866bf215546Sopenharmony_cistruct IDirect3DDevice9
867bf215546Sopenharmony_ci{
868bf215546Sopenharmony_ci	IDirect3DDevice9Vtbl *lpVtbl;
869bf215546Sopenharmony_ci};
870bf215546Sopenharmony_ci
871bf215546Sopenharmony_ci/* IUnknown macros */
872bf215546Sopenharmony_ci#define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
873bf215546Sopenharmony_ci#define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p)
874bf215546Sopenharmony_ci#define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p)
875bf215546Sopenharmony_ci/* IDirect3DDevice9 macros */
876bf215546Sopenharmony_ci#define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
877bf215546Sopenharmony_ci#define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
878bf215546Sopenharmony_ci#define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
879bf215546Sopenharmony_ci#define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
880bf215546Sopenharmony_ci#define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
881bf215546Sopenharmony_ci#define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
882bf215546Sopenharmony_ci#define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
883bf215546Sopenharmony_ci#define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
884bf215546Sopenharmony_ci#define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
885bf215546Sopenharmony_ci#define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
886bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
887bf215546Sopenharmony_ci#define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
888bf215546Sopenharmony_ci#define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
889bf215546Sopenharmony_ci#define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a)
890bf215546Sopenharmony_ci#define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
891bf215546Sopenharmony_ci#define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
892bf215546Sopenharmony_ci#define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
893bf215546Sopenharmony_ci#define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
894bf215546Sopenharmony_ci#define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
895bf215546Sopenharmony_ci#define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
896bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
897bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i)
898bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
899bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
900bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
901bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
902bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
903bf215546Sopenharmony_ci#define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
904bf215546Sopenharmony_ci#define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
905bf215546Sopenharmony_ci#define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
906bf215546Sopenharmony_ci#define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
907bf215546Sopenharmony_ci#define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
908bf215546Sopenharmony_ci#define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
909bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
910bf215546Sopenharmony_ci#define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
911bf215546Sopenharmony_ci#define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
912bf215546Sopenharmony_ci#define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
913bf215546Sopenharmony_ci#define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
914bf215546Sopenharmony_ci#define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p)
915bf215546Sopenharmony_ci#define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p)
916bf215546Sopenharmony_ci#define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
917bf215546Sopenharmony_ci#define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
918bf215546Sopenharmony_ci#define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
919bf215546Sopenharmony_ci#define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
920bf215546Sopenharmony_ci#define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
921bf215546Sopenharmony_ci#define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
922bf215546Sopenharmony_ci#define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
923bf215546Sopenharmony_ci#define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
924bf215546Sopenharmony_ci#define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
925bf215546Sopenharmony_ci#define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
926bf215546Sopenharmony_ci#define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
927bf215546Sopenharmony_ci#define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
928bf215546Sopenharmony_ci#define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
929bf215546Sopenharmony_ci#define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
930bf215546Sopenharmony_ci#define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
931bf215546Sopenharmony_ci#define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
932bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
933bf215546Sopenharmony_ci#define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
934bf215546Sopenharmony_ci#define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
935bf215546Sopenharmony_ci#define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
936bf215546Sopenharmony_ci#define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
937bf215546Sopenharmony_ci#define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
938bf215546Sopenharmony_ci#define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
939bf215546Sopenharmony_ci#define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
940bf215546Sopenharmony_ci#define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
941bf215546Sopenharmony_ci#define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
942bf215546Sopenharmony_ci#define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
943bf215546Sopenharmony_ci#define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
944bf215546Sopenharmony_ci#define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
945bf215546Sopenharmony_ci#define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
946bf215546Sopenharmony_ci#define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
947bf215546Sopenharmony_ci#define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
948bf215546Sopenharmony_ci#define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
949bf215546Sopenharmony_ci#define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
950bf215546Sopenharmony_ci#define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
951bf215546Sopenharmony_ci#define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
952bf215546Sopenharmony_ci#define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
953bf215546Sopenharmony_ci#define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
954bf215546Sopenharmony_ci#define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
955bf215546Sopenharmony_ci#define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
956bf215546Sopenharmony_ci#define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
957bf215546Sopenharmony_ci#define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
958bf215546Sopenharmony_ci#define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
959bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
960bf215546Sopenharmony_ci#define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
961bf215546Sopenharmony_ci#define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
962bf215546Sopenharmony_ci#define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
963bf215546Sopenharmony_ci#define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
964bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
965bf215546Sopenharmony_ci#define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
966bf215546Sopenharmony_ci#define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
967bf215546Sopenharmony_ci#define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
968bf215546Sopenharmony_ci#define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
969bf215546Sopenharmony_ci#define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
970bf215546Sopenharmony_ci#define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
971bf215546Sopenharmony_ci#define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
972bf215546Sopenharmony_ci#define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
973bf215546Sopenharmony_ci#define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
974bf215546Sopenharmony_ci#define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
975bf215546Sopenharmony_ci#define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
976bf215546Sopenharmony_ci#define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
977bf215546Sopenharmony_ci#define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
978bf215546Sopenharmony_ci#define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
979bf215546Sopenharmony_ci#define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
980bf215546Sopenharmony_ci#define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
981bf215546Sopenharmony_ci#define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
982bf215546Sopenharmony_ci#define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
983bf215546Sopenharmony_ci#define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
984bf215546Sopenharmony_ci#define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
985bf215546Sopenharmony_ci#define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
986bf215546Sopenharmony_ci#define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
987bf215546Sopenharmony_ci#define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
988bf215546Sopenharmony_ci#define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
989bf215546Sopenharmony_ci#define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
990bf215546Sopenharmony_ci#define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
991bf215546Sopenharmony_ci#define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
992bf215546Sopenharmony_ci
993bf215546Sopenharmony_citypedef struct IDirect3DDevice9ExVtbl
994bf215546Sopenharmony_ci{
995bf215546Sopenharmony_ci	/* IUnknown */
996bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DDevice9Ex *This, REFIID riid, void **ppvObject);
997bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DDevice9Ex *This);
998bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DDevice9Ex *This);
999bf215546Sopenharmony_ci	/* IDirect3DDevice9 */
1000bf215546Sopenharmony_ci	HRESULT (WINAPI *TestCooperativeLevel)(IDirect3DDevice9Ex *This);
1001bf215546Sopenharmony_ci	UINT (WINAPI *GetAvailableTextureMem)(IDirect3DDevice9Ex *This);
1002bf215546Sopenharmony_ci	HRESULT (WINAPI *EvictManagedResources)(IDirect3DDevice9Ex *This);
1003bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDirect3D)(IDirect3DDevice9Ex *This, IDirect3D9 **ppD3D9);
1004bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDeviceCaps)(IDirect3DDevice9Ex *This, D3DCAPS9 *pCaps);
1005bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDisplayMode)(IDirect3DDevice9Ex *This, UINT iSwapChain, D3DDISPLAYMODE *pMode);
1006bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCreationParameters)(IDirect3DDevice9Ex *This, D3DDEVICE_CREATION_PARAMETERS *pParameters);
1007bf215546Sopenharmony_ci	HRESULT (WINAPI *SetCursorProperties)(IDirect3DDevice9Ex *This, UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9 *pCursorBitmap);
1008bf215546Sopenharmony_ci	void (WINAPI *SetCursorPosition)(IDirect3DDevice9Ex *This, int X, int Y, DWORD Flags);
1009bf215546Sopenharmony_ci	BOOL (WINAPI *ShowCursor)(IDirect3DDevice9Ex *This, BOOL bShow);
1010bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateAdditionalSwapChain)(IDirect3DDevice9Ex *This, D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DSwapChain9 **pSwapChain);
1011bf215546Sopenharmony_ci	HRESULT (WINAPI *GetSwapChain)(IDirect3DDevice9Ex *This, UINT iSwapChain, IDirect3DSwapChain9 **pSwapChain);
1012bf215546Sopenharmony_ci	UINT (WINAPI *GetNumberOfSwapChains)(IDirect3DDevice9Ex *This);
1013bf215546Sopenharmony_ci	HRESULT (WINAPI *Reset)(IDirect3DDevice9Ex *This, D3DPRESENT_PARAMETERS *pPresentationParameters);
1014bf215546Sopenharmony_ci	HRESULT (WINAPI *Present)(IDirect3DDevice9Ex *This, const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion);
1015bf215546Sopenharmony_ci	HRESULT (WINAPI *GetBackBuffer)(IDirect3DDevice9Ex *This, UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer);
1016bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRasterStatus)(IDirect3DDevice9Ex *This, UINT iSwapChain, D3DRASTER_STATUS *pRasterStatus);
1017bf215546Sopenharmony_ci	HRESULT (WINAPI *SetDialogBoxMode)(IDirect3DDevice9Ex *This, BOOL bEnableDialogs);
1018bf215546Sopenharmony_ci	void (WINAPI *SetGammaRamp)(IDirect3DDevice9Ex *This, UINT iSwapChain, DWORD Flags, const D3DGAMMARAMP *pRamp);
1019bf215546Sopenharmony_ci	void (WINAPI *GetGammaRamp)(IDirect3DDevice9Ex *This, UINT iSwapChain, D3DGAMMARAMP *pRamp);
1020bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateTexture)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9 **ppTexture, HANDLE *pSharedHandle);
1021bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVolumeTexture)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9 **ppVolumeTexture, HANDLE *pSharedHandle);
1022bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateCubeTexture)(IDirect3DDevice9Ex *This, UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9 **ppCubeTexture, HANDLE *pSharedHandle);
1023bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVertexBuffer)(IDirect3DDevice9Ex *This, UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9 **ppVertexBuffer, HANDLE *pSharedHandle);
1024bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateIndexBuffer)(IDirect3DDevice9Ex *This, UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9 **ppIndexBuffer, HANDLE *pSharedHandle);
1025bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateRenderTarget)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle);
1026bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateDepthStencilSurface)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle);
1027bf215546Sopenharmony_ci	HRESULT (WINAPI *UpdateSurface)(IDirect3DDevice9Ex *This, IDirect3DSurface9 *pSourceSurface, const RECT *pSourceRect, IDirect3DSurface9 *pDestinationSurface, const POINT *pDestPoint);
1028bf215546Sopenharmony_ci	HRESULT (WINAPI *UpdateTexture)(IDirect3DDevice9Ex *This, IDirect3DBaseTexture9 *pSourceTexture, IDirect3DBaseTexture9 *pDestinationTexture);
1029bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRenderTargetData)(IDirect3DDevice9Ex *This, IDirect3DSurface9 *pRenderTarget, IDirect3DSurface9 *pDestSurface);
1030bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFrontBufferData)(IDirect3DDevice9Ex *This, UINT iSwapChain, IDirect3DSurface9 *pDestSurface);
1031bf215546Sopenharmony_ci	HRESULT (WINAPI *StretchRect)(IDirect3DDevice9Ex *This, IDirect3DSurface9 *pSourceSurface, const RECT *pSourceRect, IDirect3DSurface9 *pDestSurface, const RECT *pDestRect, D3DTEXTUREFILTERTYPE Filter);
1032bf215546Sopenharmony_ci	HRESULT (WINAPI *ColorFill)(IDirect3DDevice9Ex *This, IDirect3DSurface9 *pSurface, const RECT *pRect, D3DCOLOR color);
1033bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateOffscreenPlainSurface)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle);
1034bf215546Sopenharmony_ci	HRESULT (WINAPI *SetRenderTarget)(IDirect3DDevice9Ex *This, DWORD RenderTargetIndex, IDirect3DSurface9 *pRenderTarget);
1035bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRenderTarget)(IDirect3DDevice9Ex *This, DWORD RenderTargetIndex, IDirect3DSurface9 **ppRenderTarget);
1036bf215546Sopenharmony_ci	HRESULT (WINAPI *SetDepthStencilSurface)(IDirect3DDevice9Ex *This, IDirect3DSurface9 *pNewZStencil);
1037bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDepthStencilSurface)(IDirect3DDevice9Ex *This, IDirect3DSurface9 **ppZStencilSurface);
1038bf215546Sopenharmony_ci	HRESULT (WINAPI *BeginScene)(IDirect3DDevice9Ex *This);
1039bf215546Sopenharmony_ci	HRESULT (WINAPI *EndScene)(IDirect3DDevice9Ex *This);
1040bf215546Sopenharmony_ci	HRESULT (WINAPI *Clear)(IDirect3DDevice9Ex *This, DWORD Count, const D3DRECT *pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil);
1041bf215546Sopenharmony_ci	HRESULT (WINAPI *SetTransform)(IDirect3DDevice9Ex *This, D3DTRANSFORMSTATETYPE State, const D3DMATRIX *pMatrix);
1042bf215546Sopenharmony_ci	HRESULT (WINAPI *GetTransform)(IDirect3DDevice9Ex *This, D3DTRANSFORMSTATETYPE State, D3DMATRIX *pMatrix);
1043bf215546Sopenharmony_ci	HRESULT (WINAPI *MultiplyTransform)(IDirect3DDevice9Ex *This, D3DTRANSFORMSTATETYPE State, const D3DMATRIX *pMatrix);
1044bf215546Sopenharmony_ci	HRESULT (WINAPI *SetViewport)(IDirect3DDevice9Ex *This, const D3DVIEWPORT9 *pViewport);
1045bf215546Sopenharmony_ci	HRESULT (WINAPI *GetViewport)(IDirect3DDevice9Ex *This, D3DVIEWPORT9 *pViewport);
1046bf215546Sopenharmony_ci	HRESULT (WINAPI *SetMaterial)(IDirect3DDevice9Ex *This, const D3DMATERIAL9 *pMaterial);
1047bf215546Sopenharmony_ci	HRESULT (WINAPI *GetMaterial)(IDirect3DDevice9Ex *This, D3DMATERIAL9 *pMaterial);
1048bf215546Sopenharmony_ci	HRESULT (WINAPI *SetLight)(IDirect3DDevice9Ex *This, DWORD Index, const D3DLIGHT9 *pLight);
1049bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLight)(IDirect3DDevice9Ex *This, DWORD Index, D3DLIGHT9 *pLight);
1050bf215546Sopenharmony_ci	HRESULT (WINAPI *LightEnable)(IDirect3DDevice9Ex *This, DWORD Index, BOOL Enable);
1051bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLightEnable)(IDirect3DDevice9Ex *This, DWORD Index, BOOL *pEnable);
1052bf215546Sopenharmony_ci	HRESULT (WINAPI *SetClipPlane)(IDirect3DDevice9Ex *This, DWORD Index, const float *pPlane);
1053bf215546Sopenharmony_ci	HRESULT (WINAPI *GetClipPlane)(IDirect3DDevice9Ex *This, DWORD Index, float *pPlane);
1054bf215546Sopenharmony_ci	HRESULT (WINAPI *SetRenderState)(IDirect3DDevice9Ex *This, D3DRENDERSTATETYPE State, DWORD Value);
1055bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRenderState)(IDirect3DDevice9Ex *This, D3DRENDERSTATETYPE State, DWORD *pValue);
1056bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateStateBlock)(IDirect3DDevice9Ex *This, D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9 **ppSB);
1057bf215546Sopenharmony_ci	HRESULT (WINAPI *BeginStateBlock)(IDirect3DDevice9Ex *This);
1058bf215546Sopenharmony_ci	HRESULT (WINAPI *EndStateBlock)(IDirect3DDevice9Ex *This, IDirect3DStateBlock9 **ppSB);
1059bf215546Sopenharmony_ci	HRESULT (WINAPI *SetClipStatus)(IDirect3DDevice9Ex *This, const D3DCLIPSTATUS9 *pClipStatus);
1060bf215546Sopenharmony_ci	HRESULT (WINAPI *GetClipStatus)(IDirect3DDevice9Ex *This, D3DCLIPSTATUS9 *pClipStatus);
1061bf215546Sopenharmony_ci	HRESULT (WINAPI *GetTexture)(IDirect3DDevice9Ex *This, DWORD Stage, IDirect3DBaseTexture9 **ppTexture);
1062bf215546Sopenharmony_ci	HRESULT (WINAPI *SetTexture)(IDirect3DDevice9Ex *This, DWORD Stage, IDirect3DBaseTexture9 *pTexture);
1063bf215546Sopenharmony_ci	HRESULT (WINAPI *GetTextureStageState)(IDirect3DDevice9Ex *This, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD *pValue);
1064bf215546Sopenharmony_ci	HRESULT (WINAPI *SetTextureStageState)(IDirect3DDevice9Ex *This, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value);
1065bf215546Sopenharmony_ci	HRESULT (WINAPI *GetSamplerState)(IDirect3DDevice9Ex *This, DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD *pValue);
1066bf215546Sopenharmony_ci	HRESULT (WINAPI *SetSamplerState)(IDirect3DDevice9Ex *This, DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value);
1067bf215546Sopenharmony_ci	HRESULT (WINAPI *ValidateDevice)(IDirect3DDevice9Ex *This, DWORD *pNumPasses);
1068bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPaletteEntries)(IDirect3DDevice9Ex *This, UINT PaletteNumber, const PALETTEENTRY *pEntries);
1069bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPaletteEntries)(IDirect3DDevice9Ex *This, UINT PaletteNumber, PALETTEENTRY *pEntries);
1070bf215546Sopenharmony_ci	HRESULT (WINAPI *SetCurrentTexturePalette)(IDirect3DDevice9Ex *This, UINT PaletteNumber);
1071bf215546Sopenharmony_ci	HRESULT (WINAPI *GetCurrentTexturePalette)(IDirect3DDevice9Ex *This, UINT *PaletteNumber);
1072bf215546Sopenharmony_ci	HRESULT (WINAPI *SetScissorRect)(IDirect3DDevice9Ex *This, const RECT *pRect);
1073bf215546Sopenharmony_ci	HRESULT (WINAPI *GetScissorRect)(IDirect3DDevice9Ex *This, RECT *pRect);
1074bf215546Sopenharmony_ci	HRESULT (WINAPI *SetSoftwareVertexProcessing)(IDirect3DDevice9Ex *This, BOOL bSoftware);
1075bf215546Sopenharmony_ci	BOOL (WINAPI *GetSoftwareVertexProcessing)(IDirect3DDevice9Ex *This);
1076bf215546Sopenharmony_ci	HRESULT (WINAPI *SetNPatchMode)(IDirect3DDevice9Ex *This, float nSegments);
1077bf215546Sopenharmony_ci	float (WINAPI *GetNPatchMode)(IDirect3DDevice9Ex *This);
1078bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawPrimitive)(IDirect3DDevice9Ex *This, D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount);
1079bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawIndexedPrimitive)(IDirect3DDevice9Ex *This, D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount);
1080bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawPrimitiveUP)(IDirect3DDevice9Ex *This, D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride);
1081bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawIndexedPrimitiveUP)(IDirect3DDevice9Ex *This, D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, const void *pIndexData, D3DFORMAT IndexDataFormat, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride);
1082bf215546Sopenharmony_ci	HRESULT (WINAPI *ProcessVertices)(IDirect3DDevice9Ex *This, UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9 *pDestBuffer, IDirect3DVertexDeclaration9 *pVertexDecl, DWORD Flags);
1083bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVertexDeclaration)(IDirect3DDevice9Ex *This, const D3DVERTEXELEMENT9 *pVertexElements, IDirect3DVertexDeclaration9 **ppDecl);
1084bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexDeclaration)(IDirect3DDevice9Ex *This, IDirect3DVertexDeclaration9 *pDecl);
1085bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexDeclaration)(IDirect3DDevice9Ex *This, IDirect3DVertexDeclaration9 **ppDecl);
1086bf215546Sopenharmony_ci	HRESULT (WINAPI *SetFVF)(IDirect3DDevice9Ex *This, DWORD FVF);
1087bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFVF)(IDirect3DDevice9Ex *This, DWORD *pFVF);
1088bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateVertexShader)(IDirect3DDevice9Ex *This, const DWORD *pFunction, IDirect3DVertexShader9 **ppShader);
1089bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShader)(IDirect3DDevice9Ex *This, IDirect3DVertexShader9 *pShader);
1090bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShader)(IDirect3DDevice9Ex *This, IDirect3DVertexShader9 **ppShader);
1091bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShaderConstantF)(IDirect3DDevice9Ex *This, UINT StartRegister, const float *pConstantData, UINT Vector4fCount);
1092bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShaderConstantF)(IDirect3DDevice9Ex *This, UINT StartRegister, float *pConstantData, UINT Vector4fCount);
1093bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShaderConstantI)(IDirect3DDevice9Ex *This, UINT StartRegister, const int *pConstantData, UINT Vector4iCount);
1094bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShaderConstantI)(IDirect3DDevice9Ex *This, UINT StartRegister, int *pConstantData, UINT Vector4iCount);
1095bf215546Sopenharmony_ci	HRESULT (WINAPI *SetVertexShaderConstantB)(IDirect3DDevice9Ex *This, UINT StartRegister, const BOOL *pConstantData, UINT BoolCount);
1096bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVertexShaderConstantB)(IDirect3DDevice9Ex *This, UINT StartRegister, BOOL *pConstantData, UINT BoolCount);
1097bf215546Sopenharmony_ci	HRESULT (WINAPI *SetStreamSource)(IDirect3DDevice9Ex *This, UINT StreamNumber, IDirect3DVertexBuffer9 *pStreamData, UINT OffsetInBytes, UINT Stride);
1098bf215546Sopenharmony_ci	HRESULT (WINAPI *GetStreamSource)(IDirect3DDevice9Ex *This, UINT StreamNumber, IDirect3DVertexBuffer9 **ppStreamData, UINT *pOffsetInBytes, UINT *pStride);
1099bf215546Sopenharmony_ci	HRESULT (WINAPI *SetStreamSourceFreq)(IDirect3DDevice9Ex *This, UINT StreamNumber, UINT Setting);
1100bf215546Sopenharmony_ci	HRESULT (WINAPI *GetStreamSourceFreq)(IDirect3DDevice9Ex *This, UINT StreamNumber, UINT *pSetting);
1101bf215546Sopenharmony_ci	HRESULT (WINAPI *SetIndices)(IDirect3DDevice9Ex *This, IDirect3DIndexBuffer9 *pIndexData);
1102bf215546Sopenharmony_ci	HRESULT (WINAPI *GetIndices)(IDirect3DDevice9Ex *This, IDirect3DIndexBuffer9 **ppIndexData);
1103bf215546Sopenharmony_ci	HRESULT (WINAPI *CreatePixelShader)(IDirect3DDevice9Ex *This, const DWORD *pFunction, IDirect3DPixelShader9 **ppShader);
1104bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShader)(IDirect3DDevice9Ex *This, IDirect3DPixelShader9 *pShader);
1105bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShader)(IDirect3DDevice9Ex *This, IDirect3DPixelShader9 **ppShader);
1106bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShaderConstantF)(IDirect3DDevice9Ex *This, UINT StartRegister, const float *pConstantData, UINT Vector4fCount);
1107bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShaderConstantF)(IDirect3DDevice9Ex *This, UINT StartRegister, float *pConstantData, UINT Vector4fCount);
1108bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShaderConstantI)(IDirect3DDevice9Ex *This, UINT StartRegister, const int *pConstantData, UINT Vector4iCount);
1109bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShaderConstantI)(IDirect3DDevice9Ex *This, UINT StartRegister, int *pConstantData, UINT Vector4iCount);
1110bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPixelShaderConstantB)(IDirect3DDevice9Ex *This, UINT StartRegister, const BOOL *pConstantData, UINT BoolCount);
1111bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPixelShaderConstantB)(IDirect3DDevice9Ex *This, UINT StartRegister, BOOL *pConstantData, UINT BoolCount);
1112bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawRectPatch)(IDirect3DDevice9Ex *This, UINT Handle, const float *pNumSegs, const D3DRECTPATCH_INFO *pRectPatchInfo);
1113bf215546Sopenharmony_ci	HRESULT (WINAPI *DrawTriPatch)(IDirect3DDevice9Ex *This, UINT Handle, const float *pNumSegs, const D3DTRIPATCH_INFO *pTriPatchInfo);
1114bf215546Sopenharmony_ci	HRESULT (WINAPI *DeletePatch)(IDirect3DDevice9Ex *This, UINT Handle);
1115bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateQuery)(IDirect3DDevice9Ex *This, D3DQUERYTYPE Type, IDirect3DQuery9 **ppQuery);
1116bf215546Sopenharmony_ci	/* IDirect3DDevice9Ex */
1117bf215546Sopenharmony_ci	HRESULT (WINAPI *SetConvolutionMonoKernel)(IDirect3DDevice9Ex *This, UINT width, UINT height, float *rows, float *columns);
1118bf215546Sopenharmony_ci	HRESULT (WINAPI *ComposeRects)(IDirect3DDevice9Ex *This, IDirect3DSurface9 *pSrc, IDirect3DSurface9 *pDst, IDirect3DVertexBuffer9 *pSrcRectDescs, UINT NumRects, IDirect3DVertexBuffer9 *pDstRectDescs, D3DCOMPOSERECTSOP Operation, int Xoffset, int Yoffset);
1119bf215546Sopenharmony_ci	HRESULT (WINAPI *PresentEx)(IDirect3DDevice9Ex *This, const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion, DWORD dwFlags);
1120bf215546Sopenharmony_ci	HRESULT (WINAPI *GetGPUThreadPriority)(IDirect3DDevice9Ex *This, INT *pPriority);
1121bf215546Sopenharmony_ci	HRESULT (WINAPI *SetGPUThreadPriority)(IDirect3DDevice9Ex *This, INT Priority);
1122bf215546Sopenharmony_ci	HRESULT (WINAPI *WaitForVBlank)(IDirect3DDevice9Ex *This, UINT iSwapChain);
1123bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckResourceResidency)(IDirect3DDevice9Ex *This, IDirect3DResource9 **pResourceArray, UINT32 NumResources);
1124bf215546Sopenharmony_ci	HRESULT (WINAPI *SetMaximumFrameLatency)(IDirect3DDevice9Ex *This, UINT MaxLatency);
1125bf215546Sopenharmony_ci	HRESULT (WINAPI *GetMaximumFrameLatency)(IDirect3DDevice9Ex *This, UINT *pMaxLatency);
1126bf215546Sopenharmony_ci	HRESULT (WINAPI *CheckDeviceState)(IDirect3DDevice9Ex *This, HWND hDestinationWindow);
1127bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateRenderTargetEx)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage);
1128bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateOffscreenPlainSurfaceEx)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage);
1129bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateDepthStencilSurfaceEx)(IDirect3DDevice9Ex *This, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage);
1130bf215546Sopenharmony_ci	HRESULT (WINAPI *ResetEx)(IDirect3DDevice9Ex *This, D3DPRESENT_PARAMETERS *pPresentationParameters, D3DDISPLAYMODEEX *pFullscreenDisplayMode);
1131bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDisplayModeEx)(IDirect3DDevice9Ex *This, UINT iSwapChain, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation);
1132bf215546Sopenharmony_ci} IDirect3DDevice9ExVtbl;
1133bf215546Sopenharmony_cistruct IDirect3DDevice9Ex
1134bf215546Sopenharmony_ci{
1135bf215546Sopenharmony_ci	IDirect3DDevice9ExVtbl *lpVtbl;
1136bf215546Sopenharmony_ci};
1137bf215546Sopenharmony_ci
1138bf215546Sopenharmony_ci/* IUnknown macros */
1139bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1140bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_AddRef(p) (p)->lpVtbl->AddRef(p)
1141bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_Release(p) (p)->lpVtbl->Release(p)
1142bf215546Sopenharmony_ci/* IDirect3DDevice9 macros */
1143bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1144bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
1145bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
1146bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1147bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
1148bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
1149bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
1150bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
1151bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
1152bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
1153bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
1154bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
1155bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
1156bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_Reset(p,a) (p)->lpVtbl->Reset(p,a)
1157bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
1158bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
1159bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
1160bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
1161bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
1162bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
1163bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
1164bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i)
1165bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
1166bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
1167bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
1168bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
1169bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
1170bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
1171bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
1172bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
1173bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
1174bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
1175bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
1176bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
1177bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1178bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
1179bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
1180bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
1181bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1182bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_EndScene(p) (p)->lpVtbl->EndScene(p)
1183bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
1184bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1185bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1186bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1187bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
1188bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
1189bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
1190bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
1191bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
1192bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
1193bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
1194bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
1195bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
1196bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
1197bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1198bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1199bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
1200bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
1201bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
1202bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1203bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1204bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1205bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1206bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1207bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1208bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
1209bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
1210bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1211bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
1212bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
1213bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
1214bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
1215bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
1216bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
1217bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
1218bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
1219bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
1220bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
1221bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
1222bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
1223bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
1224bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
1225bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
1226bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
1227bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
1228bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
1229bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
1230bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
1231bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
1232bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
1233bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
1234bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
1235bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
1236bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
1237bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
1238bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
1239bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
1240bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
1241bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
1242bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
1243bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
1244bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
1245bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
1246bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
1247bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
1248bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
1249bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
1250bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
1251bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
1252bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
1253bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
1254bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
1255bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
1256bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
1257bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
1258bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
1259bf215546Sopenharmony_ci/* IDirect3DDevice9Ex macros */
1260bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetConvolutionMonoKernel(p,a,b,c,d) (p)->lpVtbl->SetConvolutionMonoKernel(p,a,b,c,d)
1261bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_ComposeRects(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ComposeRects(p,a,b,c,d,e,f,g,h)
1262bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_PresentEx(p,a,b,c,d,e) (p)->lpVtbl->PresentEx(p,a,b,c,d,e)
1263bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetGPUThreadPriority(p,a) (p)->lpVtbl->GetGPUThreadPriority(p,a)
1264bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetGPUThreadPriority(p,a) (p)->lpVtbl->SetGPUThreadPriority(p,a)
1265bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_WaitForVBlank(p,a) (p)->lpVtbl->WaitForVBlank(p,a)
1266bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CheckResourceResidency(p,a,b) (p)->lpVtbl->CheckResourceResidency(p,a,b)
1267bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_SetMaximumFrameLatency(p,a) (p)->lpVtbl->SetMaximumFrameLatency(p,a)
1268bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetMaximumFrameLatency(p,a) (p)->lpVtbl->GetMaximumFrameLatency(p,a)
1269bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CheckDeviceState(p,a) (p)->lpVtbl->CheckDeviceState(p,a)
1270bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i)
1271bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g)
1272bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i)
1273bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_ResetEx(p,a,b) (p)->lpVtbl->ResetEx(p,a,b)
1274bf215546Sopenharmony_ci#define IDirect3DDevice9Ex_GetDisplayModeEx(p,a,b,c) (p)->lpVtbl->GetDisplayModeEx(p,a,b,c)
1275bf215546Sopenharmony_ci
1276bf215546Sopenharmony_citypedef struct IDirect3DDevice9VideoVtbl
1277bf215546Sopenharmony_ci{
1278bf215546Sopenharmony_ci	/* IUnknown */
1279bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DDevice9Video *This, REFIID riid, void **ppvObject);
1280bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DDevice9Video *This);
1281bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DDevice9Video *This);
1282bf215546Sopenharmony_ci	/* IDirect3DDevice9Video */
1283bf215546Sopenharmony_ci	HRESULT (WINAPI *GetContentProtectionCaps)(IDirect3DDevice9Video *This, const GUID *pCryptoType, const GUID *pDecodeProfile, D3DCONTENTPROTECTIONCAPS *pCaps);
1284bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateAuthenticatedChannel)(IDirect3DDevice9Video *This, D3DAUTHENTICATEDCHANNELTYPE ChannelType, IDirect3DAuthenticatedChannel9 **ppAuthenticatedChannel, HANDLE *pChannelHandle);
1285bf215546Sopenharmony_ci	HRESULT (WINAPI *CreateCryptoSession)(IDirect3DDevice9Video *This, const GUID *pCryptoType, const GUID *pDecodeProfile, IDirect3DCryptoSession9 **ppCryptoSession, HANDLE *pCryptoHandle);
1286bf215546Sopenharmony_ci} IDirect3DDevice9VideoVtbl;
1287bf215546Sopenharmony_cistruct IDirect3DDevice9Video
1288bf215546Sopenharmony_ci{
1289bf215546Sopenharmony_ci	IDirect3DDevice9VideoVtbl *lpVtbl;
1290bf215546Sopenharmony_ci};
1291bf215546Sopenharmony_ci
1292bf215546Sopenharmony_ci/* IUnknown macros */
1293bf215546Sopenharmony_ci#define IDirect3DDevice9Video_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1294bf215546Sopenharmony_ci#define IDirect3DDevice9Video_AddRef(p) (p)->lpVtbl->AddRef(p)
1295bf215546Sopenharmony_ci#define IDirect3DDevice9Video_Release(p) (p)->lpVtbl->Release(p)
1296bf215546Sopenharmony_ci/* IDirect3DDevice9Video macros */
1297bf215546Sopenharmony_ci#define IDirect3DDevice9Video_GetContentProtectionCaps(p,a,b,c) (p)->lpVtbl->GetContentProtectionCaps(p,a,b,c)
1298bf215546Sopenharmony_ci#define IDirect3DDevice9Video_CreateAuthenticatedChannel(p,a,b,c) (p)->lpVtbl->CreateAuthenticatedChannel(p,a,b,c)
1299bf215546Sopenharmony_ci#define IDirect3DDevice9Video_CreateCryptoSession(p,a,b,c,d) (p)->lpVtbl->CreateCryptoSession(p,a,b,c,d)
1300bf215546Sopenharmony_ci
1301bf215546Sopenharmony_citypedef struct IDirect3DIndexBuffer9Vtbl
1302bf215546Sopenharmony_ci{
1303bf215546Sopenharmony_ci	/* IUnknown */
1304bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DIndexBuffer9 *This, REFIID riid, void **ppvObject);
1305bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DIndexBuffer9 *This);
1306bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DIndexBuffer9 *This);
1307bf215546Sopenharmony_ci	/* IDirect3DResource9 */
1308bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DIndexBuffer9 *This, IDirect3DDevice9 **ppDevice);
1309bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DIndexBuffer9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
1310bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DIndexBuffer9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
1311bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DIndexBuffer9 *This, REFGUID refguid);
1312bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DIndexBuffer9 *This, DWORD PriorityNew);
1313bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DIndexBuffer9 *This);
1314bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DIndexBuffer9 *This);
1315bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DIndexBuffer9 *This);
1316bf215546Sopenharmony_ci	/* IDirect3DIndexBuffer9 */
1317bf215546Sopenharmony_ci	HRESULT (WINAPI *Lock)(IDirect3DIndexBuffer9 *This, UINT OffsetToLock, UINT SizeToLock, void **ppbData, DWORD Flags);
1318bf215546Sopenharmony_ci	HRESULT (WINAPI *Unlock)(IDirect3DIndexBuffer9 *This);
1319bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDesc)(IDirect3DIndexBuffer9 *This, D3DINDEXBUFFER_DESC *pDesc);
1320bf215546Sopenharmony_ci} IDirect3DIndexBuffer9Vtbl;
1321bf215546Sopenharmony_cistruct IDirect3DIndexBuffer9
1322bf215546Sopenharmony_ci{
1323bf215546Sopenharmony_ci	IDirect3DIndexBuffer9Vtbl *lpVtbl;
1324bf215546Sopenharmony_ci};
1325bf215546Sopenharmony_ci
1326bf215546Sopenharmony_ci/* IUnknown macros */
1327bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1328bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
1329bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_Release(p) (p)->lpVtbl->Release(p)
1330bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
1331bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1332bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1333bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1334bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1335bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1336bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1337bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1338bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
1339bf215546Sopenharmony_ci/* IDirect3DIndexBuffer9 macros */
1340bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
1341bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
1342bf215546Sopenharmony_ci#define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1343bf215546Sopenharmony_ci
1344bf215546Sopenharmony_citypedef struct IDirect3DPixelShader9Vtbl
1345bf215546Sopenharmony_ci{
1346bf215546Sopenharmony_ci	/* IUnknown */
1347bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DPixelShader9 *This, REFIID riid, void **ppvObject);
1348bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DPixelShader9 *This);
1349bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DPixelShader9 *This);
1350bf215546Sopenharmony_ci	/* IDirect3DPixelShader9 */
1351bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DPixelShader9 *This, IDirect3DDevice9 **ppDevice);
1352bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFunction)(IDirect3DPixelShader9 *This, void *pData, UINT *pSizeOfData);
1353bf215546Sopenharmony_ci} IDirect3DPixelShader9Vtbl;
1354bf215546Sopenharmony_cistruct IDirect3DPixelShader9
1355bf215546Sopenharmony_ci{
1356bf215546Sopenharmony_ci	IDirect3DPixelShader9Vtbl *lpVtbl;
1357bf215546Sopenharmony_ci};
1358bf215546Sopenharmony_ci
1359bf215546Sopenharmony_ci/* IUnknown macros */
1360bf215546Sopenharmony_ci#define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1361bf215546Sopenharmony_ci#define IDirect3DPixelShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1362bf215546Sopenharmony_ci#define IDirect3DPixelShader9_Release(p) (p)->lpVtbl->Release(p)
1363bf215546Sopenharmony_ci/* IDirect3DPixelShader9 macros */
1364bf215546Sopenharmony_ci#define IDirect3DPixelShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1365bf215546Sopenharmony_ci#define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1366bf215546Sopenharmony_ci
1367bf215546Sopenharmony_citypedef struct IDirect3DQuery9Vtbl
1368bf215546Sopenharmony_ci{
1369bf215546Sopenharmony_ci	/* IUnknown */
1370bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DQuery9 *This, REFIID riid, void **ppvObject);
1371bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DQuery9 *This);
1372bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DQuery9 *This);
1373bf215546Sopenharmony_ci	/* IDirect3DQuery9 */
1374bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DQuery9 *This, IDirect3DDevice9 **ppDevice);
1375bf215546Sopenharmony_ci	D3DQUERYTYPE (WINAPI *GetType)(IDirect3DQuery9 *This);
1376bf215546Sopenharmony_ci	DWORD (WINAPI *GetDataSize)(IDirect3DQuery9 *This);
1377bf215546Sopenharmony_ci	HRESULT (WINAPI *Issue)(IDirect3DQuery9 *This, DWORD dwIssueFlags);
1378bf215546Sopenharmony_ci	HRESULT (WINAPI *GetData)(IDirect3DQuery9 *This, void *pData, DWORD dwSize, DWORD dwGetDataFlags);
1379bf215546Sopenharmony_ci} IDirect3DQuery9Vtbl;
1380bf215546Sopenharmony_cistruct IDirect3DQuery9
1381bf215546Sopenharmony_ci{
1382bf215546Sopenharmony_ci	IDirect3DQuery9Vtbl *lpVtbl;
1383bf215546Sopenharmony_ci};
1384bf215546Sopenharmony_ci
1385bf215546Sopenharmony_ci/* IUnknown macros */
1386bf215546Sopenharmony_ci#define IDirect3DQuery9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1387bf215546Sopenharmony_ci#define IDirect3DQuery9_AddRef(p) (p)->lpVtbl->AddRef(p)
1388bf215546Sopenharmony_ci#define IDirect3DQuery9_Release(p) (p)->lpVtbl->Release(p)
1389bf215546Sopenharmony_ci/* IDirect3DQuery9 macros */
1390bf215546Sopenharmony_ci#define IDirect3DQuery9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1391bf215546Sopenharmony_ci#define IDirect3DQuery9_GetType(p) (p)->lpVtbl->GetType(p)
1392bf215546Sopenharmony_ci#define IDirect3DQuery9_GetDataSize(p) (p)->lpVtbl->GetDataSize(p)
1393bf215546Sopenharmony_ci#define IDirect3DQuery9_Issue(p,a) (p)->lpVtbl->Issue(p,a)
1394bf215546Sopenharmony_ci#define IDirect3DQuery9_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c)
1395bf215546Sopenharmony_ci
1396bf215546Sopenharmony_citypedef struct IDirect3DResource9Vtbl
1397bf215546Sopenharmony_ci{
1398bf215546Sopenharmony_ci	/* IUnknown */
1399bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DResource9 *This, REFIID riid, void **ppvObject);
1400bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DResource9 *This);
1401bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DResource9 *This);
1402bf215546Sopenharmony_ci	/* IDirect3DResource9 */
1403bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DResource9 *This, IDirect3DDevice9 **ppDevice);
1404bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DResource9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
1405bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DResource9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
1406bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DResource9 *This, REFGUID refguid);
1407bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DResource9 *This, DWORD PriorityNew);
1408bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DResource9 *This);
1409bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DResource9 *This);
1410bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DResource9 *This);
1411bf215546Sopenharmony_ci} IDirect3DResource9Vtbl;
1412bf215546Sopenharmony_cistruct IDirect3DResource9
1413bf215546Sopenharmony_ci{
1414bf215546Sopenharmony_ci	IDirect3DResource9Vtbl *lpVtbl;
1415bf215546Sopenharmony_ci};
1416bf215546Sopenharmony_ci
1417bf215546Sopenharmony_ci/* IUnknown macros */
1418bf215546Sopenharmony_ci#define IDirect3DResource9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1419bf215546Sopenharmony_ci#define IDirect3DResource9_AddRef(p) (p)->lpVtbl->AddRef(p)
1420bf215546Sopenharmony_ci#define IDirect3DResource9_Release(p) (p)->lpVtbl->Release(p)
1421bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
1422bf215546Sopenharmony_ci#define IDirect3DResource9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1423bf215546Sopenharmony_ci#define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1424bf215546Sopenharmony_ci#define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1425bf215546Sopenharmony_ci#define IDirect3DResource9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1426bf215546Sopenharmony_ci#define IDirect3DResource9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1427bf215546Sopenharmony_ci#define IDirect3DResource9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1428bf215546Sopenharmony_ci#define IDirect3DResource9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1429bf215546Sopenharmony_ci#define IDirect3DResource9_GetType(p) (p)->lpVtbl->GetType(p)
1430bf215546Sopenharmony_ci
1431bf215546Sopenharmony_citypedef struct IDirect3DStateBlock9Vtbl
1432bf215546Sopenharmony_ci{
1433bf215546Sopenharmony_ci	/* IUnknown */
1434bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DStateBlock9 *This, REFIID riid, void **ppvObject);
1435bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DStateBlock9 *This);
1436bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DStateBlock9 *This);
1437bf215546Sopenharmony_ci	/* IDirect3DStateBlock9 */
1438bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DStateBlock9 *This, IDirect3DDevice9 **ppDevice);
1439bf215546Sopenharmony_ci	HRESULT (WINAPI *Capture)(IDirect3DStateBlock9 *This);
1440bf215546Sopenharmony_ci	HRESULT (WINAPI *Apply)(IDirect3DStateBlock9 *This);
1441bf215546Sopenharmony_ci} IDirect3DStateBlock9Vtbl;
1442bf215546Sopenharmony_cistruct IDirect3DStateBlock9
1443bf215546Sopenharmony_ci{
1444bf215546Sopenharmony_ci	IDirect3DStateBlock9Vtbl *lpVtbl;
1445bf215546Sopenharmony_ci};
1446bf215546Sopenharmony_ci
1447bf215546Sopenharmony_ci/* IUnknown macros */
1448bf215546Sopenharmony_ci#define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1449bf215546Sopenharmony_ci#define IDirect3DStateBlock9_AddRef(p) (p)->lpVtbl->AddRef(p)
1450bf215546Sopenharmony_ci#define IDirect3DStateBlock9_Release(p) (p)->lpVtbl->Release(p)
1451bf215546Sopenharmony_ci/* IDirect3DStateBlock9 macros */
1452bf215546Sopenharmony_ci#define IDirect3DStateBlock9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1453bf215546Sopenharmony_ci#define IDirect3DStateBlock9_Capture(p) (p)->lpVtbl->Capture(p)
1454bf215546Sopenharmony_ci#define IDirect3DStateBlock9_Apply(p) (p)->lpVtbl->Apply(p)
1455bf215546Sopenharmony_ci
1456bf215546Sopenharmony_citypedef struct IDirect3DSurface9Vtbl
1457bf215546Sopenharmony_ci{
1458bf215546Sopenharmony_ci	/* IUnknown */
1459bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DSurface9 *This, REFIID riid, void **ppvObject);
1460bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DSurface9 *This);
1461bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DSurface9 *This);
1462bf215546Sopenharmony_ci	/* IDirect3DResource9 */
1463bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DSurface9 *This, IDirect3DDevice9 **ppDevice);
1464bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DSurface9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
1465bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DSurface9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
1466bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DSurface9 *This, REFGUID refguid);
1467bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DSurface9 *This, DWORD PriorityNew);
1468bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DSurface9 *This);
1469bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DSurface9 *This);
1470bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DSurface9 *This);
1471bf215546Sopenharmony_ci	/* IDirect3DSurface9 */
1472bf215546Sopenharmony_ci	HRESULT (WINAPI *GetContainer)(IDirect3DSurface9 *This, REFIID riid, void **ppContainer);
1473bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDesc)(IDirect3DSurface9 *This, D3DSURFACE_DESC *pDesc);
1474bf215546Sopenharmony_ci	HRESULT (WINAPI *LockRect)(IDirect3DSurface9 *This, D3DLOCKED_RECT *pLockedRect, const RECT *pRect, DWORD Flags);
1475bf215546Sopenharmony_ci	HRESULT (WINAPI *UnlockRect)(IDirect3DSurface9 *This);
1476bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDC)(IDirect3DSurface9 *This, HDC *phdc);
1477bf215546Sopenharmony_ci	HRESULT (WINAPI *ReleaseDC)(IDirect3DSurface9 *This, HDC hdc);
1478bf215546Sopenharmony_ci} IDirect3DSurface9Vtbl;
1479bf215546Sopenharmony_cistruct IDirect3DSurface9
1480bf215546Sopenharmony_ci{
1481bf215546Sopenharmony_ci	IDirect3DSurface9Vtbl *lpVtbl;
1482bf215546Sopenharmony_ci};
1483bf215546Sopenharmony_ci
1484bf215546Sopenharmony_ci/* IUnknown macros */
1485bf215546Sopenharmony_ci#define IDirect3DSurface9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1486bf215546Sopenharmony_ci#define IDirect3DSurface9_AddRef(p) (p)->lpVtbl->AddRef(p)
1487bf215546Sopenharmony_ci#define IDirect3DSurface9_Release(p) (p)->lpVtbl->Release(p)
1488bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
1489bf215546Sopenharmony_ci#define IDirect3DSurface9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1490bf215546Sopenharmony_ci#define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1491bf215546Sopenharmony_ci#define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1492bf215546Sopenharmony_ci#define IDirect3DSurface9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1493bf215546Sopenharmony_ci#define IDirect3DSurface9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1494bf215546Sopenharmony_ci#define IDirect3DSurface9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1495bf215546Sopenharmony_ci#define IDirect3DSurface9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1496bf215546Sopenharmony_ci#define IDirect3DSurface9_GetType(p) (p)->lpVtbl->GetType(p)
1497bf215546Sopenharmony_ci/* IDirect3DSurface9 macros */
1498bf215546Sopenharmony_ci#define IDirect3DSurface9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
1499bf215546Sopenharmony_ci#define IDirect3DSurface9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1500bf215546Sopenharmony_ci#define IDirect3DSurface9_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
1501bf215546Sopenharmony_ci#define IDirect3DSurface9_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
1502bf215546Sopenharmony_ci#define IDirect3DSurface9_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
1503bf215546Sopenharmony_ci#define IDirect3DSurface9_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
1504bf215546Sopenharmony_ci
1505bf215546Sopenharmony_citypedef struct IDirect3DSwapChain9Vtbl
1506bf215546Sopenharmony_ci{
1507bf215546Sopenharmony_ci	/* IUnknown */
1508bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DSwapChain9 *This, REFIID riid, void **ppvObject);
1509bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DSwapChain9 *This);
1510bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DSwapChain9 *This);
1511bf215546Sopenharmony_ci	/* IDirect3DSwapChain9 */
1512bf215546Sopenharmony_ci	HRESULT (WINAPI *Present)(IDirect3DSwapChain9 *This, const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion, DWORD dwFlags);
1513bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFrontBufferData)(IDirect3DSwapChain9 *This, IDirect3DSurface9 *pDestSurface);
1514bf215546Sopenharmony_ci	HRESULT (WINAPI *GetBackBuffer)(IDirect3DSwapChain9 *This, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer);
1515bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRasterStatus)(IDirect3DSwapChain9 *This, D3DRASTER_STATUS *pRasterStatus);
1516bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDisplayMode)(IDirect3DSwapChain9 *This, D3DDISPLAYMODE *pMode);
1517bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DSwapChain9 *This, IDirect3DDevice9 **ppDevice);
1518bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPresentParameters)(IDirect3DSwapChain9 *This, D3DPRESENT_PARAMETERS *pPresentationParameters);
1519bf215546Sopenharmony_ci} IDirect3DSwapChain9Vtbl;
1520bf215546Sopenharmony_cistruct IDirect3DSwapChain9
1521bf215546Sopenharmony_ci{
1522bf215546Sopenharmony_ci	IDirect3DSwapChain9Vtbl *lpVtbl;
1523bf215546Sopenharmony_ci};
1524bf215546Sopenharmony_ci
1525bf215546Sopenharmony_ci/* IUnknown macros */
1526bf215546Sopenharmony_ci#define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1527bf215546Sopenharmony_ci#define IDirect3DSwapChain9_AddRef(p) (p)->lpVtbl->AddRef(p)
1528bf215546Sopenharmony_ci#define IDirect3DSwapChain9_Release(p) (p)->lpVtbl->Release(p)
1529bf215546Sopenharmony_ci/* IDirect3DSwapChain9 macros */
1530bf215546Sopenharmony_ci#define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
1531bf215546Sopenharmony_ci#define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
1532bf215546Sopenharmony_ci#define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
1533bf215546Sopenharmony_ci#define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
1534bf215546Sopenharmony_ci#define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
1535bf215546Sopenharmony_ci#define IDirect3DSwapChain9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1536bf215546Sopenharmony_ci#define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
1537bf215546Sopenharmony_ci
1538bf215546Sopenharmony_citypedef struct IDirect3DSwapChain9ExVtbl
1539bf215546Sopenharmony_ci{
1540bf215546Sopenharmony_ci	/* IUnknown */
1541bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DSwapChain9Ex *This, REFIID riid, void **ppvObject);
1542bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DSwapChain9Ex *This);
1543bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DSwapChain9Ex *This);
1544bf215546Sopenharmony_ci	/* IDirect3DSwapChain9 */
1545bf215546Sopenharmony_ci	HRESULT (WINAPI *Present)(IDirect3DSwapChain9Ex *This, const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion, DWORD dwFlags);
1546bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFrontBufferData)(IDirect3DSwapChain9Ex *This, IDirect3DSurface9 *pDestSurface);
1547bf215546Sopenharmony_ci	HRESULT (WINAPI *GetBackBuffer)(IDirect3DSwapChain9Ex *This, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 **ppBackBuffer);
1548bf215546Sopenharmony_ci	HRESULT (WINAPI *GetRasterStatus)(IDirect3DSwapChain9Ex *This, D3DRASTER_STATUS *pRasterStatus);
1549bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDisplayMode)(IDirect3DSwapChain9Ex *This, D3DDISPLAYMODE *pMode);
1550bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DSwapChain9Ex *This, IDirect3DDevice9 **ppDevice);
1551bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPresentParameters)(IDirect3DSwapChain9Ex *This, D3DPRESENT_PARAMETERS *pPresentationParameters);
1552bf215546Sopenharmony_ci	/* IDirect3DSwapChain9Ex */
1553bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLastPresentCount)(IDirect3DSwapChain9Ex *This, UINT *pLastPresentCount);
1554bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPresentStats)(IDirect3DSwapChain9Ex *This, D3DPRESENTSTATS *pPresentationStatistics);
1555bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDisplayModeEx)(IDirect3DSwapChain9Ex *This, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation);
1556bf215546Sopenharmony_ci} IDirect3DSwapChain9ExVtbl;
1557bf215546Sopenharmony_cistruct IDirect3DSwapChain9Ex
1558bf215546Sopenharmony_ci{
1559bf215546Sopenharmony_ci	IDirect3DSwapChain9ExVtbl *lpVtbl;
1560bf215546Sopenharmony_ci};
1561bf215546Sopenharmony_ci
1562bf215546Sopenharmony_ci/* IUnknown macros */
1563bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1564bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_AddRef(p) (p)->lpVtbl->AddRef(p)
1565bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_Release(p) (p)->lpVtbl->Release(p)
1566bf215546Sopenharmony_ci/* IDirect3DSwapChain9 macros */
1567bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
1568bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
1569bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
1570bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
1571bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
1572bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1573bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
1574bf215546Sopenharmony_ci/* IDirect3DSwapChain9Ex macros */
1575bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetLastPresentCount(p,a) (p)->lpVtbl->GetLastPresentCount(p,a)
1576bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetPresentStats(p,a) (p)->lpVtbl->GetPresentStats(p,a)
1577bf215546Sopenharmony_ci#define IDirect3DSwapChain9Ex_GetDisplayModeEx(p,a,b) (p)->lpVtbl->GetDisplayModeEx(p,a,b)
1578bf215546Sopenharmony_ci
1579bf215546Sopenharmony_citypedef struct IDirect3DTexture9Vtbl
1580bf215546Sopenharmony_ci{
1581bf215546Sopenharmony_ci	/* IUnknown */
1582bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DTexture9 *This, REFIID riid, void **ppvObject);
1583bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DTexture9 *This);
1584bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DTexture9 *This);
1585bf215546Sopenharmony_ci	/* IDirect3DResource9 */
1586bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DTexture9 *This, IDirect3DDevice9 **ppDevice);
1587bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DTexture9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
1588bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DTexture9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
1589bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DTexture9 *This, REFGUID refguid);
1590bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DTexture9 *This, DWORD PriorityNew);
1591bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DTexture9 *This);
1592bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DTexture9 *This);
1593bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DTexture9 *This);
1594bf215546Sopenharmony_ci	/* IDirect3DBaseTexture9 */
1595bf215546Sopenharmony_ci	DWORD (WINAPI *SetLOD)(IDirect3DTexture9 *This, DWORD LODNew);
1596bf215546Sopenharmony_ci	DWORD (WINAPI *GetLOD)(IDirect3DTexture9 *This);
1597bf215546Sopenharmony_ci	DWORD (WINAPI *GetLevelCount)(IDirect3DTexture9 *This);
1598bf215546Sopenharmony_ci	HRESULT (WINAPI *SetAutoGenFilterType)(IDirect3DTexture9 *This, D3DTEXTUREFILTERTYPE FilterType);
1599bf215546Sopenharmony_ci	D3DTEXTUREFILTERTYPE (WINAPI *GetAutoGenFilterType)(IDirect3DTexture9 *This);
1600bf215546Sopenharmony_ci	void (WINAPI *GenerateMipSubLevels)(IDirect3DTexture9 *This);
1601bf215546Sopenharmony_ci	/* IDirect3DTexture9 */
1602bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLevelDesc)(IDirect3DTexture9 *This, UINT Level, D3DSURFACE_DESC *pDesc);
1603bf215546Sopenharmony_ci	HRESULT (WINAPI *GetSurfaceLevel)(IDirect3DTexture9 *This, UINT Level, IDirect3DSurface9 **ppSurfaceLevel);
1604bf215546Sopenharmony_ci	HRESULT (WINAPI *LockRect)(IDirect3DTexture9 *This, UINT Level, D3DLOCKED_RECT *pLockedRect, const RECT *pRect, DWORD Flags);
1605bf215546Sopenharmony_ci	HRESULT (WINAPI *UnlockRect)(IDirect3DTexture9 *This, UINT Level);
1606bf215546Sopenharmony_ci	HRESULT (WINAPI *AddDirtyRect)(IDirect3DTexture9 *This, const RECT *pDirtyRect);
1607bf215546Sopenharmony_ci} IDirect3DTexture9Vtbl;
1608bf215546Sopenharmony_cistruct IDirect3DTexture9
1609bf215546Sopenharmony_ci{
1610bf215546Sopenharmony_ci	IDirect3DTexture9Vtbl *lpVtbl;
1611bf215546Sopenharmony_ci};
1612bf215546Sopenharmony_ci
1613bf215546Sopenharmony_ci/* IUnknown macros */
1614bf215546Sopenharmony_ci#define IDirect3DTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1615bf215546Sopenharmony_ci#define IDirect3DTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1616bf215546Sopenharmony_ci#define IDirect3DTexture9_Release(p) (p)->lpVtbl->Release(p)
1617bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
1618bf215546Sopenharmony_ci#define IDirect3DTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1619bf215546Sopenharmony_ci#define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1620bf215546Sopenharmony_ci#define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1621bf215546Sopenharmony_ci#define IDirect3DTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1622bf215546Sopenharmony_ci#define IDirect3DTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1623bf215546Sopenharmony_ci#define IDirect3DTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1624bf215546Sopenharmony_ci#define IDirect3DTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1625bf215546Sopenharmony_ci#define IDirect3DTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1626bf215546Sopenharmony_ci/* IDirect3DBaseTexture9 macros */
1627bf215546Sopenharmony_ci#define IDirect3DTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1628bf215546Sopenharmony_ci#define IDirect3DTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1629bf215546Sopenharmony_ci#define IDirect3DTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1630bf215546Sopenharmony_ci#define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1631bf215546Sopenharmony_ci#define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1632bf215546Sopenharmony_ci#define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1633bf215546Sopenharmony_ci/* IDirect3DTexture9 macros */
1634bf215546Sopenharmony_ci#define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1635bf215546Sopenharmony_ci#define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
1636bf215546Sopenharmony_ci#define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
1637bf215546Sopenharmony_ci#define IDirect3DTexture9_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
1638bf215546Sopenharmony_ci#define IDirect3DTexture9_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
1639bf215546Sopenharmony_ci
1640bf215546Sopenharmony_citypedef struct IDirect3DVertexBuffer9Vtbl
1641bf215546Sopenharmony_ci{
1642bf215546Sopenharmony_ci	/* IUnknown */
1643bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DVertexBuffer9 *This, REFIID riid, void **ppvObject);
1644bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DVertexBuffer9 *This);
1645bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DVertexBuffer9 *This);
1646bf215546Sopenharmony_ci	/* IDirect3DResource9 */
1647bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DVertexBuffer9 *This, IDirect3DDevice9 **ppDevice);
1648bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DVertexBuffer9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
1649bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DVertexBuffer9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
1650bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DVertexBuffer9 *This, REFGUID refguid);
1651bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DVertexBuffer9 *This, DWORD PriorityNew);
1652bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DVertexBuffer9 *This);
1653bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DVertexBuffer9 *This);
1654bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DVertexBuffer9 *This);
1655bf215546Sopenharmony_ci	/* IDirect3DVertexBuffer9 */
1656bf215546Sopenharmony_ci	HRESULT (WINAPI *Lock)(IDirect3DVertexBuffer9 *This, UINT OffsetToLock, UINT SizeToLock, void **ppbData, DWORD Flags);
1657bf215546Sopenharmony_ci	HRESULT (WINAPI *Unlock)(IDirect3DVertexBuffer9 *This);
1658bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDesc)(IDirect3DVertexBuffer9 *This, D3DVERTEXBUFFER_DESC *pDesc);
1659bf215546Sopenharmony_ci} IDirect3DVertexBuffer9Vtbl;
1660bf215546Sopenharmony_cistruct IDirect3DVertexBuffer9
1661bf215546Sopenharmony_ci{
1662bf215546Sopenharmony_ci	IDirect3DVertexBuffer9Vtbl *lpVtbl;
1663bf215546Sopenharmony_ci};
1664bf215546Sopenharmony_ci
1665bf215546Sopenharmony_ci/* IUnknown macros */
1666bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1667bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
1668bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_Release(p) (p)->lpVtbl->Release(p)
1669bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
1670bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1671bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1672bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1673bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1674bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1675bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1676bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1677bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
1678bf215546Sopenharmony_ci/* IDirect3DVertexBuffer9 macros */
1679bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
1680bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
1681bf215546Sopenharmony_ci#define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1682bf215546Sopenharmony_ci
1683bf215546Sopenharmony_citypedef struct IDirect3DVertexDeclaration9Vtbl
1684bf215546Sopenharmony_ci{
1685bf215546Sopenharmony_ci	/* IUnknown */
1686bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DVertexDeclaration9 *This, REFIID riid, void **ppvObject);
1687bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DVertexDeclaration9 *This);
1688bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DVertexDeclaration9 *This);
1689bf215546Sopenharmony_ci	/* IDirect3DVertexDeclaration9 */
1690bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DVertexDeclaration9 *This, IDirect3DDevice9 **ppDevice);
1691bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDeclaration)(IDirect3DVertexDeclaration9 *This, D3DVERTEXELEMENT9 *pElement, UINT *pNumElements);
1692bf215546Sopenharmony_ci} IDirect3DVertexDeclaration9Vtbl;
1693bf215546Sopenharmony_cistruct IDirect3DVertexDeclaration9
1694bf215546Sopenharmony_ci{
1695bf215546Sopenharmony_ci	IDirect3DVertexDeclaration9Vtbl *lpVtbl;
1696bf215546Sopenharmony_ci};
1697bf215546Sopenharmony_ci
1698bf215546Sopenharmony_ci/* IUnknown macros */
1699bf215546Sopenharmony_ci#define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1700bf215546Sopenharmony_ci#define IDirect3DVertexDeclaration9_AddRef(p) (p)->lpVtbl->AddRef(p)
1701bf215546Sopenharmony_ci#define IDirect3DVertexDeclaration9_Release(p) (p)->lpVtbl->Release(p)
1702bf215546Sopenharmony_ci/* IDirect3DVertexDeclaration9 macros */
1703bf215546Sopenharmony_ci#define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1704bf215546Sopenharmony_ci#define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b)
1705bf215546Sopenharmony_ci
1706bf215546Sopenharmony_citypedef struct IDirect3DVertexShader9Vtbl
1707bf215546Sopenharmony_ci{
1708bf215546Sopenharmony_ci	/* IUnknown */
1709bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DVertexShader9 *This, REFIID riid, void **ppvObject);
1710bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DVertexShader9 *This);
1711bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DVertexShader9 *This);
1712bf215546Sopenharmony_ci	/* IDirect3DVertexShader9 */
1713bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DVertexShader9 *This, IDirect3DDevice9 **ppDevice);
1714bf215546Sopenharmony_ci	HRESULT (WINAPI *GetFunction)(IDirect3DVertexShader9 *This, void *pData, UINT *pSizeOfData);
1715bf215546Sopenharmony_ci} IDirect3DVertexShader9Vtbl;
1716bf215546Sopenharmony_cistruct IDirect3DVertexShader9
1717bf215546Sopenharmony_ci{
1718bf215546Sopenharmony_ci	IDirect3DVertexShader9Vtbl *lpVtbl;
1719bf215546Sopenharmony_ci};
1720bf215546Sopenharmony_ci
1721bf215546Sopenharmony_ci/* IUnknown macros */
1722bf215546Sopenharmony_ci#define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1723bf215546Sopenharmony_ci#define IDirect3DVertexShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1724bf215546Sopenharmony_ci#define IDirect3DVertexShader9_Release(p) (p)->lpVtbl->Release(p)
1725bf215546Sopenharmony_ci/* IDirect3DVertexShader9 macros */
1726bf215546Sopenharmony_ci#define IDirect3DVertexShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1727bf215546Sopenharmony_ci#define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1728bf215546Sopenharmony_ci
1729bf215546Sopenharmony_citypedef struct IDirect3DVolume9Vtbl
1730bf215546Sopenharmony_ci{
1731bf215546Sopenharmony_ci	/* IUnknown */
1732bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DVolume9 *This, REFIID riid, void **ppvObject);
1733bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DVolume9 *This);
1734bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DVolume9 *This);
1735bf215546Sopenharmony_ci	/* IDirect3DVolume9 */
1736bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DVolume9 *This, IDirect3DDevice9 **ppDevice);
1737bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DVolume9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
1738bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DVolume9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
1739bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DVolume9 *This, REFGUID refguid);
1740bf215546Sopenharmony_ci	HRESULT (WINAPI *GetContainer)(IDirect3DVolume9 *This, REFIID riid, void **ppContainer);
1741bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDesc)(IDirect3DVolume9 *This, D3DVOLUME_DESC *pDesc);
1742bf215546Sopenharmony_ci	HRESULT (WINAPI *LockBox)(IDirect3DVolume9 *This, D3DLOCKED_BOX *pLockedVolume, const D3DBOX *pBox, DWORD Flags);
1743bf215546Sopenharmony_ci	HRESULT (WINAPI *UnlockBox)(IDirect3DVolume9 *This);
1744bf215546Sopenharmony_ci} IDirect3DVolume9Vtbl;
1745bf215546Sopenharmony_cistruct IDirect3DVolume9
1746bf215546Sopenharmony_ci{
1747bf215546Sopenharmony_ci	IDirect3DVolume9Vtbl *lpVtbl;
1748bf215546Sopenharmony_ci};
1749bf215546Sopenharmony_ci
1750bf215546Sopenharmony_ci/* IUnknown macros */
1751bf215546Sopenharmony_ci#define IDirect3DVolume9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1752bf215546Sopenharmony_ci#define IDirect3DVolume9_AddRef(p) (p)->lpVtbl->AddRef(p)
1753bf215546Sopenharmony_ci#define IDirect3DVolume9_Release(p) (p)->lpVtbl->Release(p)
1754bf215546Sopenharmony_ci/* IDirect3DVolume9 macros */
1755bf215546Sopenharmony_ci#define IDirect3DVolume9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1756bf215546Sopenharmony_ci#define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1757bf215546Sopenharmony_ci#define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1758bf215546Sopenharmony_ci#define IDirect3DVolume9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1759bf215546Sopenharmony_ci#define IDirect3DVolume9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
1760bf215546Sopenharmony_ci#define IDirect3DVolume9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1761bf215546Sopenharmony_ci#define IDirect3DVolume9_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
1762bf215546Sopenharmony_ci#define IDirect3DVolume9_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
1763bf215546Sopenharmony_ci
1764bf215546Sopenharmony_citypedef struct IDirect3DVolumeTexture9Vtbl
1765bf215546Sopenharmony_ci{
1766bf215546Sopenharmony_ci	/* IUnknown */
1767bf215546Sopenharmony_ci	HRESULT (WINAPI *QueryInterface)(IDirect3DVolumeTexture9 *This, REFIID riid, void **ppvObject);
1768bf215546Sopenharmony_ci	ULONG (WINAPI *AddRef)(IDirect3DVolumeTexture9 *This);
1769bf215546Sopenharmony_ci	ULONG (WINAPI *Release)(IDirect3DVolumeTexture9 *This);
1770bf215546Sopenharmony_ci	/* IDirect3DResource9 */
1771bf215546Sopenharmony_ci	HRESULT (WINAPI *GetDevice)(IDirect3DVolumeTexture9 *This, IDirect3DDevice9 **ppDevice);
1772bf215546Sopenharmony_ci	HRESULT (WINAPI *SetPrivateData)(IDirect3DVolumeTexture9 *This, REFGUID refguid, const void *pData, DWORD SizeOfData, DWORD Flags);
1773bf215546Sopenharmony_ci	HRESULT (WINAPI *GetPrivateData)(IDirect3DVolumeTexture9 *This, REFGUID refguid, void *pData, DWORD *pSizeOfData);
1774bf215546Sopenharmony_ci	HRESULT (WINAPI *FreePrivateData)(IDirect3DVolumeTexture9 *This, REFGUID refguid);
1775bf215546Sopenharmony_ci	DWORD (WINAPI *SetPriority)(IDirect3DVolumeTexture9 *This, DWORD PriorityNew);
1776bf215546Sopenharmony_ci	DWORD (WINAPI *GetPriority)(IDirect3DVolumeTexture9 *This);
1777bf215546Sopenharmony_ci	void (WINAPI *PreLoad)(IDirect3DVolumeTexture9 *This);
1778bf215546Sopenharmony_ci	D3DRESOURCETYPE (WINAPI *GetType)(IDirect3DVolumeTexture9 *This);
1779bf215546Sopenharmony_ci	/* IDirect3DBaseTexture9 */
1780bf215546Sopenharmony_ci	DWORD (WINAPI *SetLOD)(IDirect3DVolumeTexture9 *This, DWORD LODNew);
1781bf215546Sopenharmony_ci	DWORD (WINAPI *GetLOD)(IDirect3DVolumeTexture9 *This);
1782bf215546Sopenharmony_ci	DWORD (WINAPI *GetLevelCount)(IDirect3DVolumeTexture9 *This);
1783bf215546Sopenharmony_ci	HRESULT (WINAPI *SetAutoGenFilterType)(IDirect3DVolumeTexture9 *This, D3DTEXTUREFILTERTYPE FilterType);
1784bf215546Sopenharmony_ci	D3DTEXTUREFILTERTYPE (WINAPI *GetAutoGenFilterType)(IDirect3DVolumeTexture9 *This);
1785bf215546Sopenharmony_ci	void (WINAPI *GenerateMipSubLevels)(IDirect3DVolumeTexture9 *This);
1786bf215546Sopenharmony_ci	/* IDirect3DVolumeTexture9 */
1787bf215546Sopenharmony_ci	HRESULT (WINAPI *GetLevelDesc)(IDirect3DVolumeTexture9 *This, UINT Level, D3DVOLUME_DESC *pDesc);
1788bf215546Sopenharmony_ci	HRESULT (WINAPI *GetVolumeLevel)(IDirect3DVolumeTexture9 *This, UINT Level, IDirect3DVolume9 **ppVolumeLevel);
1789bf215546Sopenharmony_ci	HRESULT (WINAPI *LockBox)(IDirect3DVolumeTexture9 *This, UINT Level, D3DLOCKED_BOX *pLockedVolume, const D3DBOX *pBox, DWORD Flags);
1790bf215546Sopenharmony_ci	HRESULT (WINAPI *UnlockBox)(IDirect3DVolumeTexture9 *This, UINT Level);
1791bf215546Sopenharmony_ci	HRESULT (WINAPI *AddDirtyBox)(IDirect3DVolumeTexture9 *This, const D3DBOX *pDirtyBox);
1792bf215546Sopenharmony_ci} IDirect3DVolumeTexture9Vtbl;
1793bf215546Sopenharmony_cistruct IDirect3DVolumeTexture9
1794bf215546Sopenharmony_ci{
1795bf215546Sopenharmony_ci	IDirect3DVolumeTexture9Vtbl *lpVtbl;
1796bf215546Sopenharmony_ci};
1797bf215546Sopenharmony_ci
1798bf215546Sopenharmony_ci/* IUnknown macros */
1799bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1800bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1801bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_Release(p) (p)->lpVtbl->Release(p)
1802bf215546Sopenharmony_ci/* IDirect3DResource9 macros */
1803bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1804bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1805bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1806bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1807bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1808bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1809bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1810bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1811bf215546Sopenharmony_ci/* IDirect3DBaseTexture9 macros */
1812bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1813bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1814bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1815bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1816bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1817bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1818bf215546Sopenharmony_ci/* IDirect3DVolumeTexture9 macros */
1819bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1820bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
1821bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
1822bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
1823bf215546Sopenharmony_ci#define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
1824bf215546Sopenharmony_ci
1825bf215546Sopenharmony_ci#endif /* __cplusplus */
1826bf215546Sopenharmony_ci
1827bf215546Sopenharmony_ci#ifdef _WIN32
1828bf215546Sopenharmony_ci
1829bf215546Sopenharmony_ciIDirect3D9 *WINAPI
1830bf215546Sopenharmony_ciDirect3DCreate9( UINT SDKVersion );
1831bf215546Sopenharmony_ci
1832bf215546Sopenharmony_ciHRESULT WINAPI
1833bf215546Sopenharmony_ciDirect3DCreate9Ex( UINT SDKVersion,
1834bf215546Sopenharmony_ci                   IDirect3D9Ex **ppD3D9 );
1835bf215546Sopenharmony_ci
1836bf215546Sopenharmony_civoid *WINAPI
1837bf215546Sopenharmony_ciDirect3DShaderValidatorCreate9( void );
1838bf215546Sopenharmony_ci
1839bf215546Sopenharmony_ciint WINAPI
1840bf215546Sopenharmony_ciD3DPERF_BeginEvent( D3DCOLOR color,
1841bf215546Sopenharmony_ci                    LPCWSTR name );
1842bf215546Sopenharmony_ci
1843bf215546Sopenharmony_ciint WINAPI
1844bf215546Sopenharmony_ciD3DPERF_EndEvent( void );
1845bf215546Sopenharmony_ci
1846bf215546Sopenharmony_ciDWORD WINAPI
1847bf215546Sopenharmony_ciD3DPERF_GetStatus( void );
1848bf215546Sopenharmony_ci
1849bf215546Sopenharmony_civoid WINAPI
1850bf215546Sopenharmony_ciD3DPERF_SetOptions( DWORD options );
1851bf215546Sopenharmony_ci
1852bf215546Sopenharmony_ciBOOL WINAPI
1853bf215546Sopenharmony_ciD3DPERF_QueryRepeatFrame( void );
1854bf215546Sopenharmony_ci
1855bf215546Sopenharmony_civoid WINAPI
1856bf215546Sopenharmony_ciD3DPERF_SetMarker( D3DCOLOR color,
1857bf215546Sopenharmony_ci                   LPCWSTR name );
1858bf215546Sopenharmony_ci
1859bf215546Sopenharmony_civoid WINAPI
1860bf215546Sopenharmony_ciD3DPERF_SetRegion( D3DCOLOR color,
1861bf215546Sopenharmony_ci                   LPCWSTR name );
1862bf215546Sopenharmony_ci
1863bf215546Sopenharmony_civoid WINAPI
1864bf215546Sopenharmony_ciDebugSetMute( void );
1865bf215546Sopenharmony_ci
1866bf215546Sopenharmony_ci#endif
1867bf215546Sopenharmony_ci
1868bf215546Sopenharmony_ci#endif /* _D3D9_H_ */
1869