2 * Copyright 2007 Henri Verbeet
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_WINED3D_CAPS_H
20 #define __WINE_WINED3D_CAPS_H
22 #define WINED3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020L
23 #define WINED3DCAPS3_LINEAR_TO_SRGB_PRESENTATION 0x00000080L
24 #define WINED3DCAPS3_COPY_TO_VIDMEM 0x00000100L
25 #define WINED3DCAPS3_COPY_TO_SYSTEMMEM 0x00000200L
26 #define WINED3DCAPS3_RESERVED 0x8000001FL
28 #define WINED3DDEVCAPS2_STREAMOFFSET 0x00000001
29 #define WINED3DDEVCAPS2_DMAPNPATCH 0x00000002
30 #define WINED3DDEVCAPS2_ADAPTIVETESSRTPATCH 0x00000004
31 #define WINED3DDEVCAPS2_ADAPTIVETESSNPATCH 0x00000008
32 #define WINED3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES 0x00000010
33 #define WINED3DDEVCAPS2_PRESAMPLEDDMAPNPATCH 0x00000020
34 #define WINED3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET 0x00000040
36 #define WINED3DDTCAPS_UBYTE4 0x00000001
37 #define WINED3DDTCAPS_UBYTE4N 0x00000002
38 #define WINED3DDTCAPS_SHORT2N 0x00000004
39 #define WINED3DDTCAPS_SHORT4N 0x00000008
40 #define WINED3DDTCAPS_USHORT2N 0x00000010
41 #define WINED3DDTCAPS_USHORT4N 0x00000020
42 #define WINED3DDTCAPS_UDEC3 0x00000040
43 #define WINED3DDTCAPS_DEC3N 0x00000080
44 #define WINED3DDTCAPS_FLOAT16_2 0x00000100
45 #define WINED3DDTCAPS_FLOAT16_4 0x00000200
47 #define WINED3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000FFFF
48 #define WINED3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000
49 #define WINED3DFVFCAPS_PSIZE 0x00100000
51 #define WINED3DLINECAPS_TEXTURE 0x00000001
52 #define WINED3DLINECAPS_ZTEST 0x00000002
53 #define WINED3DLINECAPS_BLEND 0x00000004
54 #define WINED3DLINECAPS_ALPHACMP 0x00000008
55 #define WINED3DLINECAPS_FOG 0x00000010
56 #define WINED3DLINECAPS_ANTIALIAS 0x00000020
58 #define WINED3DMAX30SHADERINSTRUCTIONS 32768
59 #define WINED3DMIN30SHADERINSTRUCTIONS 512
61 #define WINED3DPBLENDCAPS_ZERO 0x00000001
62 #define WINED3DPBLENDCAPS_ONE 0x00000002
63 #define WINED3DPBLENDCAPS_SRCCOLOR 0x00000004
64 #define WINED3DPBLENDCAPS_INVSRCCOLOR 0x00000008
65 #define WINED3DPBLENDCAPS_SRCALPHA 0x00000010
66 #define WINED3DPBLENDCAPS_INVSRCALPHA 0x00000020
67 #define WINED3DPBLENDCAPS_DESTALPHA 0x00000040
68 #define WINED3DPBLENDCAPS_INVDESTALPHA 0x00000080
69 #define WINED3DPBLENDCAPS_DESTCOLOR 0x00000100
70 #define WINED3DPBLENDCAPS_INVDESTCOLOR 0x00000200
71 #define WINED3DPBLENDCAPS_SRCALPHASAT 0x00000400
72 #define WINED3DPBLENDCAPS_BOTHSRCALPHA 0x00000800
73 #define WINED3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000
74 #define WINED3DPBLENDCAPS_BLENDFACTOR 0x00002000
76 #define WINED3DPCMPCAPS_NEVER 0x00000001
77 #define WINED3DPCMPCAPS_LESS 0x00000002
78 #define WINED3DPCMPCAPS_EQUAL 0x00000004
79 #define WINED3DPCMPCAPS_LESSEQUAL 0x00000008
80 #define WINED3DPCMPCAPS_GREATER 0x00000010
81 #define WINED3DPCMPCAPS_NOTEQUAL 0x00000020
82 #define WINED3DPCMPCAPS_GREATEREQUAL 0x00000040
83 #define WINED3DPCMPCAPS_ALWAYS 0x00000080
85 #define WINED3DPMISCCAPS_MASKZ 0x00000002
86 #define WINED3DPMISCCAPS_LINEPATTERNREP 0x00000004
87 #define WINED3DPMISCCAPS_CULLNONE 0x00000010
88 #define WINED3DPMISCCAPS_CULLCW 0x00000020
89 #define WINED3DPMISCCAPS_CULLCCW 0x00000040
90 #define WINED3DPMISCCAPS_COLORWRITEENABLE 0x00000080
91 #define WINED3DPMISCCAPS_CLIPPLANESCALEDPOINTS 0x00000100
92 #define WINED3DPMISCCAPS_CLIPTLVERTS 0x00000200
93 #define WINED3DPMISCCAPS_TSSARGTEMP 0x00000400
94 #define WINED3DPMISCCAPS_BLENDOP 0x00000800
95 #define WINED3DPMISCCAPS_NULLREFERENCE 0x00001000
96 #define WINED3DPMISCCAPS_INDEPENDENTWRITEMASKS 0x00004000
97 #define WINED3DPMISCCAPS_PERSTAGECONSTANT 0x00008000
98 #define WINED3DPMISCCAPS_FOGANDSPECULARALPHA 0x00010000
99 #define WINED3DPMISCCAPS_SEPARATEALPHABLEND 0x00020000
100 #define WINED3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS 0x00040000
101 #define WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000
102 #define WINED3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000
104 #define WINED3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
105 #define WINED3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
106 #define WINED3DPS20_MAX_NUMTEMPS 32
107 #define WINED3DPS20_MIN_NUMTEMPS 12
108 #define WINED3DPS20_MAX_STATICFLOWCONTROLDEPTH 4
109 #define WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH 0
110 #define WINED3DPS20_MAX_NUMINSTRUCTIONSLOTS 512
111 #define WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS 96
113 #define WINED3DPS20CAPS_ARBITRARYSWIZZLE 0x00000001
114 #define WINED3DPS20CAPS_GRADIENTINSTRUCTIONS 0x00000002
115 #define WINED3DPS20CAPS_PREDICATION 0x00000004
116 #define WINED3DPS20CAPS_NODEPENDENTREADLIMIT 0x00000008
117 #define WINED3DPS20CAPS_NOTEXINSTRUCTIONLIMIT 0x00000010
119 #define WINED3DPTADDRESSCAPS_WRAP 0x00000001
120 #define WINED3DPTADDRESSCAPS_MIRROR 0x00000002
121 #define WINED3DPTADDRESSCAPS_CLAMP 0x00000004
122 #define WINED3DPTADDRESSCAPS_BORDER 0x00000008
123 #define WINED3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010
124 #define WINED3DPTADDRESSCAPS_MIRRORONCE 0x00000020
126 #define WINED3DSTENCILCAPS_KEEP 0x00000001
127 #define WINED3DSTENCILCAPS_ZERO 0x00000002
128 #define WINED3DSTENCILCAPS_REPLACE 0x00000004
129 #define WINED3DSTENCILCAPS_INCRSAT 0x00000008
130 #define WINED3DSTENCILCAPS_DECRSAT 0x00000010
131 #define WINED3DSTENCILCAPS_INVERT 0x00000020
132 #define WINED3DSTENCILCAPS_INCR 0x00000040
133 #define WINED3DSTENCILCAPS_DECR 0x00000080
134 #define WINED3DSTENCILCAPS_TWOSIDED 0x00000100
136 #define WINED3DTEXOPCAPS_DISABLE 0x00000001
137 #define WINED3DTEXOPCAPS_SELECTARG1 0x00000002
138 #define WINED3DTEXOPCAPS_SELECTARG2 0x00000004
139 #define WINED3DTEXOPCAPS_MODULATE 0x00000008
140 #define WINED3DTEXOPCAPS_MODULATE2X 0x00000010
141 #define WINED3DTEXOPCAPS_MODULATE4X 0x00000020
142 #define WINED3DTEXOPCAPS_ADD 0x00000040
143 #define WINED3DTEXOPCAPS_ADDSIGNED 0x00000080
144 #define WINED3DTEXOPCAPS_ADDSIGNED2X 0x00000100
145 #define WINED3DTEXOPCAPS_SUBTRACT 0x00000200
146 #define WINED3DTEXOPCAPS_ADDSMOOTH 0x00000400
147 #define WINED3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800
148 #define WINED3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000
149 #define WINED3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000
150 #define WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000
151 #define WINED3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000
152 #define WINED3DTEXOPCAPS_PREMODULATE 0x00010000
153 #define WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000
154 #define WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000
155 #define WINED3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000
156 #define WINED3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000
157 #define WINED3DTEXOPCAPS_BUMPENVMAP 0x00200000
158 #define WINED3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000
159 #define WINED3DTEXOPCAPS_DOTPRODUCT3 0x00800000
160 #define WINED3DTEXOPCAPS_MULTIPLYADD 0x01000000
161 #define WINED3DTEXOPCAPS_LERP 0x02000000
163 #define WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
164 #define WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
165 #define WINED3DVS20_MAX_NUMTEMPS 32
166 #define WINED3DVS20_MIN_NUMTEMPS 12
167 #define WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH 4
168 #define WINED3DVS20_MIN_STATICFLOWCONTROLDEPTH 1
170 #define WINED3DVS20CAPS_PREDICATION 0x00000001
172 /* DirectDraw Caps */
173 #define WINEDDSCAPS_RESERVED1 0x00000001
174 #define WINEDDSCAPS_ALPHA 0x00000002
175 #define WINEDDSCAPS_BACKBUFFER 0x00000004
176 #define WINEDDSCAPS_COMPLEX 0x00000008
177 #define WINEDDSCAPS_FLIP 0x00000010
178 #define WINEDDSCAPS_FRONTBUFFER 0x00000020
179 #define WINEDDSCAPS_OFFSCREENPLAIN 0x00000040
180 #define WINEDDSCAPS_OVERLAY 0x00000080
181 #define WINEDDSCAPS_PALETTE 0x00000100
182 #define WINEDDSCAPS_PRIMARYSURFACE 0x00000200
183 #define WINEDDSCAPS_PRIMARYSURFACELEFT 0x00000400
184 #define WINEDDSCAPS_SYSTEMMEMORY 0x00000800
185 #define WINEDDSCAPS_TEXTURE 0x00001000
186 #define WINEDDSCAPS_3DDEVICE 0x00002000
187 #define WINEDDSCAPS_VIDEOMEMORY 0x00004000
188 #define WINEDDSCAPS_VISIBLE 0x00008000
189 #define WINEDDSCAPS_WRITEONLY 0x00010000
190 #define WINEDDSCAPS_ZBUFFER 0x00020000
191 #define WINEDDSCAPS_OWNDC 0x00040000
192 #define WINEDDSCAPS_LIVEVIDEO 0x00080000
193 #define WINEDDSCAPS_HWCODEC 0x00100000
194 #define WINEDDSCAPS_MODEX 0x00200000
195 #define WINEDDSCAPS_MIPMAP 0x00400000
196 #define WINEDDSCAPS_RESERVED2 0x00800000
197 #define WINEDDSCAPS_ALLOCONLOAD 0x04000000
198 #define WINEDDSCAPS_VIDEOPORT 0x08000000
199 #define WINEDDSCAPS_LOCALVIDMEM 0x10000000
200 #define WINEDDSCAPS_NONLOCALVIDMEM 0x20000000
201 #define WINEDDSCAPS_STANDARDVGAMODE 0x40000000
202 #define WINEDDSCAPS_OPTIMIZED 0x80000000
204 #define WINEDDCKEYCAPS_DESTBLT 0x00000001
205 #define WINEDDCKEYCAPS_DESTBLTCLRSPACE 0x00000002
206 #define WINEDDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004
207 #define WINEDDCKEYCAPS_DESTBLTYUV 0x00000008
208 #define WINEDDCKEYCAPS_DESTOVERLAY 0x00000010
209 #define WINEDDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020
210 #define WINEDDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040
211 #define WINEDDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080
212 #define WINEDDCKEYCAPS_DESTOVERLAYYUV 0x00000100
213 #define WINEDDCKEYCAPS_SRCBLT 0x00000200
214 #define WINEDDCKEYCAPS_SRCBLTCLRSPACE 0x00000400
215 #define WINEDDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800
216 #define WINEDDCKEYCAPS_SRCBLTYUV 0x00001000
217 #define WINEDDCKEYCAPS_SRCOVERLAY 0x00002000
218 #define WINEDDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000
219 #define WINEDDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000
220 #define WINEDDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000
221 #define WINEDDCKEYCAPS_SRCOVERLAYYUV 0x00020000
222 #define WINEDDCKEYCAPS_NOCOSTOVERLAY 0x00040000
224 #define WINEDDFXCAPS_BLTALPHA 0x00000001
225 #define WINEDDFXCAPS_OVERLAYALPHA 0x00000004
226 #define WINEDDFXCAPS_BLTARITHSTRETCHYN 0x00000010
227 #define WINEDDFXCAPS_BLTARITHSTRETCHY 0x00000020
228 #define WINEDDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040
229 #define WINEDDFXCAPS_BLTMIRRORUPDOWN 0x00000080
230 #define WINEDDFXCAPS_BLTROTATION 0x00000100
231 #define WINEDDFXCAPS_BLTROTATION90 0x00000200
232 #define WINEDDFXCAPS_BLTSHRINKX 0x00000400
233 #define WINEDDFXCAPS_BLTSHRINKXN 0x00000800
234 #define WINEDDFXCAPS_BLTSHRINKY 0x00001000
235 #define WINEDDFXCAPS_BLTSHRINKYN 0x00002000
236 #define WINEDDFXCAPS_BLTSTRETCHX 0x00004000
237 #define WINEDDFXCAPS_BLTSTRETCHXN 0x00008000
238 #define WINEDDFXCAPS_BLTSTRETCHY 0x00010000
239 #define WINEDDFXCAPS_BLTSTRETCHYN 0x00020000
240 #define WINEDDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000
241 #define WINEDDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008
242 #define WINEDDFXCAPS_OVERLAYSHRINKX 0x00080000
243 #define WINEDDFXCAPS_OVERLAYSHRINKXN 0x00100000
244 #define WINEDDFXCAPS_OVERLAYSHRINKY 0x00200000
245 #define WINEDDFXCAPS_OVERLAYSHRINKYN 0x00400000
246 #define WINEDDFXCAPS_OVERLAYSTRETCHX 0x00800000
247 #define WINEDDFXCAPS_OVERLAYSTRETCHXN 0x01000000
248 #define WINEDDFXCAPS_OVERLAYSTRETCHY 0x02000000
249 #define WINEDDFXCAPS_OVERLAYSTRETCHYN 0x04000000
250 #define WINEDDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000
251 #define WINEDDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000
253 #define WINEDDCAPS_3D 0x00000001
254 #define WINEDDCAPS_ALIGNBOUNDARYDEST 0x00000002
255 #define WINEDDCAPS_ALIGNSIZEDEST 0x00000004
256 #define WINEDDCAPS_ALIGNBOUNDARYSRC 0x00000008
257 #define WINEDDCAPS_ALIGNSIZESRC 0x00000010
258 #define WINEDDCAPS_ALIGNSTRIDE 0x00000020
259 #define WINEDDCAPS_BLT 0x00000040
260 #define WINEDDCAPS_BLTQUEUE 0x00000080
261 #define WINEDDCAPS_BLTFOURCC 0x00000100
262 #define WINEDDCAPS_BLTSTRETCH 0x00000200
263 #define WINEDDCAPS_GDI 0x00000400
264 #define WINEDDCAPS_OVERLAY 0x00000800
265 #define WINEDDCAPS_OVERLAYCANTCLIP 0x00001000
266 #define WINEDDCAPS_OVERLAYFOURCC 0x00002000
267 #define WINEDDCAPS_OVERLAYSTRETCH 0x00004000
268 #define WINEDDCAPS_PALETTE 0x00008000
269 #define WINEDDCAPS_PALETTEVSYNC 0x00010000
270 #define WINEDDCAPS_READSCANLINE 0x00020000
271 #define WINEDDCAPS_STEREOVIEW 0x00040000
272 #define WINEDDCAPS_VBI 0x00080000
273 #define WINEDDCAPS_ZBLTS 0x00100000
274 #define WINEDDCAPS_ZOVERLAYS 0x00200000
275 #define WINEDDCAPS_COLORKEY 0x00400000
276 #define WINEDDCAPS_ALPHA 0x00800000
277 #define WINEDDCAPS_COLORKEYHWASSIST 0x01000000
278 #define WINEDDCAPS_NOHARDWARE 0x02000000
279 #define WINEDDCAPS_BLTCOLORFILL 0x04000000
280 #define WINEDDCAPS_BANKSWITCHED 0x08000000
281 #define WINEDDCAPS_BLTDEPTHFILL 0x10000000
282 #define WINEDDCAPS_CANCLIP 0x20000000
283 #define WINEDDCAPS_CANCLIPSTRETCHED 0x40000000
284 #define WINEDDCAPS_CANBLTSYSMEM 0x80000000
286 #define WINEDDCAPS2_CERTIFIED 0x00000001
287 #define WINEDDCAPS2_NO2DDURING3DSCENE 0x00000002
288 #define WINEDDCAPS2_VIDEOPORT 0x00000004
289 #define WINEDDCAPS2_AUTOFLIPOVERLAY 0x00000008
290 #define WINEDDCAPS2_CANBOBINTERLEAVED 0x00000010
291 #define WINEDDCAPS2_CANBOBNONINTERLEAVED 0x00000020
292 #define WINEDDCAPS2_COLORCONTROLOVERLAY 0x00000040
293 #define WINEDDCAPS2_COLORCONTROLPRIMARY 0x00000080
294 #define WINEDDCAPS2_CANDROPZ16BIT 0x00000100
295 #define WINEDDCAPS2_NONLOCALVIDMEM 0x00000200
296 #define WINEDDCAPS2_NONLOCALVIDMEMCAPS 0x00000400
297 #define WINEDDCAPS2_NOPAGELOCKREQUIRED 0x00000800
298 #define WINEDDCAPS2_WIDESURFACES 0x00001000
299 #define WINEDDCAPS2_CANFLIPODDEVEN 0x00002000
300 #define WINEDDCAPS2_CANBOBHARDWARE 0x00004000
301 #define WINEDDCAPS2_COPYFOURCC 0x00008000
302 #define WINEDDCAPS2_PRIMARYGAMMA 0x00020000
303 #define WINEDDCAPS2_CANRENDERWINDOWED 0x00080000
304 #define WINEDDCAPS2_CANCALIBRATEGAMMA 0x00100000
305 #define WINEDDCAPS2_FLIPINTERVAL 0x00200000
306 #define WINEDDCAPS2_FLIPNOVSYNC 0x00400000
307 #define WINEDDCAPS2_CANMANAGETEXTURE 0x00800000
308 #define WINEDDCAPS2_TEXMANINNONLOCALVIDMEM 0x01000000
309 #define WINEDDCAPS2_STEREO 0x02000000
310 #define WINEDDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL 0x04000000
312 #endif /* __WINE_WINED3D_CAPS_H */