VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d8/d3d8_private.h@ 25949

最後變更 在這個檔案從25949是 25949,由 vboxsync 提交於 15 年 前

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

  • 屬性 svn:eol-style 設為 native
檔案大小: 21.1 KB
 
1/*
2 * Direct3D 8 private include file
3 *
4 * Copyright 2002-2004 Jason Edmeades
5 * Copyright 2003-2004 Raphael Junqueira
6 * Copyright 2004 Christian Costa
7 *
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.
12 *
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.
17 *
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
21 */
22
23/*
24 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
25 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
26 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
27 * a choice of LGPL license versions is made available with the language indicating
28 * that LGPLv2 or any later version may be used, or where a choice of which version
29 * of the LGPL is applied is otherwise unspecified.
30 */
31
32#ifndef __WINE_D3D8_PRIVATE_H
33#define __WINE_D3D8_PRIVATE_H
34
35#include <stdarg.h>
36
37#define NONAMELESSUNION
38#define NONAMELESSSTRUCT
39#define COBJMACROS
40#include "windef.h"
41#include "winbase.h"
42#include "wingdi.h"
43#include "wine/debug.h"
44#include "d3d8.h"
45#include "wine/wined3d.h"
46
47/* CreateVertexShader can return > 0xFFFF */
48#define VS_HIGHESTFIXEDFXF 0xF0000000
49
50/* ===========================================================================
51 Macros
52 =========================================================================== */
53/* Not nice, but it lets wined3d support different versions of directx */
54#define WINECAPSTOD3D8CAPS(_pD3D8Caps, _pWineCaps) \
55 _pD3D8Caps->DeviceType = (D3DDEVTYPE) _pWineCaps->DeviceType; \
56 _pD3D8Caps->AdapterOrdinal = _pWineCaps->AdapterOrdinal; \
57 _pD3D8Caps->Caps = _pWineCaps->Caps; \
58 _pD3D8Caps->Caps2 = _pWineCaps->Caps2; \
59 _pD3D8Caps->Caps3 = _pWineCaps->Caps3; \
60 _pD3D8Caps->PresentationIntervals = _pWineCaps->PresentationIntervals; \
61 _pD3D8Caps->CursorCaps = _pWineCaps->CursorCaps; \
62 _pD3D8Caps->DevCaps = _pWineCaps->DevCaps; \
63 _pD3D8Caps->PrimitiveMiscCaps = _pWineCaps->PrimitiveMiscCaps; \
64 _pD3D8Caps->RasterCaps = _pWineCaps->RasterCaps; \
65 _pD3D8Caps->ZCmpCaps = _pWineCaps->ZCmpCaps; \
66 _pD3D8Caps->SrcBlendCaps = _pWineCaps->SrcBlendCaps; \
67 _pD3D8Caps->DestBlendCaps = _pWineCaps->DestBlendCaps; \
68 _pD3D8Caps->AlphaCmpCaps = _pWineCaps->AlphaCmpCaps; \
69 _pD3D8Caps->ShadeCaps = _pWineCaps->ShadeCaps; \
70 _pD3D8Caps->TextureCaps = _pWineCaps->TextureCaps; \
71 _pD3D8Caps->TextureFilterCaps = _pWineCaps->TextureFilterCaps; \
72 _pD3D8Caps->CubeTextureFilterCaps = _pWineCaps->CubeTextureFilterCaps; \
73 _pD3D8Caps->VolumeTextureFilterCaps = _pWineCaps->VolumeTextureFilterCaps; \
74 _pD3D8Caps->TextureAddressCaps = _pWineCaps->TextureAddressCaps; \
75 _pD3D8Caps->VolumeTextureAddressCaps = _pWineCaps->VolumeTextureAddressCaps; \
76 _pD3D8Caps->LineCaps = _pWineCaps->LineCaps; \
77 _pD3D8Caps->MaxTextureWidth = _pWineCaps->MaxTextureWidth; \
78 _pD3D8Caps->MaxTextureHeight = _pWineCaps->MaxTextureHeight; \
79 _pD3D8Caps->MaxVolumeExtent = _pWineCaps->MaxVolumeExtent; \
80 _pD3D8Caps->MaxTextureRepeat = _pWineCaps->MaxTextureRepeat; \
81 _pD3D8Caps->MaxTextureAspectRatio = _pWineCaps->MaxTextureAspectRatio; \
82 _pD3D8Caps->MaxAnisotropy = _pWineCaps->MaxAnisotropy; \
83 _pD3D8Caps->MaxVertexW = _pWineCaps->MaxVertexW; \
84 _pD3D8Caps->GuardBandLeft = _pWineCaps->GuardBandLeft; \
85 _pD3D8Caps->GuardBandTop = _pWineCaps->GuardBandTop; \
86 _pD3D8Caps->GuardBandRight = _pWineCaps->GuardBandRight; \
87 _pD3D8Caps->GuardBandBottom = _pWineCaps->GuardBandBottom; \
88 _pD3D8Caps->ExtentsAdjust = _pWineCaps->ExtentsAdjust; \
89 _pD3D8Caps->StencilCaps = _pWineCaps->StencilCaps; \
90 _pD3D8Caps->FVFCaps = _pWineCaps->FVFCaps; \
91 _pD3D8Caps->TextureOpCaps = _pWineCaps->TextureOpCaps; \
92 _pD3D8Caps->MaxTextureBlendStages = _pWineCaps->MaxTextureBlendStages; \
93 _pD3D8Caps->MaxSimultaneousTextures = _pWineCaps->MaxSimultaneousTextures; \
94 _pD3D8Caps->VertexProcessingCaps = _pWineCaps->VertexProcessingCaps; \
95 _pD3D8Caps->MaxActiveLights = _pWineCaps->MaxActiveLights; \
96 _pD3D8Caps->MaxUserClipPlanes = _pWineCaps->MaxUserClipPlanes; \
97 _pD3D8Caps->MaxVertexBlendMatrices = _pWineCaps->MaxVertexBlendMatrices; \
98 _pD3D8Caps->MaxVertexBlendMatrixIndex = _pWineCaps->MaxVertexBlendMatrixIndex; \
99 _pD3D8Caps->MaxPointSize = _pWineCaps->MaxPointSize; \
100 _pD3D8Caps->MaxPrimitiveCount = _pWineCaps->MaxPrimitiveCount; \
101 _pD3D8Caps->MaxVertexIndex = _pWineCaps->MaxVertexIndex; \
102 _pD3D8Caps->MaxStreams = _pWineCaps->MaxStreams; \
103 _pD3D8Caps->MaxStreamStride = _pWineCaps->MaxStreamStride; \
104 _pD3D8Caps->VertexShaderVersion = _pWineCaps->VertexShaderVersion; \
105 _pD3D8Caps->MaxVertexShaderConst = _pWineCaps->MaxVertexShaderConst; \
106 _pD3D8Caps->PixelShaderVersion = _pWineCaps->PixelShaderVersion; \
107 _pD3D8Caps->MaxPixelShaderValue = _pWineCaps->PixelShader1xMaxValue;
108
109void fixup_caps(WINED3DCAPS *pWineCaps) DECLSPEC_HIDDEN;
110
111/* Direct3D8 Interfaces: */
112typedef struct IDirect3DBaseTexture8Impl IDirect3DBaseTexture8Impl;
113typedef struct IDirect3DVolumeTexture8Impl IDirect3DVolumeTexture8Impl;
114typedef struct IDirect3D8Impl IDirect3D8Impl;
115typedef struct IDirect3DDevice8Impl IDirect3DDevice8Impl;
116typedef struct IDirect3DTexture8Impl IDirect3DTexture8Impl;
117typedef struct IDirect3DCubeTexture8Impl IDirect3DCubeTexture8Impl;
118typedef struct IDirect3DIndexBuffer8Impl IDirect3DIndexBuffer8Impl;
119typedef struct IDirect3DSurface8Impl IDirect3DSurface8Impl;
120typedef struct IDirect3DSwapChain8Impl IDirect3DSwapChain8Impl;
121typedef struct IDirect3DResource8Impl IDirect3DResource8Impl;
122typedef struct IDirect3DVolume8Impl IDirect3DVolume8Impl;
123typedef struct IDirect3DVertexBuffer8Impl IDirect3DVertexBuffer8Impl;
124typedef struct IDirect3DVertexShader8Impl IDirect3DVertexShader8Impl;
125
126/* ===========================================================================
127 The interfaces themselves
128 =========================================================================== */
129
130/* ---------- */
131/* IDirect3D8 */
132/* ---------- */
133
134/*****************************************************************************
135 * Predeclare the interface implementation structures
136 */
137extern const IDirect3D8Vtbl Direct3D8_Vtbl DECLSPEC_HIDDEN;
138
139/*****************************************************************************
140 * IDirect3D implementation structure
141 */
142struct IDirect3D8Impl
143{
144 /* IUnknown fields */
145 const IDirect3D8Vtbl *lpVtbl;
146 LONG ref;
147
148 /* The WineD3D device */
149 IWineD3D *WineD3D;
150};
151
152/*****************************************************************************
153 * IDirect3DDevice8 implementation structure
154 */
155
156#define D3D8_INITIAL_HANDLE_TABLE_SIZE 64
157#define D3D8_INVALID_HANDLE ~0U
158
159enum d3d8_handle_type
160{
161 D3D8_HANDLE_FREE,
162 D3D8_HANDLE_VS,
163 D3D8_HANDLE_PS,
164 D3D8_HANDLE_SB,
165};
166
167struct d3d8_handle_entry
168{
169 void *object;
170 enum d3d8_handle_type type;
171};
172
173struct d3d8_handle_table
174{
175 struct d3d8_handle_entry *entries;
176 struct d3d8_handle_entry *free_entries;
177 UINT table_size;
178 UINT entry_count;
179};
180
181struct FvfToDecl
182{
183 DWORD fvf;
184 struct IDirect3DVertexDeclaration8 *decl;
185};
186
187struct IDirect3DDevice8Impl
188{
189 /* IUnknown fields */
190 const IDirect3DDevice8Vtbl *lpVtbl;
191 const IWineD3DDeviceParentVtbl *device_parent_vtbl;
192 LONG ref;
193/* But what about baseVertexIndex in state blocks? hmm... it may be a better idea to pass this to wined3d */
194 IWineD3DDevice *WineD3DDevice;
195 struct d3d8_handle_table handle_table;
196
197 /* FVF management */
198 struct FvfToDecl *decls;
199 UINT numConvertedDecls, declArraySize;
200
201 /* Avoids recursion with nested ReleaseRef to 0 */
202 BOOL inDestruction;
203};
204
205HRESULT device_init(IDirect3DDevice8Impl *device, IWineD3D *wined3d, UINT adapter,
206 D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters) DECLSPEC_HIDDEN;
207
208/* ---------------- */
209/* IDirect3DVolume8 */
210/* ---------------- */
211
212/*****************************************************************************
213 * IDirect3DVolume8 implementation structure
214 */
215struct IDirect3DVolume8Impl
216{
217 /* IUnknown fields */
218 const IDirect3DVolume8Vtbl *lpVtbl;
219 LONG ref;
220
221 /* IDirect3DVolume8 fields */
222 IWineD3DVolume *wineD3DVolume;
223
224 /* The volume container */
225 IUnknown *container;
226
227 /* If set forward refcounting to this object */
228 IUnknown *forwardReference;
229};
230
231HRESULT volume_init(IDirect3DVolume8Impl *volume, IDirect3DDevice8Impl *device, UINT width, UINT height,
232 UINT depth, DWORD usage, WINED3DFORMAT format, WINED3DPOOL pool) DECLSPEC_HIDDEN;
233
234/* ------------------- */
235/* IDirect3DSwapChain8 */
236/* ------------------- */
237
238/*****************************************************************************
239 * IDirect3DSwapChain8 implementation structure
240 */
241struct IDirect3DSwapChain8Impl
242{
243 /* IUnknown fields */
244 const IDirect3DSwapChain8Vtbl *lpVtbl;
245 LONG ref;
246
247 /* IDirect3DSwapChain8 fields */
248 IWineD3DSwapChain *wineD3DSwapChain;
249
250 /* Parent reference */
251 LPDIRECT3DDEVICE8 parentDevice;
252};
253
254HRESULT swapchain_init(IDirect3DSwapChain8Impl *swapchain, IDirect3DDevice8Impl *device,
255 D3DPRESENT_PARAMETERS *present_parameters) DECLSPEC_HIDDEN;
256
257/* ----------------- */
258/* IDirect3DSurface8 */
259/* ----------------- */
260
261/*****************************************************************************
262 * IDirect3DSurface8 implementation structure
263 */
264struct IDirect3DSurface8Impl
265{
266 /* IUnknown fields */
267 const IDirect3DSurface8Vtbl *lpVtbl;
268 LONG ref;
269
270 /* IDirect3DSurface8 fields */
271 IWineD3DSurface *wineD3DSurface;
272
273 /* Parent reference */
274 LPDIRECT3DDEVICE8 parentDevice;
275
276 /* The surface container */
277 IUnknown *container;
278
279 /* If set forward refcounting to this object */
280 IUnknown *forwardReference;
281};
282
283HRESULT surface_init(IDirect3DSurface8Impl *surface, IDirect3DDevice8Impl *device,
284 UINT width, UINT height, D3DFORMAT format, BOOL lockable, BOOL discard, UINT level,
285 DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality) DECLSPEC_HIDDEN;
286
287/* ------------------ */
288/* IDirect3DResource8 */
289/* ------------------ */
290
291/*****************************************************************************
292 * Predeclare the interface implementation structures
293 */
294extern const IDirect3DResource8Vtbl Direct3DResource8_Vtbl DECLSPEC_HIDDEN;
295
296/*****************************************************************************
297 * IDirect3DResource8 implementation structure
298 */
299struct IDirect3DResource8Impl
300{
301 /* IUnknown fields */
302 const IDirect3DResource8Vtbl *lpVtbl;
303 LONG ref;
304
305 /* IDirect3DResource8 fields */
306 IWineD3DResource *wineD3DResource;
307};
308
309/* ---------------------- */
310/* IDirect3DVertexBuffer8 */
311/* ---------------------- */
312
313/*****************************************************************************
314 * IDirect3DVertexBuffer8 implementation structure
315 */
316struct IDirect3DVertexBuffer8Impl
317{
318 /* IUnknown fields */
319 const IDirect3DVertexBuffer8Vtbl *lpVtbl;
320 LONG ref;
321
322 /* IDirect3DResource8 fields */
323 IWineD3DBuffer *wineD3DVertexBuffer;
324
325 /* Parent reference */
326 LPDIRECT3DDEVICE8 parentDevice;
327
328 DWORD fvf;
329};
330
331HRESULT vertexbuffer_init(IDirect3DVertexBuffer8Impl *buffer, IDirect3DDevice8Impl *device,
332 UINT size, DWORD usage, DWORD fvf, D3DPOOL pool) DECLSPEC_HIDDEN;
333
334/* --------------------- */
335/* IDirect3DIndexBuffer8 */
336/* --------------------- */
337
338/*****************************************************************************
339 * IDirect3DIndexBuffer8 implementation structure
340 */
341struct IDirect3DIndexBuffer8Impl
342{
343 /* IUnknown fields */
344 const IDirect3DIndexBuffer8Vtbl *lpVtbl;
345 LONG ref;
346
347 /* IDirect3DResource8 fields */
348 IWineD3DBuffer *wineD3DIndexBuffer;
349
350 /* Parent reference */
351 LPDIRECT3DDEVICE8 parentDevice;
352
353 WINED3DFORMAT format;
354};
355
356HRESULT indexbuffer_init(IDirect3DIndexBuffer8Impl *buffer, IDirect3DDevice8Impl *device,
357 UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN;
358
359/* --------------------- */
360/* IDirect3DBaseTexture8 */
361/* --------------------- */
362
363/*****************************************************************************
364 * IDirect3DBaseTexture8 implementation structure
365 */
366struct IDirect3DBaseTexture8Impl
367{
368 /* IUnknown fields */
369 const IDirect3DBaseTexture8Vtbl *lpVtbl;
370 LONG ref;
371
372 /* IDirect3DResource8 fields */
373 IWineD3DBaseTexture *wineD3DBaseTexture;
374};
375
376/* --------------------- */
377/* IDirect3DCubeTexture8 */
378/* --------------------- */
379
380/*****************************************************************************
381 * IDirect3DCubeTexture8 implementation structure
382 */
383struct IDirect3DCubeTexture8Impl
384{
385 /* IUnknown fields */
386 const IDirect3DCubeTexture8Vtbl *lpVtbl;
387 LONG ref;
388
389 /* IDirect3DResource8 fields */
390 IWineD3DCubeTexture *wineD3DCubeTexture;
391
392 /* Parent reference */
393 LPDIRECT3DDEVICE8 parentDevice;
394};
395
396HRESULT cubetexture_init(IDirect3DCubeTexture8Impl *texture, IDirect3DDevice8Impl *device,
397 UINT edge_length, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN;
398
399/* ----------------- */
400/* IDirect3DTexture8 */
401/* ----------------- */
402
403/*****************************************************************************
404 * IDirect3DTexture8 implementation structure
405 */
406struct IDirect3DTexture8Impl
407{
408 /* IUnknown fields */
409 const IDirect3DTexture8Vtbl *lpVtbl;
410 LONG ref;
411
412 /* IDirect3DResourc8 fields */
413 IWineD3DTexture *wineD3DTexture;
414
415 /* Parent reference */
416 LPDIRECT3DDEVICE8 parentDevice;
417};
418
419HRESULT texture_init(IDirect3DTexture8Impl *texture, IDirect3DDevice8Impl *device,
420 UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN;
421
422/* ----------------------- */
423/* IDirect3DVolumeTexture8 */
424/* ----------------------- */
425
426/*****************************************************************************
427 * IDirect3DVolumeTexture8 implementation structure
428 */
429struct IDirect3DVolumeTexture8Impl
430{
431 /* IUnknown fields */
432 const IDirect3DVolumeTexture8Vtbl *lpVtbl;
433 LONG ref;
434
435 /* IDirect3DResource8 fields */
436 IWineD3DVolumeTexture *wineD3DVolumeTexture;
437
438 /* Parent reference */
439 LPDIRECT3DDEVICE8 parentDevice;
440};
441
442HRESULT volumetexture_init(IDirect3DVolumeTexture8Impl *texture, IDirect3DDevice8Impl *device,
443 UINT width, UINT height, UINT depth, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN;
444
445DEFINE_GUID(IID_IDirect3DVertexDeclaration8,
4460x5dd7478d, 0xcbf3, 0x41a6, 0x8c, 0xfd, 0xfd, 0x19, 0x2b, 0x11, 0xc7, 0x90);
447
448DEFINE_GUID(IID_IDirect3DVertexShader8,
4490xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
450
451DEFINE_GUID(IID_IDirect3DPixelShader8,
4520x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
453
454/*****************************************************************************
455 * IDirect3DVertexDeclaration8 interface
456 */
457#define INTERFACE IDirect3DVertexDeclaration8
458DECLARE_INTERFACE_(IDirect3DVertexDeclaration8, IUnknown)
459{
460 /*** IUnknown methods ***/
461 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** obj_ptr) PURE;
462 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
463 STDMETHOD_(ULONG,Release)(THIS) PURE;
464};
465#undef INTERFACE
466
467/*** IUnknown methods ***/
468#define IDirect3DVertexDeclaration8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
469#define IDirect3DVertexDeclaration8_AddRef(p) (p)->lpVtbl->AddRef(p)
470#define IDirect3DVertexDeclaration8_Release(p) (p)->lpVtbl->Release(p)
471
472typedef struct {
473 const IDirect3DVertexDeclaration8Vtbl *lpVtbl;
474 LONG ref_count;
475
476 DWORD *elements;
477 DWORD elements_size; /* Size of elements, in bytes */
478
479 IWineD3DVertexDeclaration *wined3d_vertex_declaration;
480 DWORD shader_handle;
481} IDirect3DVertexDeclaration8Impl;
482
483HRESULT vertexdeclaration_init(IDirect3DVertexDeclaration8Impl *declaration,
484 IDirect3DDevice8Impl *device, const DWORD *elements, DWORD shader_handle) DECLSPEC_HIDDEN;
485HRESULT vertexdeclaration_init_fvf(IDirect3DVertexDeclaration8Impl *declaration,
486 IDirect3DDevice8Impl *device, DWORD fvf) DECLSPEC_HIDDEN;
487
488/*****************************************************************************
489 * IDirect3DVertexShader8 interface
490 */
491#define INTERFACE IDirect3DVertexShader8
492DECLARE_INTERFACE_(IDirect3DVertexShader8, IUnknown)
493{
494 /*** IUnknown methods ***/
495 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
496 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
497 STDMETHOD_(ULONG,Release)(THIS) PURE;
498};
499#undef INTERFACE
500
501/*** IUnknown methods ***/
502#define IDirect3DVertexShader8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
503#define IDirect3DVertexShader8_AddRef(p) (p)->lpVtbl->AddRef(p)
504#define IDirect3DVertexShader8_Release(p) (p)->lpVtbl->Release(p)
505
506/* ------------------------- */
507/* IDirect3DVertexShader8Impl */
508/* ------------------------- */
509
510/*****************************************************************************
511 * IDirect3DPixelShader8 interface
512 */
513#define INTERFACE IDirect3DPixelShader8
514DECLARE_INTERFACE_(IDirect3DPixelShader8,IUnknown)
515{
516 /*** IUnknown methods ***/
517 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
518 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
519 STDMETHOD_(ULONG,Release)(THIS) PURE;
520};
521#undef INTERFACE
522
523/*** IUnknown methods ***/
524#define IDirect3DPixelShader8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
525#define IDirect3DPixelShader8_AddRef(p) (p)->lpVtbl->AddRef(p)
526#define IDirect3DPixelShader8_Release(p) (p)->lpVtbl->Release(p)
527
528/*****************************************************************************
529 * IDirect3DVertexShader implementation structure
530 */
531
532struct IDirect3DVertexShader8Impl {
533 const IDirect3DVertexShader8Vtbl *lpVtbl;
534 LONG ref;
535
536 IDirect3DVertexDeclaration8 *vertex_declaration;
537 IWineD3DVertexShader *wineD3DVertexShader;
538};
539
540HRESULT vertexshader_init(IDirect3DVertexShader8Impl *shader, IDirect3DDevice8Impl *device,
541 const DWORD *declaration, const DWORD *byte_code, DWORD shader_handle, DWORD usage) DECLSPEC_HIDDEN;
542
543#define D3D8_MAX_VERTEX_SHADER_CONSTANTF 256
544
545/*****************************************************************************
546 * IDirect3DPixelShader implementation structure
547 */
548typedef struct IDirect3DPixelShader8Impl {
549 const IDirect3DPixelShader8Vtbl *lpVtbl;
550 LONG ref;
551
552 DWORD handle;
553 IWineD3DPixelShader *wineD3DPixelShader;
554} IDirect3DPixelShader8Impl;
555
556HRESULT pixelshader_init(IDirect3DPixelShader8Impl *shader, IDirect3DDevice8Impl *device,
557 const DWORD *byte_code, DWORD shader_handle) DECLSPEC_HIDDEN;
558
559/**
560 * Internals functions
561 *
562 * to see how not defined it here
563 */
564D3DFORMAT d3dformat_from_wined3dformat(WINED3DFORMAT format) DECLSPEC_HIDDEN;
565WINED3DFORMAT wined3dformat_from_d3dformat(D3DFORMAT format) DECLSPEC_HIDDEN;
566void load_local_constants(const DWORD *d3d8_elements, IWineD3DVertexShader *wined3d_vertex_shader) DECLSPEC_HIDDEN;
567size_t parse_token(const DWORD *pToken) DECLSPEC_HIDDEN;
568
569#endif /* __WINE_D3DX8_PRIVATE_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette