2 * Direct3D wine types include file
4 * Copyright 2002-2003 The wine-d3d team
5 * Copyright 2002-2003 Jason Edmeades
7 * Copyright 2005 Oliver Stieber
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #ifndef __WINE_WINED3D_TYPES_H
25 #define __WINE_WINED3D_TYPES_H
27 /* TODO: remove the dependency on d3d9 or d3d8 */
28 #if !defined( __WINE_D3D8_H ) && !defined( __WINE_D3D9_H )
29 # error You must include d3d8.h or d3d9.h header to use this header
32 #define WINED3D_VSHADER_MAX_CONSTANTS 96
33 #define WINED3D_PSHADER_MAX_CONSTANTS 32
35 typedef struct _WINED3DVECTOR_3 {
41 typedef struct _WINED3DVECTOR_4 {
48 typedef struct WINED3DSHADERVECTOR {
53 } WINED3DSHADERVECTOR;
55 typedef struct WINED3DSHADERSCALAR {
57 } WINED3DSHADERSCALAR;
59 typedef WINED3DSHADERVECTOR WINEVSHADERCONSTANTS8[WINED3D_VSHADER_MAX_CONSTANTS];
61 typedef struct VSHADERDATA {
62 /** Run Time Shader Function Constants */
63 /*D3DXBUFFER* constants;*/
64 WINEVSHADERCONSTANTS8 C;
65 /** Shader Code as char ... */
70 /** temporary here waiting for buffer code */
71 typedef struct VSHADERINPUTDATA {
72 WINED3DSHADERVECTOR V[17];
73 } WINEVSHADERINPUTDATA;
75 /** temporary here waiting for buffer code */
76 typedef struct VSHADEROUTPUTDATA {
77 WINED3DSHADERVECTOR oPos;
78 WINED3DSHADERVECTOR oD[2];
79 WINED3DSHADERVECTOR oT[8];
80 WINED3DSHADERVECTOR oFog;
81 WINED3DSHADERVECTOR oPts;
82 } WINEVSHADEROUTPUTDATA;
84 typedef WINED3DSHADERVECTOR WINEPSHADERCONSTANTS8[WINED3D_PSHADER_MAX_CONSTANTS];
86 typedef struct PSHADERDATA {
87 /** Run Time Shader Function Constants */
88 /*D3DXBUFFER* constants;*/
89 WINEPSHADERCONSTANTS8 C;
90 /** Shader Code as char ... */
95 /** temporary here waiting for buffer code */
96 typedef struct PSHADERINPUTDATA {
97 WINED3DSHADERVECTOR V[2];
98 WINED3DSHADERVECTOR T[8];
99 WINED3DSHADERVECTOR S[16];
100 /*D3DSHADERVECTOR R[12];*/
101 } WINEPSHADERINPUTDATA;
103 /** temporary here waiting for buffer code */
104 typedef struct PSHADEROUTPUTDATA {
105 WINED3DSHADERVECTOR oC[4];
106 WINED3DSHADERVECTOR oDepth;
107 } WINEPSHADEROUTPUTDATA;
109 /*****************************************************************************
110 * WineD3D Structures to be used when d3d8 and d3d9 are incompatible
113 typedef enum _WINED3DDEGREETYPE {
114 WINED3DDEGREE_LINEAR = 1,
115 WINED3DDEGREE_QUADRATIC = 2,
116 WINED3DDEGREE_CUBIC = 3,
117 WINED3DDEGREE_QUINTIC = 5,
119 WINED3DDEGREE_FORCE_DWORD = 0x7fffffff
123 typedef enum _WINED3DFORMAT {
124 WINED3DFMT_UNKNOWN = 0,
126 WINED3DFMT_R8G8B8 = 20,
127 WINED3DFMT_A8R8G8B8 = 21,
128 WINED3DFMT_X8R8G8B8 = 22,
129 WINED3DFMT_R5G6B5 = 23,
130 WINED3DFMT_X1R5G5B5 = 24,
131 WINED3DFMT_A1R5G5B5 = 25,
132 WINED3DFMT_A4R4G4B4 = 26,
133 WINED3DFMT_R3G3B2 = 27,
135 WINED3DFMT_A8R3G3B2 = 29,
136 WINED3DFMT_X4R4G4B4 = 30,
137 WINED3DFMT_A2B10G10R10 = 31,
138 WINED3DFMT_A8B8G8R8 = 32,
139 WINED3DFMT_X8B8G8R8 = 33,
140 WINED3DFMT_G16R16 = 34,
141 WINED3DFMT_A2R10G10B10 = 35,
142 WINED3DFMT_A16B16G16R16 = 36,
145 WINED3DFMT_A8P8 = 40,
149 WINED3DFMT_A8L8 = 51,
150 WINED3DFMT_A4L4 = 52,
152 WINED3DFMT_V8U8 = 60,
153 WINED3DFMT_L6V5U5 = 61,
154 WINED3DFMT_X8L8V8U8 = 62,
155 WINED3DFMT_Q8W8V8U8 = 63,
156 WINED3DFMT_V16U16 = 64,
157 WINED3DFMT_W11V11U10 = 65,
158 WINED3DFMT_A2W10V10U10 = 67,
160 WINED3DFMT_UYVY = MAKEFOURCC('U', 'Y', 'V', 'Y'),
161 WINED3DFMT_YUY2 = MAKEFOURCC('Y', 'U', 'Y', '2'),
162 WINED3DFMT_DXT1 = MAKEFOURCC('D', 'X', 'T', '1'),
163 WINED3DFMT_DXT2 = MAKEFOURCC('D', 'X', 'T', '2'),
164 WINED3DFMT_DXT3 = MAKEFOURCC('D', 'X', 'T', '3'),
165 WINED3DFMT_DXT4 = MAKEFOURCC('D', 'X', 'T', '4'),
166 WINED3DFMT_DXT5 = MAKEFOURCC('D', 'X', 'T', '5'),
167 WINED3DFMT_MULTI2_ARGB = MAKEFOURCC('M', 'E', 'T', '1'),
168 WINED3DFMT_G8R8_G8B8 = MAKEFOURCC('G', 'R', 'G', 'B'),
169 WINED3DFMT_R8G8_B8G8 = MAKEFOURCC('R', 'G', 'B', 'G'),
171 WINED3DFMT_D16_LOCKABLE = 70,
173 WINED3DFMT_D15S1 = 73,
174 WINED3DFMT_D24S8 = 75,
175 WINED3DFMT_D24X8 = 77,
176 WINED3DFMT_D24X4S4 = 79,
178 WINED3DFMT_D32F_LOCKABLE = 82,
179 WINED3DFMT_D24FS8 = 83,
181 WINED3DFMT_VERTEXDATA = 100,
182 WINED3DFMT_INDEX16 = 101,
183 WINED3DFMT_INDEX32 = 102,
184 WINED3DFMT_Q16W16V16U16 = 110,
185 /* Flaoting point formats */
186 WINED3DFMT_R16F = 111,
187 WINED3DFMT_G16R16F = 112,
188 WINED3DFMT_A16B16G16R16F = 113,
191 WINED3DFMT_R32F = 114,
192 WINED3DFMT_G32R32F = 115,
193 WINED3DFMT_A32B32G32R32F = 116,
195 WINED3DFMT_CxV8U8 = 117,
198 WINED3DFMT_FORCE_DWORD = 0xFFFFFFFF
204 typedef enum _WINED3DRENDERSTATETYPE {
205 WINED3DRS_ZENABLE = 7,
206 WINED3DRS_FILLMODE = 8,
207 WINED3DRS_SHADEMODE = 9,
208 WINED3DRS_LINEPATTERN = 10,
209 WINED3DRS_ZWRITEENABLE = 14,
210 WINED3DRS_ALPHATESTENABLE = 15,
211 WINED3DRS_LASTPIXEL = 16,
212 WINED3DRS_SRCBLEND = 19,
213 WINED3DRS_DESTBLEND = 20,
214 WINED3DRS_CULLMODE = 22,
215 WINED3DRS_ZFUNC = 23,
216 WINED3DRS_ALPHAREF = 24,
217 WINED3DRS_ALPHAFUNC = 25,
218 WINED3DRS_DITHERENABLE = 26,
219 WINED3DRS_ALPHABLENDENABLE = 27,
220 WINED3DRS_FOGENABLE = 28,
221 WINED3DRS_SPECULARENABLE = 29,
222 WINED3DRS_ZVISIBLE = 30,
223 WINED3DRS_FOGCOLOR = 34,
224 WINED3DRS_FOGTABLEMODE = 35,
225 WINED3DRS_FOGSTART = 36,
226 WINED3DRS_FOGEND = 37,
227 WINED3DRS_FOGDENSITY = 38,
228 WINED3DRS_EDGEANTIALIAS = 40,
229 WINED3DRS_ZBIAS = 47,
230 WINED3DRS_RANGEFOGENABLE = 48,
231 WINED3DRS_STENCILENABLE = 52,
232 WINED3DRS_STENCILFAIL = 53,
233 WINED3DRS_STENCILZFAIL = 54,
234 WINED3DRS_STENCILPASS = 55,
235 WINED3DRS_STENCILFUNC = 56,
236 WINED3DRS_STENCILREF = 57,
237 WINED3DRS_STENCILMASK = 58,
238 WINED3DRS_STENCILWRITEMASK = 59,
239 WINED3DRS_TEXTUREFACTOR = 60,
240 WINED3DRS_WRAP0 = 128,
241 WINED3DRS_WRAP1 = 129,
242 WINED3DRS_WRAP2 = 130,
243 WINED3DRS_WRAP3 = 131,
244 WINED3DRS_WRAP4 = 132,
245 WINED3DRS_WRAP5 = 133,
246 WINED3DRS_WRAP6 = 134,
247 WINED3DRS_WRAP7 = 135,
248 WINED3DRS_CLIPPING = 136,
249 WINED3DRS_LIGHTING = 137,
250 WINED3DRS_AMBIENT = 139,
251 WINED3DRS_FOGVERTEXMODE = 140,
252 WINED3DRS_COLORVERTEX = 141,
253 WINED3DRS_LOCALVIEWER = 142,
254 WINED3DRS_NORMALIZENORMALS = 143,
255 WINED3DRS_DIFFUSEMATERIALSOURCE = 145,
256 WINED3DRS_SPECULARMATERIALSOURCE = 146,
257 WINED3DRS_AMBIENTMATERIALSOURCE = 147,
258 WINED3DRS_EMISSIVEMATERIALSOURCE = 148,
259 WINED3DRS_VERTEXBLEND = 151,
260 WINED3DRS_CLIPPLANEENABLE = 152,
261 WINED3DRS_SOFTWAREVERTEXPROCESSING = 153,
262 WINED3DRS_POINTSIZE = 154,
263 WINED3DRS_POINTSIZE_MIN = 155,
264 WINED3DRS_POINTSPRITEENABLE = 156,
265 WINED3DRS_POINTSCALEENABLE = 157,
266 WINED3DRS_POINTSCALE_A = 158,
267 WINED3DRS_POINTSCALE_B = 159,
268 WINED3DRS_POINTSCALE_C = 160,
269 WINED3DRS_MULTISAMPLEANTIALIAS = 161,
270 WINED3DRS_MULTISAMPLEMASK = 162,
271 WINED3DRS_PATCHEDGESTYLE = 163,
272 WINED3DRS_PATCHSEGMENTS = 164,
273 WINED3DRS_DEBUGMONITORTOKEN = 165,
274 WINED3DRS_POINTSIZE_MAX = 166,
275 WINED3DRS_INDEXEDVERTEXBLENDENABLE = 167,
276 WINED3DRS_COLORWRITEENABLE = 168,
277 WINED3DRS_TWEENFACTOR = 170,
278 WINED3DRS_BLENDOP = 171,
279 WINED3DRS_POSITIONORDER = 172,
280 WINED3DRS_NORMALORDER = 173,
281 WINED3DRS_POSITIONDEGREE = 172,
282 WINED3DRS_NORMALDEGREE = 173,
283 WINED3DRS_SCISSORTESTENABLE = 174,
284 WINED3DRS_SLOPESCALEDEPTHBIAS = 175,
285 WINED3DRS_ANTIALIASEDLINEENABLE = 176,
286 WINED3DRS_MINTESSELLATIONLEVEL = 178,
287 WINED3DRS_MAXTESSELLATIONLEVEL = 179,
288 WINED3DRS_ADAPTIVETESS_X = 180,
289 WINED3DRS_ADAPTIVETESS_Y = 181,
290 WINED3DRS_ADAPTIVETESS_Z = 182,
291 WINED3DRS_ADAPTIVETESS_W = 183,
292 WINED3DRS_ENABLEADAPTIVETESSELLATION= 184,
293 WINED3DRS_TWOSIDEDSTENCILMODE = 185,
294 WINED3DRS_CCW_STENCILFAIL = 186,
295 WINED3DRS_CCW_STENCILZFAIL = 187,
296 WINED3DRS_CCW_STENCILPASS = 188,
297 WINED3DRS_CCW_STENCILFUNC = 189,
298 WINED3DRS_COLORWRITEENABLE1 = 190,
299 WINED3DRS_COLORWRITEENABLE2 = 191,
300 WINED3DRS_COLORWRITEENABLE3 = 192,
301 WINED3DRS_BLENDFACTOR = 193,
302 WINED3DRS_SRGBWRITEENABLE = 194,
303 WINED3DRS_DEPTHBIAS = 195,
304 WINED3DRS_WRAP8 = 198,
305 WINED3DRS_WRAP9 = 199,
306 WINED3DRS_WRAP10 = 200,
307 WINED3DRS_WRAP11 = 201,
308 WINED3DRS_WRAP12 = 202,
309 WINED3DRS_WRAP13 = 203,
310 WINED3DRS_WRAP14 = 204,
311 WINED3DRS_WRAP15 = 205,
312 WINED3DRS_SEPARATEALPHABLENDENABLE = 206,
313 WINED3DRS_SRCBLENDALPHA = 207,
314 WINED3DRS_DESTBLENDALPHA = 208,
315 WINED3DRS_BLENDOPALPHA = 209,
317 WINED3DRS_FORCE_DWORD = 0x7fffffff
318 } WINED3DRENDERSTATETYPE;
320 #define WINEHIGHEST_RENDER_STATE WINED3DRS_BLENDOPALPHA
321 /* Highest D3DRS_ value */
323 typedef enum _WINED3DSWAPEFFECT {
324 WINED3DSWAPEFFECT_DISCARD = 1,
325 WINED3DSWAPEFFECT_FLIP = 2,
326 WINED3DSWAPEFFECT_COPY = 3,
327 WINED3DSWAPEFFECT_COPY_VSYNC = 4,
328 WINED3DSWAPEFFECT_FORCE_DWORD = 0xFFFFFFFF
332 typedef enum _WINED3DSAMPLERSTATETYPE {
333 WINED3DSAMP_ADDRESSU = 1,
334 WINED3DSAMP_ADDRESSV = 2,
335 WINED3DSAMP_ADDRESSW = 3,
336 WINED3DSAMP_BORDERCOLOR = 4,
337 WINED3DSAMP_MAGFILTER = 5,
338 WINED3DSAMP_MINFILTER = 6,
339 WINED3DSAMP_MIPFILTER = 7,
340 WINED3DSAMP_MIPMAPLODBIAS = 8,
341 WINED3DSAMP_MAXMIPLEVEL = 9,
342 WINED3DSAMP_MAXANISOTROPY = 10,
343 WINED3DSAMP_SRGBTEXTURE = 11,
344 WINED3DSAMP_ELEMENTINDEX = 12,
345 WINED3DSAMP_DMAPOFFSET = 13,
347 WINED3DSAMP_FORCE_DWORD = 0x7fffffff,
348 } WINED3DSAMPLERSTATETYPE;
349 #define WINED3D_HIGHEST_SAMPLER_STATE WINED3DSAMP_DMAPOFFSET
351 typedef enum _WINED3DTEXTURESTAGESTATETYPE {
352 WINED3DTSS_COLOROP = 1,
353 WINED3DTSS_COLORARG1 = 2,
354 WINED3DTSS_COLORARG2 = 3,
355 WINED3DTSS_ALPHAOP = 4,
356 WINED3DTSS_ALPHAARG1 = 5,
357 WINED3DTSS_ALPHAARG2 = 6,
358 WINED3DTSS_BUMPENVMAT00 = 7,
359 WINED3DTSS_BUMPENVMAT01 = 8,
360 WINED3DTSS_BUMPENVMAT10 = 9,
361 WINED3DTSS_BUMPENVMAT11 = 10,
362 WINED3DTSS_TEXCOORDINDEX = 11,
363 WINED3DTSS_BUMPENVLSCALE = 22,
364 WINED3DTSS_BUMPENVLOFFSET = 23,
365 WINED3DTSS_TEXTURETRANSFORMFLAGS = 24,
366 WINED3DTSS_ADDRESSW = 25,
367 WINED3DTSS_COLORARG0 = 26,
368 WINED3DTSS_ALPHAARG0 = 27,
369 WINED3DTSS_RESULTARG = 28,
370 WINED3DTSS_CONSTANT = 32,
372 WINED3DTSS_FORCE_DWORD = 0x7fffffff
373 } WINED3DTEXTURESTAGESTATETYPE;
375 #define WINED3D_HIGHEST_TEXTURE_STATE WINED3DTSS_CONSTANT
377 typedef struct _WINEDD3DRECTPATCH_INFO {
378 UINT StartVertexOffsetWidth;
379 UINT StartVertexOffsetHeight;
384 WINED3DDEGREETYPE Degree;
385 } WINED3DRECTPATCH_INFO;
388 typedef struct _WINED3DADAPTER_IDENTIFIER {
392 LARGE_INTEGER *DriverVersion;
397 GUID *DeviceIdentifier;
399 } WINED3DADAPTER_IDENTIFIER;
401 typedef struct _WINED3DPRESENT_PARAMETERS {
402 UINT *BackBufferWidth;
403 UINT *BackBufferHeight;
404 WINED3DFORMAT *BackBufferFormat;
405 UINT *BackBufferCount;
406 D3DMULTISAMPLE_TYPE *MultiSampleType;
407 DWORD *MultiSampleQuality;
408 D3DSWAPEFFECT *SwapEffect;
411 BOOL *EnableAutoDepthStencil;
412 WINED3DFORMAT *AutoDepthStencilFormat;
414 UINT *FullScreen_RefreshRateInHz;
415 UINT *PresentationInterval;
416 } WINED3DPRESENT_PARAMETERS;
418 typedef struct _WINED3DSURFACE_DESC
420 WINED3DFORMAT *Format;
421 D3DRESOURCETYPE *Type;
426 D3DMULTISAMPLE_TYPE *MultiSampleType;
427 DWORD *MultiSampleQuality;
430 } WINED3DSURFACE_DESC;
432 typedef struct _WINED3DVOLUME_DESC
434 WINED3DFORMAT *Format;
435 D3DRESOURCETYPE *Type;
443 } WINED3DVOLUME_DESC;
445 typedef struct _WINED3DVERTEXELEMENT {
452 BYTE Reg; /* DirectX 8 */
453 } WINED3DVERTEXELEMENT, *LPWINED3DVERTEXELEMENT;
456 typedef enum _WINED3DQUERYTYPE {
457 WINED3DQUERYTYPE_VCACHE = 4,
458 WINED3DQUERYTYPE_RESOURCEMANAGER = 5,
459 WINED3DQUERYTYPE_VERTEXSTATS = 6,
460 WINED3DQUERYTYPE_EVENT = 8,
461 WINED3DQUERYTYPE_OCCLUSION = 9,
462 WINED3DQUERYTYPE_TIMESTAMP = 10,
463 WINED3DQUERYTYPE_TIMESTAMPDISJOINT = 11,
464 WINED3DQUERYTYPE_TIMESTAMPFREQ = 12,
465 WINED3DQUERYTYPE_PIPELINETIMINGS = 13,
466 WINED3DQUERYTYPE_INTERFACETIMINGS = 14,
467 WINED3DQUERYTYPE_VERTEXTIMINGS = 15,
468 WINED3DQUERYTYPE_PIXELTIMINGS = 16,
469 WINED3DQUERYTYPE_BANDWIDTHTIMINGS = 17,
470 WINED3DQUERYTYPE_CACHEUTILIZATION = 18
473 #define WINED3DISSUE_BEGIN (1 << 1)
474 #define WINED3DISSUE_END (1 << 0)
475 #define WINED3DGETDATA_FLUSH (1 << 0)
477 typedef struct _WINED3DDEVICE_CREATION_PARAMETERS {
479 D3DDEVTYPE DeviceType;
482 } WINED3DDEVICE_CREATION_PARAMETERS;
484 typedef struct _WINED3DDEVINFO_BANDWIDTHTIMINGS {
485 float MaxBandwidthUtilized;
486 float FrontEndUploadMemoryUtilizedPercent;
487 float VertexRateUtilizedPercent;
488 float TriangleSetupRateUtilizedPercent;
489 float FillRateUtilizedPercent;
490 } WINED3DDEVINFO_BANDWIDTHTIMINGS;
492 typedef struct _WINED3DDEVINFO_CACHEUTILIZATION {
493 float TextureCacheHitRate;
494 float PostTransformVertexCacheHitRate;
495 } WINED3DDEVINFO_CACHEUTILIZATION;
497 typedef struct _WINED3DDEVINFO_INTERFACETIMINGS {
498 float WaitingForGPUToUseApplicationResourceTimePercent;
499 float WaitingForGPUToAcceptMoreCommandsTimePercent;
500 float WaitingForGPUToStayWithinLatencyTimePercent;
501 float WaitingForGPUExclusiveResourceTimePercent;
502 float WaitingForGPUOtherTimePercent;
503 } WINED3DDEVINFO_INTERFACETIMINGS;
505 typedef struct _WINED3DDEVINFO_PIPELINETIMINGS {
506 float VertexProcessingTimePercent;
507 float PixelProcessingTimePercent;
508 float OtherGPUProcessingTimePercent;
509 float GPUIdleTimePercent;
510 } WINED3DDEVINFO_PIPELINETIMINGS;
512 typedef struct _WINED3DDEVINFO_STAGETIMINGS {
513 float MemoryProcessingPercent;
514 float ComputationProcessingPercent;
515 } WINED3DDEVINFO_STAGETIMINGS;
518 typedef struct WINED3DRESOURCESTATS {
520 DWORD ApproxBytesDownloaded;
525 DWORD NumUsedInVidMem;
527 DWORD WorkingSetBytes;
530 } WINED3DRESOURCESTATS;
532 typedef enum _WINED3DRESOURCETYPE {
533 WINED3DRTYPE_SURFACE = 1,
534 WINED3DRTYPE_VOLUME = 2,
535 WINED3DRTYPE_TEXTURE = 3,
536 WINED3DRTYPE_VOLUMETEXTURE = 4,
537 WINED3DRTYPE_CUBETEXTURE = 5,
538 WINED3DRTYPE_VERTEXBUFFER = 6,
539 WINED3DRTYPE_INDEXBUFFER = 7,
541 WINED3DRTYPE_FORCE_DWORD = 0x7fffffff
542 } WINED3DRESOURCETYPE;
544 #define WINED3DRTYPECOUNT (WINED3DRTYPE_INDEXBUFFER+1)
546 typedef struct _WINED3DDEVINFO_RESOURCEMANAGER {
547 WINED3DRESOURCESTATS stats[WINED3DRTYPECOUNT];
548 } WINED3DDEVINFO_RESOURCEMANAGER;
550 typedef struct _WINED3DDEVINFO_VERTEXSTATS {
551 DWORD NumRenderedTriangles;
552 DWORD NumExtraClippingTriangles;
553 } WINED3DDEVINFO_VERTEXSTATS;
556 /*Vertex cache optimization hints.*/
557 typedef struct WINED3DDEVINFO_VCACHE {
558 /*Must be a 4 char code FOURCC (e.g. CACH)*/
560 /*0 to get the longest strips, 1 vertex cache*/
562 /*Cache size to use (only valid if OptMethod==1) */
564 /*internal for deciding when to restart strips, non user modifyable (only valid if OptMethod==1)*/
566 } WINED3DDEVINFO_VCACHE;
569 * The wined3dcaps structure
572 typedef struct _WINED3DVSHADERCAPS2_0 {
574 INT *DynamicFlowControlDepth;
576 INT *StaticFlowControlDepth;
577 } WINED3DVSHADERCAPS2_0;
579 typedef struct _WINED3DPSHADERCAPS2_0 {
581 INT *DynamicFlowControlDepth;
583 INT *StaticFlowControlDepth;
584 INT *NumInstructionSlots;
585 } WINED3DPSHADERCAPS2_0;
587 typedef struct _WINED3DCAPS {
588 D3DDEVTYPE *DeviceType;
589 UINT *AdapterOrdinal;
594 DWORD *PresentationIntervals;
600 DWORD *PrimitiveMiscCaps;
604 DWORD *DestBlendCaps;
608 DWORD *TextureFilterCaps;
609 DWORD *CubeTextureFilterCaps;
610 DWORD *VolumeTextureFilterCaps;
611 DWORD *TextureAddressCaps;
612 DWORD *VolumeTextureAddressCaps;
616 DWORD *MaxTextureWidth;
617 DWORD *MaxTextureHeight;
618 DWORD *MaxVolumeExtent;
620 DWORD *MaxTextureRepeat;
621 DWORD *MaxTextureAspectRatio;
622 DWORD *MaxAnisotropy;
625 float *GuardBandLeft;
627 float *GuardBandRight;
628 float *GuardBandBottom;
630 float *ExtentsAdjust;
634 DWORD *TextureOpCaps;
635 DWORD *MaxTextureBlendStages;
636 DWORD *MaxSimultaneousTextures;
638 DWORD *VertexProcessingCaps;
639 DWORD *MaxActiveLights;
640 DWORD *MaxUserClipPlanes;
641 DWORD *MaxVertexBlendMatrices;
642 DWORD *MaxVertexBlendMatrixIndex;
646 DWORD *MaxPrimitiveCount;
647 DWORD *MaxVertexIndex;
649 DWORD *MaxStreamStride;
651 DWORD *VertexShaderVersion;
652 DWORD *MaxVertexShaderConst;
654 DWORD *PixelShaderVersion;
655 float *PixelShader1xMaxValue;
660 float *MaxNpatchTessellationLevel;
661 DWORD *Reserved5; /*undocumented*/
663 UINT *MasterAdapterOrdinal;
664 UINT *AdapterOrdinalInGroup;
665 UINT *NumberOfAdaptersInGroup;
667 DWORD *NumSimultaneousRTs;
668 DWORD *StretchRectFilterCaps;
669 WINED3DVSHADERCAPS2_0 VS20Caps;
670 WINED3DPSHADERCAPS2_0 PS20Caps;
671 DWORD *VertexTextureFilterCaps;
672 DWORD *MaxVShaderInstructionsExecuted;
673 DWORD *MaxPShaderInstructionsExecuted;
674 DWORD *MaxVertexShader30InstructionSlots;
675 DWORD *MaxPixelShader30InstructionSlots;
676 DWORD *Reserved2;/* Not in the microsoft headers but documented */
681 typedef enum _WINED3DSTATEBLOCKTYPE {
684 WINED3DSBT_PIXELSTATE = 2,
685 WINED3DSBT_VERTEXSTATE = 3,
687 WINED3DSBT_FORCE_DWORD = 0xffffffff
688 } WINED3DSTATEBLOCKTYPE;
690 typedef struct glDescriptor {
694 int/*GLenum*/ glFormat;
695 int/*GLenum*/ glFormatInternal;
696 int/*GLenum*/ glType;
698 /****************************
699 * * Vertex Shaders Declaration
702 typedef enum _WINED3DDECLUSAGE {
703 WINED3DSHADERDECLUSAGE_POSITION = 0,
704 WINED3DSHADERDECLUSAGE_BLENDWEIGHT,
705 WINED3DSHADERDECLUSAGE_BLENDINDICES,
706 WINED3DSHADERDECLUSAGE_NORMAL,
707 WINED3DSHADERDECLUSAGE_PSIZE ,
708 WINED3DSHADERDECLUSAGE_TEXCOORD0,
709 WINED3DSHADERDECLUSAGE_TEXCOORD1,
710 WINED3DSHADERDECLUSAGE_TEXCOORD2,
711 WINED3DSHADERDECLUSAGE_TEXCOORD3,
712 WINED3DSHADERDECLUSAGE_TEXCOORD4,
713 WINED3DSHADERDECLUSAGE_TEXCOORD5,
714 WINED3DSHADERDECLUSAGE_TEXCOORD6,
715 WINED3DSHADERDECLUSAGE_TEXCOORD7,
716 WINED3DSHADERDECLUSAGE_TANGENT,
717 WINED3DSHADERDECLUSAGE_BINORMAL,
718 WINED3DSHADERDECLUSAGE_TESSFACTOR,
719 WINED3DSHADERDECLUSAGE_POSITIONT,
720 WINED3DSHADERDECLUSAGE_DIFFUSE,
721 WINED3DSHADERDECLUSAGE_SPECULAR,
722 WINED3DSHADERDECLUSAGE_FOG,
723 WINED3DSHADERDECLUSAGE_DEPTH,
724 WINED3DSHADERDECLUSAGE_SAMPLE,
725 WINED3DSHADERDECLUSAGE_POSITION2,
726 WINED3DSHADERDECLUSAGE_POSITION21,
727 WINED3DSHADERDECLUSAGE_POSITION22,
728 WINED3DSHADERDECLUSAGE_POSITION23,
729 WINED3DSHADERDECLUSAGE_POSITION24,
730 WINED3DSHADERDECLUSAGE_POSITION25,
731 WINED3DSHADERDECLUSAGE_POSITION26,
732 WINED3DSHADERDECLUSAGE_POSITION27,
733 WINED3DSHADERDECLUSAGE_POSITION28,
734 WINED3DSHADERDECLUSAGE_NORMAL2,
735 WINED3DSHADERDECLUSAGE_POSITIONT2,
736 WINED3DSHADERDECLUSAGE_MAX_USAGE
737 } WINED3DSHADERDECLUSAGE;