Added support for nested server waits (to allow waiting in signal
[wine/multimedia.git] / include / d3dcaps.h
blob764569b97fc8f53f4c67f92a8602f0acfde42484
1 #ifndef __WINE_D3DCAPS_H
2 #define __WINE_D3DCAPS_H
4 #include "ddraw.h"
6 typedef struct _D3DTRANSFORMCAPS {
7 DWORD dwSize;
8 DWORD dwCaps;
9 } D3DTRANSFORMCAPS, *LPD3DTRANSFORMCAPS;
11 #define D3DTRANSFORMCAPS_CLIP 0x00000001L
13 typedef struct _D3DLIGHTINGCAPS {
14 DWORD dwSize;
15 DWORD dwCaps;
16 DWORD dwLightingModel;
17 DWORD dwNumLights;
18 } D3DLIGHTINGCAPS, *LPD3DLIGHTINGCAPS;
20 #define D3DLIGHTINGMODEL_RGB 0x00000001
21 #define D3DLIGHTINGMODEL_MONO 0x00000002
23 #define D3DLIGHTCAPS_POINT 0x00000001
24 #define D3DLIGHTCAPS_SPOT 0x00000002
25 #define D3DLIGHTCAPS_DIRECTIONAL 0x00000004
26 #define D3DLIGHTCAPS_PARALLELPOINT 0x00000008
27 #define D3DLIGHTCAPS_GLSPOT 0x00000010
29 typedef struct _D3dPrimCaps {
30 DWORD dwSize;
31 DWORD dwMiscCaps;
32 DWORD dwRasterCaps;
33 DWORD dwZCmpCaps;
34 DWORD dwSrcBlendCaps;
35 DWORD dwDestBlendCaps;
36 DWORD dwAlphaCmpCaps;
37 DWORD dwShadeCaps;
38 DWORD dwTextureCaps;
39 DWORD dwTextureFilterCaps;
40 DWORD dwTextureBlendCaps;
41 DWORD dwTextureAddressCaps;
42 DWORD dwStippleWidth;
43 DWORD dwStippleHeight;
44 } D3DPRIMCAPS, *LPD3DPRIMCAPS;
46 #define D3DPMISCCAPS_MASKPLANES 0x00000001
47 #define D3DPMISCCAPS_MASKZ 0x00000002
48 #define D3DPMISCCAPS_LINEPATTERNREP 0x00000004
49 #define D3DPMISCCAPS_CONFORMANT 0x00000008
50 #define D3DPMISCCAPS_CULLNONE 0x00000010
51 #define D3DPMISCCAPS_CULLCW 0x00000020
52 #define D3DPMISCCAPS_CULLCCW 0x00000040
54 #define D3DPRASTERCAPS_DITHER 0x00000001
55 #define D3DPRASTERCAPS_ROP2 0x00000002
56 #define D3DPRASTERCAPS_XOR 0x00000004
57 #define D3DPRASTERCAPS_PAT 0x00000008
58 #define D3DPRASTERCAPS_ZTEST 0x00000010
59 #define D3DPRASTERCAPS_SUBPIXEL 0x00000020
60 #define D3DPRASTERCAPS_SUBPIXELX 0x00000040
61 #define D3DPRASTERCAPS_FOGVERTEX 0x00000080
62 #define D3DPRASTERCAPS_FOGTABLE 0x00000100
63 #define D3DPRASTERCAPS_STIPPLE 0x00000200
64 #define D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT 0x00000400
65 #define D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT 0x00000800
66 #define D3DPRASTERCAPS_ANTIALIASEDGES 0x00001000
67 #define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000
68 #define D3DPRASTERCAPS_ZBIAS 0x00004000
69 #define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000
70 #define D3DPRASTERCAPS_FOGRANGE 0x00010000
71 #define D3DPRASTERCAPS_ANISOTROPY 0x00020000
72 #define D3DPRASTERCAPS_WBUFFER 0x00040000
73 #define D3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT 0x00080000
74 #define D3DPRASTERCAPS_WFOG 0x00100000
75 #define D3DPRASTERCAPS_ZFOG 0x00200000
77 #define D3DPCMPCAPS_NEVER 0x00000001
78 #define D3DPCMPCAPS_LESS 0x00000002
79 #define D3DPCMPCAPS_EQUAL 0x00000004
80 #define D3DPCMPCAPS_LESSEQUAL 0x00000008
81 #define D3DPCMPCAPS_GREATER 0x00000010
82 #define D3DPCMPCAPS_NOTEQUAL 0x00000020
83 #define D3DPCMPCAPS_GREATEREQUAL 0x00000040
84 #define D3DPCMPCAPS_ALWAYS 0x00000080
86 #define D3DPBLENDCAPS_ZERO 0x00000001
87 #define D3DPBLENDCAPS_ONE 0x00000002
88 #define D3DPBLENDCAPS_SRCCOLOR 0x00000004
89 #define D3DPBLENDCAPS_INVSRCCOLOR 0x00000008
90 #define D3DPBLENDCAPS_SRCALPHA 0x00000010
91 #define D3DPBLENDCAPS_INVSRCALPHA 0x00000020
92 #define D3DPBLENDCAPS_DESTALPHA 0x00000040
93 #define D3DPBLENDCAPS_INVDESTALPHA 0x00000080
94 #define D3DPBLENDCAPS_DESTCOLOR 0x00000100
95 #define D3DPBLENDCAPS_INVDESTCOLOR 0x00000200
96 #define D3DPBLENDCAPS_SRCALPHASAT 0x00000400
97 #define D3DPBLENDCAPS_BOTHSRCALPHA 0x00000800
98 #define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000
100 #define D3DPSHADECAPS_COLORFLATMONO 0x00000001
101 #define D3DPSHADECAPS_COLORFLATRGB 0x00000002
102 #define D3DPSHADECAPS_COLORGOURAUDMONO 0x00000004
103 #define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008
104 #define D3DPSHADECAPS_COLORPHONGMONO 0x00000010
105 #define D3DPSHADECAPS_COLORPHONGRGB 0x00000020
107 #define D3DPSHADECAPS_SPECULARFLATMONO 0x00000040
108 #define D3DPSHADECAPS_SPECULARFLATRGB 0x00000080
109 #define D3DPSHADECAPS_SPECULARGOURAUDMONO 0x00000100
110 #define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200
111 #define D3DPSHADECAPS_SPECULARPHONGMONO 0x00000400
112 #define D3DPSHADECAPS_SPECULARPHONGRGB 0x00000800
114 #define D3DPSHADECAPS_ALPHAFLATBLEND 0x00001000
115 #define D3DPSHADECAPS_ALPHAFLATSTIPPLED 0x00002000
116 #define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000
117 #define D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED 0x00008000
118 #define D3DPSHADECAPS_ALPHAPHONGBLEND 0x00010000
119 #define D3DPSHADECAPS_ALPHAPHONGSTIPPLED 0x00020000
121 #define D3DPSHADECAPS_FOGFLAT 0x00040000
122 #define D3DPSHADECAPS_FOGGOURAUD 0x00080000
123 #define D3DPSHADECAPS_FOGPHONG 0x00100000
125 #define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001
126 #define D3DPTEXTURECAPS_POW2 0x00000002
127 #define D3DPTEXTURECAPS_ALPHA 0x00000004
128 #define D3DPTEXTURECAPS_TRANSPARENCY 0x00000008
129 #define D3DPTEXTURECAPS_BORDER 0x00000010
130 #define D3DPTEXTURECAPS_SQUAREONLY 0x00000020
131 #define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040
132 #define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080
133 #define D3DPTEXTURECAPS_NONPOW2CONDITIONAL 0x00000100L
134 /* yes actually 0x00000200 is unused - or at least unreleased */
135 #define D3DPTEXTURECAPS_PROJECTED 0x00000400
136 #define D3DPTEXTURECAPS_CUBEMAP 0x00000800
137 #define D3DPTEXTURECAPS_COLORKEYBLEND 0x00001000
139 #define D3DPTFILTERCAPS_NEAREST 0x00000001
140 #define D3DPTFILTERCAPS_LINEAR 0x00000002
141 #define D3DPTFILTERCAPS_MIPNEAREST 0x00000004
142 #define D3DPTFILTERCAPS_MIPLINEAR 0x00000008
143 #define D3DPTFILTERCAPS_LINEARMIPNEAREST 0x00000010
144 #define D3DPTFILTERCAPS_LINEARMIPLINEAR 0x00000020
145 /* yes - missing numbers */
146 #define D3DPTFILTERCAPS_MINFPOINT 0x00000100
147 #define D3DPTFILTERCAPS_MINFLINEAR 0x00000200
148 #define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400
149 /* yes - missing numbers */
150 #define D3DPTFILTERCAPS_MIPFPOINT 0x00010000
151 #define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000
152 /* yes - missing numbers */
153 #define D3DPTFILTERCAPS_MAGFPOINT 0x01000000
154 #define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000
155 #define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000
156 #define D3DPTFILTERCAPS_MAGFAFLATCUBIC 0x08000000
157 #define D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC 0x10000000
159 #define D3DPTBLENDCAPS_DECAL 0x00000001
160 #define D3DPTBLENDCAPS_MODULATE 0x00000002
161 #define D3DPTBLENDCAPS_DECALALPHA 0x00000004
162 #define D3DPTBLENDCAPS_MODULATEALPHA 0x00000008
163 #define D3DPTBLENDCAPS_DECALMASK 0x00000010
164 #define D3DPTBLENDCAPS_MODULATEMASK 0x00000020
165 #define D3DPTBLENDCAPS_COPY 0x00000040
166 #define D3DPTBLENDCAPS_ADD 0x00000080
168 #define D3DPTADDRESSCAPS_WRAP 0x00000001
169 #define D3DPTADDRESSCAPS_MIRROR 0x00000002
170 #define D3DPTADDRESSCAPS_CLAMP 0x00000004
171 #define D3DPTADDRESSCAPS_BORDER 0x00000008
172 #define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010
175 typedef struct _D3DDeviceDesc {
176 DWORD dwSize;
177 DWORD dwFlags;
178 D3DCOLORMODEL dcmColorModel;
179 DWORD dwDevCaps;
180 D3DTRANSFORMCAPS dtcTransformCaps;
181 BOOL bClipping;
182 D3DLIGHTINGCAPS dlcLightingCaps;
183 D3DPRIMCAPS dpcLineCaps;
184 D3DPRIMCAPS dpcTriCaps;
185 DWORD dwDeviceRenderBitDepth;
186 DWORD dwDeviceZBufferBitDepth;
187 DWORD dwMaxBufferSize;
188 DWORD dwMaxVertexCount;
190 DWORD dwMinTextureWidth,dwMinTextureHeight;
191 DWORD dwMaxTextureWidth,dwMaxTextureHeight;
192 DWORD dwMinStippleWidth,dwMaxStippleWidth;
193 DWORD dwMinStippleHeight,dwMaxStippleHeight;
195 DWORD dwMaxTextureRepeat;
196 DWORD dwMaxTextureAspectRatio;
197 DWORD dwMaxAnisotropy;
199 D3DVALUE dvGuardBandLeft;
200 D3DVALUE dvGuardBandTop;
201 D3DVALUE dvGuardBandRight;
202 D3DVALUE dvGuardBandBottom;
204 D3DVALUE dvExtentsAdjust;
205 DWORD dwStencilCaps;
207 DWORD dwFVFCaps;
208 DWORD dwTextureOpCaps;
209 WORD wMaxTextureBlendStages;
210 WORD wMaxSimultaneousTextures;
211 } D3DDEVICEDESC,*LPD3DDEVICEDESC;
212 #define D3DDEVICEDESCSIZE (sizeof(D3DDEVICEDESC))
214 typedef struct _D3DDeviceDesc7 {
215 DWORD dwDevCaps;
216 D3DPRIMCAPS dpcLineCaps;
217 D3DPRIMCAPS dpcTriCaps;
218 DWORD dwDeviceRenderBitDepth;
219 DWORD dwDeviceZBufferBitDepth;
221 DWORD dwMinTextureWidth, dwMinTextureHeight;
222 DWORD dwMaxTextureWidth, dwMaxTextureHeight;
224 DWORD dwMaxTextureRepeat;
225 DWORD dwMaxTextureAspectRatio;
226 DWORD dwMaxAnisotropy;
228 D3DVALUE dvGuardBandLeft;
229 D3DVALUE dvGuardBandTop;
230 D3DVALUE dvGuardBandRight;
231 D3DVALUE dvGuardBandBottom;
233 D3DVALUE dvExtentsAdjust;
234 DWORD dwStencilCaps;
235 DWORD dwFVFCaps;
236 DWORD dwTextureOpCaps;
237 WORD wMaxTextureBlendStages;
238 WORD wMaxSimultaneousTextures;
240 DWORD dwMaxActiveLights;
241 D3DVALUE dvMaxVertexW;
242 GUID deviceGUID;
244 WORD wMaxUserClipPlanes;
245 WORD wMaxVertexBlendMatrices;
247 DWORD dwVertexProcessingCaps;
249 DWORD dwReserved1;
250 DWORD dwReserved2;
251 DWORD dwReserved3;
252 DWORD dwReserved4;
253 } D3DDEVICEDESC7, *LPD3DDEVICEDESC7;
254 #define D3DDEVICEDESC7SIZE (sizeof(D3DDEVICEDESC7))
256 #define D3DDD_COLORMODEL 0x00000001
257 #define D3DDD_DEVCAPS 0x00000002
258 #define D3DDD_TRANSFORMCAPS 0x00000004
259 #define D3DDD_LIGHTINGCAPS 0x00000008
260 #define D3DDD_BCLIPPING 0x00000010
261 #define D3DDD_LINECAPS 0x00000020
262 #define D3DDD_TRICAPS 0x00000040
263 #define D3DDD_DEVICERENDERBITDEPTH 0x00000080
264 #define D3DDD_DEVICEZBUFFERBITDEPTH 0x00000100
265 #define D3DDD_MAXBUFFERSIZE 0x00000200
266 #define D3DDD_MAXVERTEXCOUNT 0x00000400
268 #define D3DDEVCAPS_FLOATTLVERTEX 0x00000001
269 #define D3DDEVCAPS_SORTINCREASINGZ 0x00000002
270 #define D3DDEVCAPS_SORTDECREASINGZ 0X00000004
271 #define D3DDEVCAPS_SORTEXACT 0x00000008
272 #define D3DDEVCAPS_EXECUTESYSTEMMEMORY 0x00000010
273 #define D3DDEVCAPS_EXECUTEVIDEOMEMORY 0x00000020
274 #define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x00000040
275 #define D3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x00000080
276 #define D3DDEVCAPS_TEXTURESYSTEMMEMORY 0x00000100
277 #define D3DDEVCAPS_TEXTUREVIDEOMEMORY 0x00000200
278 #define D3DDEVCAPS_DRAWPRIMTLVERTEX 0x00000400
279 #define D3DDEVCAPS_CANRENDERAFTERFLIP 0x00000800
280 #define D3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x00001000
281 #define D3DDEVCAPS_DRAWPRIMITIVES2 0x00002000
282 #define D3DDEVCAPS_SEPARATETEXTUREMEMORIES 0x00004000
283 #define D3DDEVCAPS_DRAWPRIMITIVES2EX 0x00008000
284 #define D3DDEVCAPS_HWTRANSFORMANDLIGHT 0x00010000
285 #define D3DDEVCAPS_CANBLTSYSTONONLOCAL 0x00020000
286 #define D3DDEVCAPS_HWRASTERIZATION 0x00080000
288 #define D3DSTENCILCAPS_KEEP 0x00000001
289 #define D3DSTENCILCAPS_ZERO 0x00000002
290 #define D3DSTENCILCAPS_REPLACE 0x00000004
291 #define D3DSTENCILCAPS_INCRSAT 0x00000008
292 #define D3DSTENCILCAPS_DECRSAT 0x00000010
293 #define D3DSTENCILCAPS_INVERT 0x00000020
294 #define D3DSTENCILCAPS_INCR 0x00000040
295 #define D3DSTENCILCAPS_DECR 0x00000080
297 #define D3DTEXOPCAPS_DISABLE 0x00000001
298 #define D3DTEXOPCAPS_SELECTARG1 0x00000002
299 #define D3DTEXOPCAPS_SELECTARG2 0x00000004
300 #define D3DTEXOPCAPS_MODULATE 0x00000008
301 #define D3DTEXOPCAPS_MODULATE2X 0x00000010
302 #define D3DTEXOPCAPS_MODULATE4X 0x00000020
303 #define D3DTEXOPCAPS_ADD 0x00000040
304 #define D3DTEXOPCAPS_ADDSIGNED 0x00000080
305 #define D3DTEXOPCAPS_ADDSIGNED2X 0x00000100
306 #define D3DTEXOPCAPS_SUBTRACT 0x00000200
307 #define D3DTEXOPCAPS_ADDSMOOTH 0x00000400
308 #define D3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800
309 #define D3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000
310 #define D3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000
311 #define D3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000
312 #define D3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000
313 #define D3DTEXOPCAPS_PREMODULATE 0x00010000
314 #define D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000
315 #define D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000
316 #define D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000
317 #define D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000
318 #define D3DTEXOPCAPS_BUMPENVMAP 0x00200000
319 #define D3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000
320 #define D3DTEXOPCAPS_DOTPRODUCT3 0x00800000
322 #define D3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000FFFF
323 #define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000
325 #define D3DVTXPCAPS_TEXGEN 0x00000001
326 #define D3DVTXPCAPS_MATERIALSOURCE7 0x00000002
327 #define D3DVTXPCAPS_VERTEXFOG 0x00000004
328 #define D3DVTXPCAPS_DIRECTIONALLIGHTS 0x00000008
329 #define D3DVTXPCAPS_POSITIONALLIGHTS 0x00000010
330 #define D3DVTXPCAPS_LOCALVIEWER 0x00000020
332 typedef HRESULT CALLBACK (*LPD3DENUMDEVICESCALLBACK)(LPGUID lpGuid,LPSTR lpDeviceDescription,LPSTR lpDeviceName,LPD3DDEVICEDESC,LPD3DDEVICEDESC,LPVOID);
333 typedef HRESULT CALLBACK (*LPD3DENUMDEVICESCALLBACK7)(LPSTR lpDeviceDescription, LPSTR lpDeviceName, LPD3DDEVICEDESC7, LPVOID);
335 #define D3DFDS_COLORMODEL 0x00000001
336 #define D3DFDS_GUID 0x00000002
337 #define D3DFDS_HARDWARE 0x00000004
338 #define D3DFDS_TRIANGLES 0x00000008
339 #define D3DFDS_LINES 0x00000010
340 #define D3DFDS_MISCCAPS 0x00000020
341 #define D3DFDS_RASTERCAPS 0x00000040
342 #define D3DFDS_ZCMPCAPS 0x00000080
343 #define D3DFDS_ALPHACMPCAPS 0x00000100
344 #define D3DFDS_SRCBLENDCAPS 0x00000200
345 #define D3DFDS_DSTBLENDCAPS 0x00000400
346 #define D3DFDS_SHADECAPS 0x00000800
347 #define D3DFDS_TEXTURECAPS 0x00001000
348 #define D3DFDS_TEXTUREFILTERCAPS 0x00002000
349 #define D3DFDS_TEXTUREBLENDCAPS 0x00004000
350 #define D3DFDS_TEXTUREADDRESSCAPS 0x00008000
352 typedef struct _D3DFINDDEVICESEARCH {
353 DWORD dwSize;
354 DWORD dwFlags;
355 BOOL bHardware;
356 D3DCOLORMODEL dcmColorModel;
357 GUID guid;
358 DWORD dwCaps;
359 D3DPRIMCAPS dpcPrimCaps;
360 } D3DFINDDEVICESEARCH,*LPD3DFINDDEVICESEARCH;
362 typedef struct _D3DFINDDEVICERESULT {
363 DWORD dwSize;
364 GUID guid;
365 D3DDEVICEDESC ddHwDesc;
366 D3DDEVICEDESC ddSwDesc;
367 } D3DFINDDEVICERESULT,*LPD3DFINDDEVICERESULT;
369 typedef struct _D3DExecuteBufferDesc {
370 DWORD dwSize;
371 DWORD dwFlags;
372 DWORD dwCaps;
373 DWORD dwBufferSize;
374 LPVOID lpData;
375 } D3DEXECUTEBUFFERDESC, *LPD3DEXECUTEBUFFERDESC;
377 #define D3DDEB_BUFSIZE 0x00000001
378 #define D3DDEB_CAPS 0x00000002
379 #define D3DDEB_LPDATA 0x00000004
381 #define D3DDEBCAPS_SYSTEMMEMORY 0x00000001
382 #define D3DDEBCAPS_VIDEOMEMORY 0x00000002
383 #define D3DDEBCAPS_MEM (D3DDEBCAPS_SYSTEMMEMORY|D3DDEBCAPS_VIDEOMEMORY) /* = 0x3 */
385 typedef struct _D3DDEVINFO_TEXTUREMANAGER {
386 BOOL bThrashing;
387 DWORD dwApproxBytesDownloaded;
388 DWORD dwNumEvicts;
389 DWORD dwNumVidCreates;
390 DWORD dwNumTexturesUsed;
391 DWORD dwNumUsedTexInVid;
392 DWORD dwWorkingSet;
393 DWORD dwWorkingSetBytes;
394 DWORD dwTotalManaged;
395 DWORD dwTotalBytes;
396 DWORD dwLastPri;
397 } D3DDEVINFO_TEXTUREMANAGER, *LPD3DDEVINFO_TEXTUREMANAGER;
399 typedef struct _D3DDEVINFO_TEXTURING {
400 DWORD dwNumLoads;
401 DWORD dwApproxBytesLoaded;
402 DWORD dwNumPreLoads;
403 DWORD dwNumSet;
404 DWORD dwNumCreates;
405 DWORD dwNumDestroys;
406 DWORD dwNumSetPriorities;
407 DWORD dwNumSetLODs;
408 DWORD dwNumLocks;
409 DWORD dwNumGetDCs;
410 } D3DDEVINFO_TEXTURING, *LPD3DDEVINFO_TEXTURING;
414 #endif