RetroArch
d3d9caps.h
Go to the documentation of this file.
1 /*==========================================================================;
2  *
3  * Copyright (C) Microsoft Corporation. All Rights Reserved.
4  *
5  * File: d3d9caps.h
6  * Content: Direct3D capabilities include file
7  *
8  ***************************************************************************/
9 
10 #ifndef _d3d9CAPS_H
11 #define _d3d9CAPS_H
12 
13 #ifndef DIRECT3D_VERSION
14 #define DIRECT3D_VERSION 0x0900
15 #endif /* DIRECT3D_VERSION */
16 
17 /* include this file content only if compiling for DX9 interfaces */
18 #if(DIRECT3D_VERSION >= 0x0900)
19 
20 
21 
22 #if defined(_X86_) || defined(_IA64_)
23 #pragma pack(4)
24 #endif
25 
26 typedef struct _D3DVSHADERCAPS2_0
27 {
28  DWORD Caps;
33 
34 #define D3DVS20CAPS_PREDICATION (1<<0)
35 
36 #define D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
37 #define D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
38 #define D3DVS20_MAX_NUMTEMPS 32
39 #define D3DVS20_MIN_NUMTEMPS 12
40 #define D3DVS20_MAX_STATICFLOWCONTROLDEPTH 4
41 #define D3DVS20_MIN_STATICFLOWCONTROLDEPTH 1
42 
43 typedef struct _D3DPSHADERCAPS2_0
44 {
45  DWORD Caps;
51 
52 #define D3DPS20CAPS_ARBITRARYSWIZZLE (1<<0)
53 #define D3DPS20CAPS_GRADIENTINSTRUCTIONS (1<<1)
54 #define D3DPS20CAPS_PREDICATION (1<<2)
55 #define D3DPS20CAPS_NODEPENDENTREADLIMIT (1<<3)
56 #define D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT (1<<4)
57 
58 #define D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
59 #define D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
60 #define D3DPS20_MAX_NUMTEMPS 32
61 #define D3DPS20_MIN_NUMTEMPS 12
62 #define D3DPS20_MAX_STATICFLOWCONTROLDEPTH 4
63 #define D3DPS20_MIN_STATICFLOWCONTROLDEPTH 0
64 #define D3DPS20_MAX_NUMINSTRUCTIONSLOTS 512
65 #define D3DPS20_MIN_NUMINSTRUCTIONSLOTS 96
66 
67 #define D3DMIN30SHADERINSTRUCTIONS 512
68 #define D3DMAX30SHADERINSTRUCTIONS 32768
69 
70 /* D3D9Ex only -- */
71 #if !defined(D3D_DISABLE_9EX)
72 
73 typedef struct _D3DOVERLAYCAPS
74 {
79 
80 #define D3DOVERLAYCAPS_FULLRANGERGB 0x00000001
81 #define D3DOVERLAYCAPS_LIMITEDRANGERGB 0x00000002
82 #define D3DOVERLAYCAPS_YCbCr_BT601 0x00000004
83 #define D3DOVERLAYCAPS_YCbCr_BT709 0x00000008
84 #define D3DOVERLAYCAPS_YCbCr_BT601_xvYCC 0x00000010
85 #define D3DOVERLAYCAPS_YCbCr_BT709_xvYCC 0x00000020
86 #define D3DOVERLAYCAPS_STRETCHX 0x00000040
87 #define D3DOVERLAYCAPS_STRETCHY 0x00000080
88 
89 
91 {
92  DWORD Caps;
98 
99 #define D3DCPCAPS_SOFTWARE 0x00000001
100 #define D3DCPCAPS_HARDWARE 0x00000002
101 #define D3DCPCAPS_PROTECTIONALWAYSON 0x00000004
102 #define D3DCPCAPS_PARTIALDECRYPTION 0x00000008
103 #define D3DCPCAPS_CONTENTKEY 0x00000010
104 #define D3DCPCAPS_FRESHENSESSIONKEY 0x00000020
105 #define D3DCPCAPS_ENCRYPTEDREADBACK 0x00000040
106 #define D3DCPCAPS_ENCRYPTEDREADBACKKEY 0x00000080
107 #define D3DCPCAPS_SEQUENTIAL_CTR_IV 0x00000100
108 #define D3DCPCAPS_ENCRYPTSLICEDATAONLY 0x00000200
109 
110 DEFINE_GUID(D3DCRYPTOTYPE_AES128_CTR,
111 0x9b6bd711, 0x4f74, 0x41c9, 0x9e, 0x7b, 0xb, 0xe2, 0xd7, 0xd9, 0x3b, 0x4f);
112 DEFINE_GUID(D3DCRYPTOTYPE_PROPRIETARY,
113 0xab4e9afd, 0x1d1c, 0x46e6, 0xa7, 0x2f, 0x8, 0x69, 0x91, 0x7b, 0xd, 0xe8);
114 
115 DEFINE_GUID(D3DKEYEXCHANGE_RSAES_OAEP,
116 0xc1949895, 0xd72a, 0x4a1d, 0x8e, 0x5d, 0xed, 0x85, 0x7d, 0x17, 0x15, 0x20);
117 DEFINE_GUID(D3DKEYEXCHANGE_DXVA,
118 0x43d3775c, 0x38e5, 0x4924, 0x8d, 0x86, 0xd3, 0xfc, 0xcf, 0x15, 0x3e, 0x9b);
119 
120 #endif /* !D3D_DISABLE_9EX */
121 /* -- D3D9Ex only */
122 
123 typedef struct _D3DCAPS9
124 {
125  /* Device Info */
128 
129  /* Caps from DX7 Draw */
130  DWORD Caps;
131  DWORD Caps2;
132  DWORD Caps3;
134 
135  /* Cursor Caps */
136  DWORD CursorCaps;
137 
138  /* 3D Device Caps */
139  DWORD DevCaps;
140 
142  DWORD RasterCaps;
143  DWORD ZCmpCaps;
147  DWORD ShadeCaps;
148  DWORD TextureCaps;
149  DWORD TextureFilterCaps; /* D3DPTFILTERCAPS for IDirect3DTexture9's */
150  DWORD CubeTextureFilterCaps; /* D3DPTFILTERCAPS for IDirect3DCubeTexture9's */
151  DWORD VolumeTextureFilterCaps; /* D3DPTFILTERCAPS for IDirect3DVolumeTexture9's */
152  DWORD TextureAddressCaps; /* D3DPTADDRESSCAPS for IDirect3DTexture9's */
153  DWORD VolumeTextureAddressCaps; /* D3DPTADDRESSCAPS for IDirect3DVolumeTexture9's */
154 
155  DWORD LineCaps; /* D3DLINECAPS */
156 
159 
163  float MaxVertexW;
164 
169 
171  DWORD StencilCaps;
172 
173  DWORD FVFCaps;
177 
183 
185 
186  DWORD MaxPrimitiveCount; /* max number of primitives per DrawPrimitive call */
188  DWORD MaxStreams;
189  DWORD MaxStreamStride; /* max stride for SetStreamSource */
190 
192  DWORD MaxVertexShaderConst; /* number of vertex shader constant registers */
193 
195  float PixelShader1xMaxValue; /* max value storable in registers of ps.1.x shaders */
196 
197  /* Here are the DX9 specific ones */
198  DWORD DevCaps2;
199 
201  DWORD Reserved5;
202 
203  UINT MasterAdapterOrdinal; /* ordinal of master adaptor for adapter group */
204  UINT AdapterOrdinalInGroup; /* ordinal inside the adapter group */
205  UINT NumberOfAdaptersInGroup; /* number of adapters in this adapter group (only if master) */
206  DWORD DeclTypes; /* Data types, supported in vertex declarations */
207  DWORD NumSimultaneousRTs; /* Will be at least 1 */
208  DWORD StretchRectFilterCaps; /* Filter caps supported by StretchRect */
211  DWORD VertexTextureFilterCaps; /* D3DPTFILTERCAPS for IDirect3DTexture9's for texture, used in vertex shaders */
212  DWORD MaxVShaderInstructionsExecuted; /* maximum number of vertex shader instructions that can be executed */
213  DWORD MaxPShaderInstructionsExecuted; /* maximum number of pixel shader instructions that can be executed */
216 } D3DCAPS9;
217 
218 /*
219  * BIT DEFINES FOR D3DCAPS9 DWORD MEMBERS
220  */
221 
222 /*
223  * Caps
224  */
225 #define D3DCAPS_OVERLAY 0x00000800L
226 #define D3DCAPS_READ_SCANLINE 0x00020000L
227 
228 /* Caps2 */
229 #define D3DCAPS2_FULLSCREENGAMMA 0x00020000L
230 #define D3DCAPS2_CANCALIBRATEGAMMA 0x00100000L
231 #define D3DCAPS2_RESERVED 0x02000000L
232 #define D3DCAPS2_CANMANAGERESOURCE 0x10000000L
233 #define D3DCAPS2_DYNAMICTEXTURES 0x20000000L
234 #define D3DCAPS2_CANAUTOGENMIPMAP 0x40000000L
235 
236 /* D3D9Ex only -- */
237 #if !defined(D3D_DISABLE_9EX)
238 
239 #define D3DCAPS2_CANSHARERESOURCE 0x80000000L
240 
241 #endif /* !D3D_DISABLE_9EX */
242 /* -- D3D9Ex only */
243 
244 /* Caps3 */
245 #define D3DCAPS3_RESERVED 0x8000001fL
246 
247 /* Indicates that the device can respect the ALPHABLENDENABLE render state
248  * when fullscreen while using the FLIP or DISCARD swap effect.
249  * COPY and COPYVSYNC swap effects work whether or not this flag is set.
250  */
251 #define D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020L
252 
253 /* Indicates that the device can perform a gamma correction from
254  * a windowed back buffer containing linear content to the sRGB desktop.
255  */
256 #define D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION 0x00000080L
257 
258 #define D3DCAPS3_COPY_TO_VIDMEM 0x00000100L /* Device can acclerate copies from sysmem to local vidmem */
259 #define D3DCAPS3_COPY_TO_SYSTEMMEM 0x00000200L /* Device can acclerate copies from local vidmem to sysmem */
260 #define D3DCAPS3_DXVAHD 0x00000400L
261 #define D3DCAPS3_DXVAHD_LIMITED 0x00000800L
262 
263 /* PresentationIntervals */
264 #define D3DPRESENT_INTERVAL_DEFAULT 0x00000000L
265 #define D3DPRESENT_INTERVAL_ONE 0x00000001L
266 #define D3DPRESENT_INTERVAL_TWO 0x00000002L
267 #define D3DPRESENT_INTERVAL_THREE 0x00000004L
268 #define D3DPRESENT_INTERVAL_FOUR 0x00000008L
269 #define D3DPRESENT_INTERVAL_IMMEDIATE 0x80000000L
270 
271 /* CursorCaps */
272 /* Driver supports HW color cursor in at least hi-res modes(height >=400) */
273 #define D3DCURSORCAPS_COLOR 0x00000001L
274 /* Driver supports HW cursor also in low-res modes(height < 400) */
275 #define D3DCURSORCAPS_LOWRES 0x00000002L
276 
277 /* DevCaps */
278 #define D3DDEVCAPS_EXECUTESYSTEMMEMORY 0x00000010L /* Device can use execute buffers from system memory */
279 #define D3DDEVCAPS_EXECUTEVIDEOMEMORY 0x00000020L /* Device can use execute buffers from video memory */
280 #define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x00000040L /* Device can use TL buffers from system memory */
281 #define D3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x00000080L /* Device can use TL buffers from video memory */
282 #define D3DDEVCAPS_TEXTURESYSTEMMEMORY 0x00000100L /* Device can texture from system memory */
283 #define D3DDEVCAPS_TEXTUREVIDEOMEMORY 0x00000200L /* Device can texture from device memory */
284 #define D3DDEVCAPS_DRAWPRIMTLVERTEX 0x00000400L /* Device can draw TLVERTEX primitives */
285 #define D3DDEVCAPS_CANRENDERAFTERFLIP 0x00000800L /* Device can render without waiting for flip to complete */
286 #define D3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x00001000L /* Device can texture from nonlocal video memory */
287 #define D3DDEVCAPS_DRAWPRIMITIVES2 0x00002000L /* Device can support DrawPrimitives2 */
288 #define D3DDEVCAPS_SEPARATETEXTUREMEMORIES 0x00004000L /* Device is texturing from separate memory pools */
289 #define D3DDEVCAPS_DRAWPRIMITIVES2EX 0x00008000L /* Device can support Extended DrawPrimitives2 i.e. DX7 compliant driver*/
290 #define D3DDEVCAPS_HWTRANSFORMANDLIGHT 0x00010000L /* Device can support transformation and lighting in hardware and DRAWPRIMITIVES2EX must be also */
291 #define D3DDEVCAPS_CANBLTSYSTONONLOCAL 0x00020000L /* Device supports a Tex Blt from system memory to non-local vidmem */
292 #define D3DDEVCAPS_HWRASTERIZATION 0x00080000L /* Device has HW acceleration for rasterization */
293 #define D3DDEVCAPS_PUREDEVICE 0x00100000L /* Device supports D3DCREATE_PUREDEVICE */
294 #define D3DDEVCAPS_QUINTICRTPATCHES 0x00200000L /* Device supports quintic Beziers and BSplines */
295 #define D3DDEVCAPS_RTPATCHES 0x00400000L /* Device supports Rect and Tri patches */
296 #define D3DDEVCAPS_RTPATCHHANDLEZERO 0x00800000L /* Indicates that RT Patches may be drawn efficiently using handle 0 */
297 #define D3DDEVCAPS_NPATCHES 0x01000000L /* Device supports N-Patches */
298 
299 /*
300  * PrimitiveMiscCaps
301  */
302 #define D3DPMISCCAPS_MASKZ 0x00000002L
303 #define D3DPMISCCAPS_CULLNONE 0x00000010L
304 #define D3DPMISCCAPS_CULLCW 0x00000020L
305 #define D3DPMISCCAPS_CULLCCW 0x00000040L
306 #define D3DPMISCCAPS_COLORWRITEENABLE 0x00000080L
307 #define D3DPMISCCAPS_CLIPPLANESCALEDPOINTS 0x00000100L /* Device correctly clips scaled points to clip planes */
308 #define D3DPMISCCAPS_CLIPTLVERTS 0x00000200L /* device will clip post-transformed vertex primitives */
309 #define D3DPMISCCAPS_TSSARGTEMP 0x00000400L /* device supports D3DTA_TEMP for temporary register */
310 #define D3DPMISCCAPS_BLENDOP 0x00000800L /* device supports D3DRS_BLENDOP */
311 #define D3DPMISCCAPS_NULLREFERENCE 0x00001000L /* Reference Device that doesnt render */
312 #define D3DPMISCCAPS_INDEPENDENTWRITEMASKS 0x00004000L /* Device supports independent write masks for MET or MRT */
313 #define D3DPMISCCAPS_PERSTAGECONSTANT 0x00008000L /* Device supports per-stage constants */
314 #define D3DPMISCCAPS_FOGANDSPECULARALPHA 0x00010000L /* Device supports separate fog and specular alpha (many devices
315  use the specular alpha channel to store fog factor) */
316 #define D3DPMISCCAPS_SEPARATEALPHABLEND 0x00020000L /* Device supports separate blend settings for the alpha channel */
317 #define D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS 0x00040000L /* Device supports different bit depths for MRT */
318 #define D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000L /* Device supports post-pixel shader operations for MRT */
319 #define D3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000L /* Device clamps fog blend factor per vertex */
320 
321 /* D3D9Ex only -- */
322 #if !defined(D3D_DISABLE_9EX)
323 
324 #define D3DPMISCCAPS_POSTBLENDSRGBCONVERT 0x00200000L /* Indicates device can perform conversion to sRGB after blending. */
325 
326 #endif /* !D3D_DISABLE_9EX */
327 /* -- D3D9Ex only */
328 
329 
330 /*
331  * LineCaps
332  */
333 #define D3DLINECAPS_TEXTURE 0x00000001L
334 #define D3DLINECAPS_ZTEST 0x00000002L
335 #define D3DLINECAPS_BLEND 0x00000004L
336 #define D3DLINECAPS_ALPHACMP 0x00000008L
337 #define D3DLINECAPS_FOG 0x00000010L
338 #define D3DLINECAPS_ANTIALIAS 0x00000020L
339 
340 /*
341  * RasterCaps
342  */
343 #define D3DPRASTERCAPS_DITHER 0x00000001L
344 #define D3DPRASTERCAPS_ZTEST 0x00000010L
345 #define D3DPRASTERCAPS_FOGVERTEX 0x00000080L
346 #define D3DPRASTERCAPS_FOGTABLE 0x00000100L
347 #define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000L
348 #define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000L
349 #define D3DPRASTERCAPS_FOGRANGE 0x00010000L
350 #define D3DPRASTERCAPS_ANISOTROPY 0x00020000L
351 #define D3DPRASTERCAPS_WBUFFER 0x00040000L
352 #define D3DPRASTERCAPS_WFOG 0x00100000L
353 #define D3DPRASTERCAPS_ZFOG 0x00200000L
354 #define D3DPRASTERCAPS_COLORPERSPECTIVE 0x00400000L /* Device iterates colors perspective correct */
355 #define D3DPRASTERCAPS_SCISSORTEST 0x01000000L
356 #define D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS 0x02000000L
357 #define D3DPRASTERCAPS_DEPTHBIAS 0x04000000L
358 #define D3DPRASTERCAPS_MULTISAMPLE_TOGGLE 0x08000000L
359 
360 /*
361  * ZCmpCaps, AlphaCmpCaps
362  */
363 #define D3DPCMPCAPS_NEVER 0x00000001L
364 #define D3DPCMPCAPS_LESS 0x00000002L
365 #define D3DPCMPCAPS_EQUAL 0x00000004L
366 #define D3DPCMPCAPS_LESSEQUAL 0x00000008L
367 #define D3DPCMPCAPS_GREATER 0x00000010L
368 #define D3DPCMPCAPS_NOTEQUAL 0x00000020L
369 #define D3DPCMPCAPS_GREATEREQUAL 0x00000040L
370 #define D3DPCMPCAPS_ALWAYS 0x00000080L
371 
372 /*
373  * SourceBlendCaps, DestBlendCaps
374  */
375 #define D3DPBLENDCAPS_ZERO 0x00000001L
376 #define D3DPBLENDCAPS_ONE 0x00000002L
377 #define D3DPBLENDCAPS_SRCCOLOR 0x00000004L
378 #define D3DPBLENDCAPS_INVSRCCOLOR 0x00000008L
379 #define D3DPBLENDCAPS_SRCALPHA 0x00000010L
380 #define D3DPBLENDCAPS_INVSRCALPHA 0x00000020L
381 #define D3DPBLENDCAPS_DESTALPHA 0x00000040L
382 #define D3DPBLENDCAPS_INVDESTALPHA 0x00000080L
383 #define D3DPBLENDCAPS_DESTCOLOR 0x00000100L
384 #define D3DPBLENDCAPS_INVDESTCOLOR 0x00000200L
385 #define D3DPBLENDCAPS_SRCALPHASAT 0x00000400L
386 #define D3DPBLENDCAPS_BOTHSRCALPHA 0x00000800L
387 #define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000L
388 #define D3DPBLENDCAPS_BLENDFACTOR 0x00002000L /* Supports both D3DBLEND_BLENDFACTOR and D3DBLEND_INVBLENDFACTOR */
389 
390 /* D3D9Ex only -- */
391 #if !defined(D3D_DISABLE_9EX)
392 
393 #define D3DPBLENDCAPS_SRCCOLOR2 0x00004000L
394 #define D3DPBLENDCAPS_INVSRCCOLOR2 0x00008000L
395 
396 #endif /* !D3D_DISABLE_9EX */
397 /* -- D3D9Ex only */
398 
399 /*
400  * ShadeCaps
401  */
402 #define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008L
403 #define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200L
404 #define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000L
405 #define D3DPSHADECAPS_FOGGOURAUD 0x00080000L
406 
407 /*
408  * TextureCaps
409  */
410 #define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001L /* Perspective-correct texturing is supported */
411 #define D3DPTEXTURECAPS_POW2 0x00000002L /* Power-of-2 texture dimensions are required - applies to non-Cube/Volume textures only. */
412 #define D3DPTEXTURECAPS_ALPHA 0x00000004L /* Alpha in texture pixels is supported */
413 #define D3DPTEXTURECAPS_SQUAREONLY 0x00000020L /* Only square textures are supported */
414 #define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040L /* Texture indices are not scaled by the texture size prior to interpolation */
415 #define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080L /* Device can draw alpha from texture palettes */
416 
417 /* Device can use non-POW2 textures if:
418  * 1) D3DTEXTURE_ADDRESS is set to CLAMP for this texture's stage
419  * 2) D3DRS_WRAP(N) is zero for this texture's coordinates
420  * 3) mip mapping is not enabled (use magnification filter only)
421  */
422 #define D3DPTEXTURECAPS_NONPOW2CONDITIONAL 0x00000100L
423 #define D3DPTEXTURECAPS_PROJECTED 0x00000400L /* Device can do D3DTTFF_PROJECTED */
424 #define D3DPTEXTURECAPS_CUBEMAP 0x00000800L /* Device can do cubemap textures */
425 #define D3DPTEXTURECAPS_VOLUMEMAP 0x00002000L /* Device can do volume textures */
426 #define D3DPTEXTURECAPS_MIPMAP 0x00004000L /* Device can do mipmapped textures */
427 #define D3DPTEXTURECAPS_MIPVOLUMEMAP 0x00008000L /* Device can do mipmapped volume textures */
428 #define D3DPTEXTURECAPS_MIPCUBEMAP 0x00010000L /* Device can do mipmapped cube maps */
429 #define D3DPTEXTURECAPS_CUBEMAP_POW2 0x00020000L /* Device requires that cubemaps be power-of-2 dimension */
430 #define D3DPTEXTURECAPS_VOLUMEMAP_POW2 0x00040000L /* Device requires that volume maps be power-of-2 dimension */
431 #define D3DPTEXTURECAPS_NOPROJECTEDBUMPENV 0x00200000L /* Device does not support projected bump env lookup operation
432  in programmable and fixed function pixel shaders */
433 
434 /*
435  * TextureFilterCaps, StretchRectFilterCaps
436  */
437 #define D3DPTFILTERCAPS_MINFPOINT 0x00000100L /* Min Filter */
438 #define D3DPTFILTERCAPS_MINFLINEAR 0x00000200L
439 #define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400L
440 #define D3DPTFILTERCAPS_MINFPYRAMIDALQUAD 0x00000800L
441 #define D3DPTFILTERCAPS_MINFGAUSSIANQUAD 0x00001000L
442 #define D3DPTFILTERCAPS_MIPFPOINT 0x00010000L /* Mip Filter */
443 #define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000L
444 
445 /* D3D9Ex only -- */
446 #if !defined(D3D_DISABLE_9EX)
447 
448 #define D3DPTFILTERCAPS_CONVOLUTIONMONO 0x00040000L /* Min and Mag for the convolution mono filter */
449 
450 #endif /* !D3D_DISABLE_9EX */
451 /* -- D3D9Ex only */
452 
453 #define D3DPTFILTERCAPS_MAGFPOINT 0x01000000L /* Mag Filter */
454 #define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000L
455 #define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000L
456 #define D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD 0x08000000L
457 #define D3DPTFILTERCAPS_MAGFGAUSSIANQUAD 0x10000000L
458 
459 /*
460  * TextureAddressCaps
461  */
462 #define D3DPTADDRESSCAPS_WRAP 0x00000001L
463 #define D3DPTADDRESSCAPS_MIRROR 0x00000002L
464 #define D3DPTADDRESSCAPS_CLAMP 0x00000004L
465 #define D3DPTADDRESSCAPS_BORDER 0x00000008L
466 #define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010L
467 #define D3DPTADDRESSCAPS_MIRRORONCE 0x00000020L
468 
469 /*
470  * StencilCaps
471  */
472 #define D3DSTENCILCAPS_KEEP 0x00000001L
473 #define D3DSTENCILCAPS_ZERO 0x00000002L
474 #define D3DSTENCILCAPS_REPLACE 0x00000004L
475 #define D3DSTENCILCAPS_INCRSAT 0x00000008L
476 #define D3DSTENCILCAPS_DECRSAT 0x00000010L
477 #define D3DSTENCILCAPS_INVERT 0x00000020L
478 #define D3DSTENCILCAPS_INCR 0x00000040L
479 #define D3DSTENCILCAPS_DECR 0x00000080L
480 #define D3DSTENCILCAPS_TWOSIDED 0x00000100L
481 
482 /*
483  * TextureOpCaps
484  */
485 #define D3DTEXOPCAPS_DISABLE 0x00000001L
486 #define D3DTEXOPCAPS_SELECTARG1 0x00000002L
487 #define D3DTEXOPCAPS_SELECTARG2 0x00000004L
488 #define D3DTEXOPCAPS_MODULATE 0x00000008L
489 #define D3DTEXOPCAPS_MODULATE2X 0x00000010L
490 #define D3DTEXOPCAPS_MODULATE4X 0x00000020L
491 #define D3DTEXOPCAPS_ADD 0x00000040L
492 #define D3DTEXOPCAPS_ADDSIGNED 0x00000080L
493 #define D3DTEXOPCAPS_ADDSIGNED2X 0x00000100L
494 #define D3DTEXOPCAPS_SUBTRACT 0x00000200L
495 #define D3DTEXOPCAPS_ADDSMOOTH 0x00000400L
496 #define D3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800L
497 #define D3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000L
498 #define D3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000L
499 #define D3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000L
500 #define D3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000L
501 #define D3DTEXOPCAPS_PREMODULATE 0x00010000L
502 #define D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000L
503 #define D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000L
504 #define D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000L
505 #define D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000L
506 #define D3DTEXOPCAPS_BUMPENVMAP 0x00200000L
507 #define D3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000L
508 #define D3DTEXOPCAPS_DOTPRODUCT3 0x00800000L
509 #define D3DTEXOPCAPS_MULTIPLYADD 0x01000000L
510 #define D3DTEXOPCAPS_LERP 0x02000000L
511 
512 /*
513  * FVFCaps
514  */
515 #define D3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000ffffL /* mask for texture coordinate count field */
516 #define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000L /* Device prefers that vertex elements not be stripped */
517 #define D3DFVFCAPS_PSIZE 0x00100000L /* Device can receive point size */
518 
519 /*
520  * VertexProcessingCaps
521  */
522 #define D3DVTXPCAPS_TEXGEN 0x00000001L /* device can do texgen */
523 #define D3DVTXPCAPS_MATERIALSOURCE7 0x00000002L /* device can do DX7-level colormaterialsource ops */
524 #define D3DVTXPCAPS_DIRECTIONALLIGHTS 0x00000008L /* device can do directional lights */
525 #define D3DVTXPCAPS_POSITIONALLIGHTS 0x00000010L /* device can do positional lights (includes point and spot) */
526 #define D3DVTXPCAPS_LOCALVIEWER 0x00000020L /* device can do local viewer */
527 #define D3DVTXPCAPS_TWEENING 0x00000040L /* device can do vertex tweening */
528 #define D3DVTXPCAPS_TEXGEN_SPHEREMAP 0x00000100L /* device supports D3DTSS_TCI_SPHEREMAP */
529 #define D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER 0x00000200L /* device does not support TexGen in non-local
530  viewer mode */
531 
532 /*
533  * DevCaps2
534  */
535 #define D3DDEVCAPS2_STREAMOFFSET 0x00000001L /* Device supports offsets in streams. Must be set by DX9 drivers */
536 #define D3DDEVCAPS2_DMAPNPATCH 0x00000002L /* Device supports displacement maps for N-Patches*/
537 #define D3DDEVCAPS2_ADAPTIVETESSRTPATCH 0x00000004L /* Device supports adaptive tesselation of RT-patches*/
538 #define D3DDEVCAPS2_ADAPTIVETESSNPATCH 0x00000008L /* Device supports adaptive tesselation of N-patches*/
539 #define D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES 0x00000010L /* Device supports StretchRect calls with a texture as the source*/
540 #define D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH 0x00000020L /* Device supports presampled displacement maps for N-Patches */
541 #define D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET 0x00000040L /* Vertex elements in a vertex declaration can share the same stream offset */
542 
543 /*
544  * DeclTypes
545  */
546 #define D3DDTCAPS_UBYTE4 0x00000001L
547 #define D3DDTCAPS_UBYTE4N 0x00000002L
548 #define D3DDTCAPS_SHORT2N 0x00000004L
549 #define D3DDTCAPS_SHORT4N 0x00000008L
550 #define D3DDTCAPS_USHORT2N 0x00000010L
551 #define D3DDTCAPS_USHORT4N 0x00000020L
552 #define D3DDTCAPS_UDEC3 0x00000040L
553 #define D3DDTCAPS_DEC3N 0x00000080L
554 #define D3DDTCAPS_FLOAT16_2 0x00000100L
555 #define D3DDTCAPS_FLOAT16_4 0x00000200L
556 
557 
558 #pragma pack()
559 
560 
561 #endif /* (DIRECT3D_VERSION >= 0x0900) */
562 #endif /* _d3d9CAPS_H_ */
DWORD DevCaps
Definition: d3d9caps.h:139
DWORD VolumeTextureAddressCaps
Definition: d3d9caps.h:153
struct _D3DCONTENTPROTECTIONCAPS D3DCONTENTPROTECTIONCAPS
DWORD MaxUserClipPlanes
Definition: d3d9caps.h:180
DWORD Caps
Definition: d3d9caps.h:28
DWORD StencilCaps
Definition: d3d9caps.h:171
Definition: d3d9caps.h:43
DWORD DevCaps2
Definition: d3d9caps.h:198
UINT NumberOfAdaptersInGroup
Definition: d3d9caps.h:205
DWORD TextureFilterCaps
Definition: d3d9caps.h:149
DWORD Caps3
Definition: d3d9caps.h:132
DWORD MaxPixelShader30InstructionSlots
Definition: d3d9caps.h:215
DWORD MaxTextureAspectRatio
Definition: d3d9caps.h:161
DWORD MaxStreams
Definition: d3d9caps.h:188
DWORD MaxVertexIndex
Definition: d3d9caps.h:187
DWORD DeclTypes
Definition: d3d9caps.h:206
struct _D3DPSHADERCAPS2_0 D3DPSHADERCAPS2_0
INT StaticFlowControlDepth
Definition: d3d9caps.h:48
DWORD SrcBlendCaps
Definition: d3d9caps.h:144
D3DVSHADERCAPS2_0 VS20Caps
Definition: d3d9caps.h:209
DWORD RasterCaps
Definition: d3d9caps.h:142
Definition: d3d9caps.h:26
DWORD FVFCaps
Definition: d3d9caps.h:173
float ExtentsAdjust
Definition: d3d9caps.h:170
INT NumTemps
Definition: d3d9caps.h:47
UINT Caps
Definition: d3d9caps.h:75
DWORD Caps
Definition: d3d9caps.h:130
DWORD Caps
Definition: d3d9caps.h:45
DWORD TextureOpCaps
Definition: d3d9caps.h:174
INT NumInstructionSlots
Definition: d3d9caps.h:49
GUID KeyExchangeType
Definition: d3d9caps.h:93
DWORD MaxVertexBlendMatrices
Definition: d3d9caps.h:181
enum _D3DDEVTYPE D3DDEVTYPE
DWORD VertexShaderVersion
Definition: d3d9caps.h:191
INT DynamicFlowControlDepth
Definition: d3d9caps.h:46
DWORD MaxVertexBlendMatrixIndex
Definition: d3d9caps.h:182
DWORD TextureAddressCaps
Definition: d3d9caps.h:152
INT DynamicFlowControlDepth
Definition: d3d9caps.h:29
DWORD TextureCaps
Definition: d3d9caps.h:148
float MaxVertexW
Definition: d3d9caps.h:163
UINT BlockAlignmentSize
Definition: d3d9caps.h:95
DWORD MaxSimultaneousTextures
Definition: d3d9caps.h:176
Definition: d3d9caps.h:123
DWORD StretchRectFilterCaps
Definition: d3d9caps.h:208
DWORD VertexProcessingCaps
Definition: d3d9caps.h:178
DWORD ShadeCaps
Definition: d3d9caps.h:147
DWORD LineCaps
Definition: d3d9caps.h:155
DWORD Caps2
Definition: d3d9caps.h:131
DWORD MaxPrimitiveCount
Definition: d3d9caps.h:186
DWORD MaxStreamStride
Definition: d3d9caps.h:189
DEFINE_GUID(D3DCRYPTOTYPE_AES128_CTR, 0x9b6bd711, 0x4f74, 0x41c9, 0x9e, 0x7b, 0xb, 0xe2, 0xd7, 0xd9, 0x3b, 0x4f)
struct _D3DOVERLAYCAPS D3DOVERLAYCAPS
DWORD MaxTextureWidth
Definition: d3d9caps.h:157
DWORD MaxTextureHeight
Definition: d3d9caps.h:157
float GuardBandTop
Definition: d3d9caps.h:166
D3DPSHADERCAPS2_0 PS20Caps
Definition: d3d9caps.h:210
float GuardBandRight
Definition: d3d9caps.h:167
float GuardBandBottom
Definition: d3d9caps.h:168
DWORD MaxVertexShader30InstructionSlots
Definition: d3d9caps.h:214
DWORD Caps
Definition: d3d9caps.h:92
float MaxNpatchTessellationLevel
Definition: d3d9caps.h:200
DWORD MaxVertexShaderConst
Definition: d3d9caps.h:192
DWORD MaxPShaderInstructionsExecuted
Definition: d3d9caps.h:213
INT NumTemps
Definition: d3d9caps.h:30
float PixelShader1xMaxValue
Definition: d3d9caps.h:195
struct _D3DVSHADERCAPS2_0 D3DVSHADERCAPS2_0
DWORD MaxAnisotropy
Definition: d3d9caps.h:162
Definition: d3d9caps.h:90
ULONGLONG ProtectedMemorySize
Definition: d3d9caps.h:96
DWORD MaxTextureBlendStages
Definition: d3d9caps.h:175
UINT AdapterOrdinal
Definition: d3d9caps.h:127
float GuardBandLeft
Definition: d3d9caps.h:165
UINT AdapterOrdinalInGroup
Definition: d3d9caps.h:204
float MaxPointSize
Definition: d3d9caps.h:184
DWORD DestBlendCaps
Definition: d3d9caps.h:145
UINT BufferAlignmentStart
Definition: d3d9caps.h:94
DWORD VertexTextureFilterCaps
Definition: d3d9caps.h:211
Definition: glslang_tab.cpp:135
DWORD CursorCaps
Definition: d3d9caps.h:136
DWORD Reserved5
Definition: d3d9caps.h:201
DWORD MaxTextureRepeat
Definition: d3d9caps.h:160
Definition: glslang_tab.cpp:136
UINT MasterAdapterOrdinal
Definition: d3d9caps.h:203
UINT MaxOverlayDisplayHeight
Definition: d3d9caps.h:77
UINT MaxOverlayDisplayWidth
Definition: d3d9caps.h:76
DWORD PresentationIntervals
Definition: d3d9caps.h:133
Definition: d3d9caps.h:73
DWORD CubeTextureFilterCaps
Definition: d3d9caps.h:150
DWORD ZCmpCaps
Definition: d3d9caps.h:143
INT StaticFlowControlDepth
Definition: d3d9caps.h:31
struct _D3DCAPS9 D3DCAPS9
D3DDEVTYPE DeviceType
Definition: d3d9caps.h:126
DWORD PixelShaderVersion
Definition: d3d9caps.h:194
DWORD NumSimultaneousRTs
Definition: d3d9caps.h:207
DWORD MaxVShaderInstructionsExecuted
Definition: d3d9caps.h:212
DWORD AlphaCmpCaps
Definition: d3d9caps.h:146
DWORD PrimitiveMiscCaps
Definition: d3d9caps.h:141
DWORD MaxVolumeExtent
Definition: d3d9caps.h:158
DWORD MaxActiveLights
Definition: d3d9caps.h:179
DWORD VolumeTextureFilterCaps
Definition: d3d9caps.h:151