2 * Direct3D 8 private include file
4 * Copyright 2002-2004 Jason Edmeades
5 * Copyright 2003-2004 Raphael Junqueira
6 * Copyright 2004 Christian Costa
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #ifndef __WINE_D3D8_PRIVATE_H
24 #define __WINE_D3D8_PRIVATE_H
28 #define NONAMELESSUNION
29 #define NONAMELESSSTRUCT
34 #include "wine/debug.h"
37 #include "wine/wined3d_interface.h"
40 #define INITIAL_SHADER_HANDLE_TABLE_SIZE 64
42 /* CreateVertexShader can return > 0xFFFF */
43 #define VS_HIGHESTFIXEDFXF 0xF0000000
45 /* ===========================================================================
47 =========================================================================== */
48 /* Not nice, but it lets wined3d support different versions of directx */
49 #define D3D8CAPSTOWINECAPS(_pD3D8Caps, _pWineCaps) \
50 _pWineCaps->DeviceType = (WINED3DDEVTYPE *) &_pD3D8Caps->DeviceType; \
51 _pWineCaps->AdapterOrdinal = &_pD3D8Caps->AdapterOrdinal; \
52 _pWineCaps->Caps = &_pD3D8Caps->Caps; \
53 _pWineCaps->Caps2 = &_pD3D8Caps->Caps2; \
54 _pWineCaps->Caps3 = &_pD3D8Caps->Caps3; \
55 _pWineCaps->PresentationIntervals = &_pD3D8Caps->PresentationIntervals; \
56 _pWineCaps->CursorCaps = &_pD3D8Caps->CursorCaps; \
57 _pWineCaps->DevCaps = &_pD3D8Caps->DevCaps; \
58 _pWineCaps->PrimitiveMiscCaps = &_pD3D8Caps->PrimitiveMiscCaps; \
59 _pWineCaps->RasterCaps = &_pD3D8Caps->RasterCaps; \
60 _pWineCaps->ZCmpCaps = &_pD3D8Caps->ZCmpCaps; \
61 _pWineCaps->SrcBlendCaps = &_pD3D8Caps->SrcBlendCaps; \
62 _pWineCaps->DestBlendCaps = &_pD3D8Caps->DestBlendCaps; \
63 _pWineCaps->AlphaCmpCaps = &_pD3D8Caps->AlphaCmpCaps; \
64 _pWineCaps->ShadeCaps = &_pD3D8Caps->ShadeCaps; \
65 _pWineCaps->TextureCaps = &_pD3D8Caps->TextureCaps; \
66 _pWineCaps->TextureFilterCaps = &_pD3D8Caps->TextureFilterCaps; \
67 _pWineCaps->CubeTextureFilterCaps = &_pD3D8Caps->CubeTextureFilterCaps; \
68 _pWineCaps->VolumeTextureFilterCaps = &_pD3D8Caps->VolumeTextureFilterCaps; \
69 _pWineCaps->TextureAddressCaps = &_pD3D8Caps->TextureAddressCaps; \
70 _pWineCaps->VolumeTextureAddressCaps = &_pD3D8Caps->VolumeTextureAddressCaps; \
71 _pWineCaps->LineCaps = &_pD3D8Caps->LineCaps; \
72 _pWineCaps->MaxTextureWidth = &_pD3D8Caps->MaxTextureWidth; \
73 _pWineCaps->MaxTextureHeight = &_pD3D8Caps->MaxTextureHeight; \
74 _pWineCaps->MaxVolumeExtent = &_pD3D8Caps->MaxVolumeExtent; \
75 _pWineCaps->MaxTextureRepeat = &_pD3D8Caps->MaxTextureRepeat; \
76 _pWineCaps->MaxTextureAspectRatio = &_pD3D8Caps->MaxTextureAspectRatio; \
77 _pWineCaps->MaxAnisotropy = &_pD3D8Caps->MaxAnisotropy; \
78 _pWineCaps->MaxVertexW = &_pD3D8Caps->MaxVertexW; \
79 _pWineCaps->GuardBandLeft = &_pD3D8Caps->GuardBandLeft; \
80 _pWineCaps->GuardBandTop = &_pD3D8Caps->GuardBandTop; \
81 _pWineCaps->GuardBandRight = &_pD3D8Caps->GuardBandRight; \
82 _pWineCaps->GuardBandBottom = &_pD3D8Caps->GuardBandBottom; \
83 _pWineCaps->ExtentsAdjust = &_pD3D8Caps->ExtentsAdjust; \
84 _pWineCaps->StencilCaps = &_pD3D8Caps->StencilCaps; \
85 _pWineCaps->FVFCaps = &_pD3D8Caps->FVFCaps; \
86 _pWineCaps->TextureOpCaps = &_pD3D8Caps->TextureOpCaps; \
87 _pWineCaps->MaxTextureBlendStages = &_pD3D8Caps->MaxTextureBlendStages; \
88 _pWineCaps->MaxSimultaneousTextures = &_pD3D8Caps->MaxSimultaneousTextures; \
89 _pWineCaps->VertexProcessingCaps = &_pD3D8Caps->VertexProcessingCaps; \
90 _pWineCaps->MaxActiveLights = &_pD3D8Caps->MaxActiveLights; \
91 _pWineCaps->MaxUserClipPlanes = &_pD3D8Caps->MaxUserClipPlanes; \
92 _pWineCaps->MaxVertexBlendMatrices = &_pD3D8Caps->MaxVertexBlendMatrices; \
93 _pWineCaps->MaxVertexBlendMatrixIndex = &_pD3D8Caps->MaxVertexBlendMatrixIndex; \
94 _pWineCaps->MaxPointSize = &_pD3D8Caps->MaxPointSize; \
95 _pWineCaps->MaxPrimitiveCount = &_pD3D8Caps->MaxPrimitiveCount; \
96 _pWineCaps->MaxVertexIndex = &_pD3D8Caps->MaxVertexIndex; \
97 _pWineCaps->MaxStreams = &_pD3D8Caps->MaxStreams; \
98 _pWineCaps->MaxStreamStride = &_pD3D8Caps->MaxStreamStride; \
99 _pWineCaps->VertexShaderVersion = &_pD3D8Caps->VertexShaderVersion; \
100 _pWineCaps->MaxVertexShaderConst = &_pD3D8Caps->MaxVertexShaderConst; \
101 _pWineCaps->PixelShaderVersion = &_pD3D8Caps->PixelShaderVersion; \
102 _pWineCaps->PixelShader1xMaxValue = &_pD3D8Caps->MaxPixelShaderValue;
104 /* Direct3D8 Interfaces: */
105 typedef struct IDirect3DBaseTexture8Impl IDirect3DBaseTexture8Impl;
106 typedef struct IDirect3DVolumeTexture8Impl IDirect3DVolumeTexture8Impl;
107 typedef struct IDirect3D8Impl IDirect3D8Impl;
108 typedef struct IDirect3DDevice8Impl IDirect3DDevice8Impl;
109 typedef struct IDirect3DTexture8Impl IDirect3DTexture8Impl;
110 typedef struct IDirect3DCubeTexture8Impl IDirect3DCubeTexture8Impl;
111 typedef struct IDirect3DIndexBuffer8Impl IDirect3DIndexBuffer8Impl;
112 typedef struct IDirect3DSurface8Impl IDirect3DSurface8Impl;
113 typedef struct IDirect3DSwapChain8Impl IDirect3DSwapChain8Impl;
114 typedef struct IDirect3DResource8Impl IDirect3DResource8Impl;
115 typedef struct IDirect3DVolume8Impl IDirect3DVolume8Impl;
116 typedef struct IDirect3DVertexBuffer8Impl IDirect3DVertexBuffer8Impl;
118 /** Private Interfaces: */
119 typedef struct IDirect3DStateBlockImpl IDirect3DStateBlockImpl;
120 typedef struct IDirect3DVertexShaderImpl IDirect3DVertexShaderImpl;
121 typedef struct IDirect3DPixelShaderImpl IDirect3DPixelShaderImpl;
122 typedef struct IDirect3DVertexShaderDeclarationImpl IDirect3DVertexShaderDeclarationImpl;
124 /* Advance declaration of structures to satisfy compiler */
125 typedef struct IDirect3DVertexShader8Impl IDirect3DVertexShader8Impl;
127 /* ===========================================================================
128 The interfactes themselves
129 =========================================================================== */
135 /*****************************************************************************
136 * Predeclare the interface implementation structures
138 extern const IDirect3D8Vtbl Direct3D8_Vtbl;
140 /*****************************************************************************
141 * IDirect3D implementation structure
143 struct IDirect3D8Impl
145 /* IUnknown fields */
146 const IDirect3D8Vtbl *lpVtbl;
149 /* The WineD3D device */
153 /* ---------------- */
154 /* IDirect3DDevice8 */
155 /* ---------------- */
157 /*****************************************************************************
158 * Predeclare the interface implementation structures
160 extern const IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl;
162 /*****************************************************************************
163 * IDirect3DDevice8 implementation structure
166 typedef void * shader_handle;
168 struct IDirect3DDevice8Impl
170 /* IUnknown fields */
171 const IDirect3DDevice8Vtbl *lpVtbl;
173 /* But what about baseVertexIndex in state blocks? hmm... it may be a better idea to pass this to wined3d */
174 IWineD3DDevice *WineD3DDevice;
175 DWORD shader_handle_table_size;
176 DWORD allocated_shader_handles;
177 shader_handle *shader_handles;
178 shader_handle *free_shader_handles;
180 /* FIXME: Move *baseVertexIndex somewhere sensible like wined3d */
181 UINT baseVertexIndex;
183 /* Avoids recursion with nested ReleaseRef to 0 */
187 /* ---------------- */
188 /* IDirect3DVolume8 */
189 /* ---------------- */
191 /*****************************************************************************
192 * IDirect3DVolume8 implementation structure
194 struct IDirect3DVolume8Impl
196 /* IUnknown fields */
197 const IDirect3DVolume8Vtbl *lpVtbl;
200 /* IDirect3DVolume8 fields */
201 IWineD3DVolume *wineD3DVolume;
203 /* If set forward refcounting to this object */
204 IUnknown *forwardReference;
207 /* ------------------- */
208 /* IDirect3DSwapChain8 */
209 /* ------------------- */
211 /*****************************************************************************
212 * Predeclare the interface implementation structures
214 extern const IDirect3DSwapChain8Vtbl Direct3DSwapChain8_Vtbl;
216 /*****************************************************************************
217 * IDirect3DSwapChain8 implementation structure
219 struct IDirect3DSwapChain8Impl
221 /* IUnknown fields */
222 const IDirect3DSwapChain8Vtbl *lpVtbl;
225 /* IDirect3DSwapChain8 fields */
226 IWineD3DSwapChain *wineD3DSwapChain;
228 /* Parent reference */
229 LPDIRECT3DDEVICE8 parentDevice;
232 /* ----------------- */
233 /* IDirect3DSurface8 */
234 /* ----------------- */
236 /*****************************************************************************
237 * Predeclare the interface implementation structures
239 extern const IDirect3DSurface8Vtbl Direct3DSurface8_Vtbl;
241 /*****************************************************************************
242 * IDirect3DSurface8 implementation structure
244 struct IDirect3DSurface8Impl
246 /* IUnknown fields */
247 const IDirect3DSurface8Vtbl *lpVtbl;
250 /* IDirect3DSurface8 fields */
251 IWineD3DSurface *wineD3DSurface;
253 /* Parent reference */
254 LPDIRECT3DDEVICE8 parentDevice;
256 /* If set forward refcounting to this object */
257 IUnknown *forwardReference;
259 /* Flags an implicit surface */
263 /* ------------------ */
264 /* IDirect3DResource8 */
265 /* ------------------ */
267 /*****************************************************************************
268 * Predeclare the interface implementation structures
270 extern const IDirect3DResource8Vtbl Direct3DResource8_Vtbl;
272 /*****************************************************************************
273 * IDirect3DResource8 implementation structure
275 struct IDirect3DResource8Impl
277 /* IUnknown fields */
278 const IDirect3DResource8Vtbl *lpVtbl;
281 /* IDirect3DResource8 fields */
282 IWineD3DResource *wineD3DResource;
284 extern HRESULT WINAPI IDirect3DResource8Impl_GetDevice(LPDIRECT3DRESOURCE8 iface, IDirect3DDevice8** ppDevice);
286 /* ---------------------- */
287 /* IDirect3DVertexBuffer8 */
288 /* ---------------------- */
290 /*****************************************************************************
291 * Predeclare the interface implementation structures
293 extern const IDirect3DVertexBuffer8Vtbl Direct3DVertexBuffer8_Vtbl;
295 /*****************************************************************************
296 * IDirect3DVertexBuffer8 implementation structure
298 struct IDirect3DVertexBuffer8Impl
300 /* IUnknown fields */
301 const IDirect3DVertexBuffer8Vtbl *lpVtbl;
304 /* IDirect3DResource8 fields */
305 IWineD3DVertexBuffer *wineD3DVertexBuffer;
307 /* Parent reference */
308 LPDIRECT3DDEVICE8 parentDevice;
311 /* --------------------- */
312 /* IDirect3DIndexBuffer8 */
313 /* --------------------- */
315 /*****************************************************************************
316 * Predeclare the interface implementation structures
318 extern const IDirect3DIndexBuffer8Vtbl Direct3DIndexBuffer8_Vtbl;
320 /*****************************************************************************
321 * IDirect3DIndexBuffer8 implementation structure
323 struct IDirect3DIndexBuffer8Impl
325 /* IUnknown fields */
326 const IDirect3DIndexBuffer8Vtbl *lpVtbl;
329 /* IDirect3DResource8 fields */
330 IWineD3DIndexBuffer *wineD3DIndexBuffer;
332 /* Parent reference */
333 LPDIRECT3DDEVICE8 parentDevice;
336 /* --------------------- */
337 /* IDirect3DBaseTexture8 */
338 /* --------------------- */
340 /*****************************************************************************
341 * IDirect3DBaseTexture8 implementation structure
343 struct IDirect3DBaseTexture8Impl
345 /* IUnknown fields */
346 const IDirect3DBaseTexture8Vtbl *lpVtbl;
349 /* IDirect3DResource8 fields */
350 IWineD3DBaseTexture *wineD3DBaseTexture;
353 /* --------------------- */
354 /* IDirect3DCubeTexture8 */
355 /* --------------------- */
357 /*****************************************************************************
358 * Predeclare the interface implementation structures
360 extern const IDirect3DCubeTexture8Vtbl Direct3DCubeTexture8_Vtbl;
362 /*****************************************************************************
363 * IDirect3DCubeTexture8 implementation structure
365 struct IDirect3DCubeTexture8Impl
367 /* IUnknown fields */
368 const IDirect3DCubeTexture8Vtbl *lpVtbl;
371 /* IDirect3DResource8 fields */
372 IWineD3DCubeTexture *wineD3DCubeTexture;
374 /* Parent reference */
375 LPDIRECT3DDEVICE8 parentDevice;
378 /* ----------------- */
379 /* IDirect3DTexture8 */
380 /* ----------------- */
382 /*****************************************************************************
383 * Predeclare the interface implementation structures
385 extern const IDirect3DTexture8Vtbl Direct3DTexture8_Vtbl;
387 /*****************************************************************************
388 * IDirect3DTexture8 implementation structure
390 struct IDirect3DTexture8Impl
392 /* IUnknown fields */
393 const IDirect3DTexture8Vtbl *lpVtbl;
396 /* IDirect3DResourc8 fields */
397 IWineD3DTexture *wineD3DTexture;
399 /* Parent reference */
400 LPDIRECT3DDEVICE8 parentDevice;
403 /* ----------------------- */
404 /* IDirect3DVolumeTexture8 */
405 /* ----------------------- */
407 /*****************************************************************************
408 * Predeclare the interface implementation structures
410 extern const IDirect3DVolumeTexture8Vtbl Direct3DVolumeTexture8_Vtbl;
412 /*****************************************************************************
413 * IDirect3DVolumeTexture8 implementation structure
415 struct IDirect3DVolumeTexture8Impl
417 /* IUnknown fields */
418 const IDirect3DVolumeTexture8Vtbl *lpVtbl;
421 /* IDirect3DResource8 fields */
422 IWineD3DVolumeTexture *wineD3DVolumeTexture;
424 /* Parent reference */
425 LPDIRECT3DDEVICE8 parentDevice;
428 /* ----------------------- */
429 /* IDirect3DStateBlockImpl */
430 /* ----------------------- */
432 /* TODO: Generate a valid GUIDs */
433 /* {83B073CE-6F30-11d9-C687-00046142C14F} */
434 DEFINE_GUID(IID_IDirect3DStateBlock8,
435 0x83b073ce, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
437 DEFINE_GUID(IID_IDirect3DVertexShader8,
438 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
440 DEFINE_GUID(IID_IDirect3DPixelShader8,
441 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
444 /*****************************************************************************
445 * IDirect3DStateBlock8 interface
447 #define INTERFACE IDirect3DStateBlock8
448 DECLARE_INTERFACE_(IDirect3DStateBlock8, IUnknown)
450 /*** IUnknown methods ***/
451 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
452 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
453 STDMETHOD_(ULONG,Release)(THIS) PURE;
454 /*** IDirect3DStateBlock9 methods ***/
455 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8** ppDevice) PURE;
456 STDMETHOD(Capture)(THIS) PURE;
457 STDMETHOD(Apply)(THIS) PURE;
461 /*** IUnknown methods ***/
462 #define IDirect3DStateBlock8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
463 #define IDirect3DStateBlock8_AddRef(p) (p)->lpVtbl->AddRef(p)
464 #define IDirect3DStateBlock8_Release(p) (p)->lpVtbl->Release(p)
465 /*** IDirect3DStateBlock9 methods ***/
466 #define IDirect3DStateBlock8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
467 #define IDirect3DStateBlock8_Capture(p) (p)->lpVtbl->Capture(p)
468 #define IDirect3DStateBlock8_Apply(p) (p)->lpVtbl->Apply(p)
470 /*****************************************************************************
471 * Predeclare the interface implementation structures
473 extern const IDirect3DStateBlock8Vtbl Direct3DStateBlock8_Vtbl;
475 /*****************************************************************************
476 * IDirect3DStateBlock implementation structure
478 typedef struct IDirect3DStateBlock8Impl {
479 /* IUnknown fields */
480 const IDirect3DStateBlock8Vtbl *lpVtbl;
483 /* IDirect3DResource8 fields */
484 IWineD3DStateBlock *wineD3DStateBlock;
485 } IDirect3DStateBlock8Impl;
487 /*****************************************************************************
488 * IDirect3DVertexShader9 interface
490 #define INTERFACE IDirect3DVertexShader8
491 DECLARE_INTERFACE_(IDirect3DVertexShader8, IUnknown)
493 /*** IUnknown methods ***/
494 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
495 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
496 STDMETHOD_(ULONG,Release)(THIS) PURE;
497 /*** IDirect3DVertexShader9 methods ***/
498 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8** ppDevice) PURE;
499 STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
503 /*** IUnknown methods ***/
504 #define IDirect3DVertexShader8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
505 #define IDirect3DVertexShader8_AddRef(p) (p)->lpVtbl->AddRef(p)
506 #define IDirect3DVertexShader8_Release(p) (p)->lpVtbl->Release(p)
507 /*** IDirect3DVertexShader8 methods ***/
508 #define IDirect3DVertexShader8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
509 #define IDirect3DVertexShader8_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
511 /* ------------------------- */
512 /* IDirect3DVertexShader8Impl */
513 /* ------------------------- */
515 /*****************************************************************************
516 * IDirect3DPixelShader9 interface
518 #define INTERFACE IDirect3DPixelShader8
519 DECLARE_INTERFACE_(IDirect3DPixelShader8,IUnknown)
521 /*** IUnknown methods ***/
522 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
523 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
524 STDMETHOD_(ULONG,Release)(THIS) PURE;
525 /*** IDirect3DPixelShader8 methods ***/
526 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8** ppDevice) PURE;
527 STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
531 /*** IUnknown methods ***/
532 #define IDirect3DPixelShader8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
533 #define IDirect3DPixelShader8_AddRef(p) (p)->lpVtbl->AddRef(p)
534 #define IDirect3DPixelShader8_Release(p) (p)->lpVtbl->Release(p)
535 /*** IDirect3DPixelShader8 methods ***/
536 #define IDirect3DPixelShader8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
537 #define IDirect3DPixelShader8_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
540 /*****************************************************************************
541 * Predeclare the interface implementation structures
543 extern const IDirect3DVertexShader8Vtbl Direct3DVertexShader8_Vtbl;
545 /*****************************************************************************
546 * IDirect3DVertexShader implementation structure
549 struct IDirect3DVertexShader8Impl {
550 const IDirect3DVertexShader8Vtbl *lpVtbl;
553 shader_handle *handle;
554 IWineD3DVertexShader *wineD3DVertexShader;
558 /* ------------------------ */
559 /* IDirect3DPixelShaderImpl */
560 /* ------------------------ */
563 /*****************************************************************************
564 * Predeclare the interface implementation structures
566 extern const IDirect3DPixelShader8Vtbl Direct3DPixelShader8_Vtbl;
568 /*****************************************************************************
569 * IDirect3DPixelShader implementation structure
571 typedef struct IDirect3DPixelShader8Impl {
572 const IDirect3DPixelShader8Vtbl *lpVtbl;
575 shader_handle *handle;
576 /* The device, to be replaced by an IDirect3DDeviceImpl */
577 IWineD3DPixelShader *wineD3DPixelShader;
578 } IDirect3DPixelShader8Impl;
581 * Internals functions
583 * to see how not defined it here
587 extern HRESULT WINAPI D3D8CB_CreateSurface(IUnknown *device, IUnknown *pSuperior, UINT Width, UINT Height,
588 WINED3DFORMAT Format, DWORD Usage, WINED3DPOOL Pool, UINT Level,
589 IWineD3DSurface** ppSurface, HANDLE* pSharedHandle);
591 extern HRESULT WINAPI D3D8CB_CreateVolume(IUnknown *pDevice, IUnknown *pSuperior, UINT Width, UINT Height, UINT Depth,
592 WINED3DFORMAT Format, WINED3DPOOL Pool, DWORD Usage,
593 IWineD3DVolume **ppVolume,
594 HANDLE * pSharedHandle);
596 extern HRESULT WINAPI D3D8CB_CreateDepthStencilSurface(IUnknown *device, IUnknown *pSuperior, UINT Width, UINT Height,
597 WINED3DFORMAT Format, WINED3DMULTISAMPLE_TYPE MultiSample,
598 DWORD MultisampleQuality, BOOL Discard,
599 IWineD3DSurface** ppSurface, HANDLE* pSharedHandle);
601 extern HRESULT WINAPI D3D8CB_CreateRenderTarget(IUnknown *device, IUnknown *pSuperior, UINT Width, UINT Height,
602 WINED3DFORMAT Format, WINED3DMULTISAMPLE_TYPE MultiSample,
603 DWORD MultisampleQuality, BOOL Lockable,
604 IWineD3DSurface** ppSurface, HANDLE* pSharedHandle);
606 extern ULONG WINAPI D3D8CB_DestroyDepthStencilSurface (IWineD3DSurface *pSurface);
608 extern ULONG WINAPI D3D8CB_DestroyRenderTarget (IWineD3DSurface *pSurface);
610 extern ULONG WINAPI D3D8CB_DestroySurface(IWineD3DSurface *pSurface);
612 extern ULONG WINAPI D3D8CB_DestroyVolume(IWineD3DVolume *pVolume);
614 #endif /* __WINE_D3DX8_PRIVATE_H */